Home
last modified time | relevance | path

Searched refs:Token (Results 1 – 25 of 27) sorted by relevance

12

/system/tools/hidl/docs/src/parser/elements/
DAbstractParser.kt19 import lexer.Token
29 abstract class AbstractParser(iter: ListIterator<Token>) {
44 abstract fun parseTokens(tokens: List<Token>) in parseTokens()
49 abstract fun scanTokens(iter: ListIterator<Token>): List<Token> in parseTokens()
51 protected fun scanDocTokens(iter: ListIterator<Token>): List<Token> { in parseTokens()
52 val tokens = mutableListOf<Token>() in parseTokens()
53 var token: Token in parseTokens()
85 protected fun scanDeclarationTokens(iter: ListIterator<Token>): List<Token> { in scanDeclarationTokens()
86 val tokens = mutableListOf<Token>() in scanDeclarationTokens()
87 var token: Token in scanDeclarationTokens()
[all …]
DEntryCollectionParser.kt19 import lexer.Token
30 class EntryCollectionParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false) : …
34 constructor(tokens: List<Token>) : this(tokens.listIterator())
42 override fun scanTokens(iter: ListIterator<Token>): List<Token> { in scanTokens()
43 val tokens = mutableListOf<Token>() in scanTokens()
50 override fun parseTokens(tokens: List<Token>) { in parseTokens()
52 var token: Token in parseTokens()
DAnnotationParser.kt19 import lexer.Token
26 class AnnotationParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false) : Abstr…
36 override fun scanTokens(iter: ListIterator<Token>): List<Token> { in scanTokens()
37 val tokens = mutableListOf<Token>() in scanTokens()
50 override fun parseTokens(tokens: List<Token>) { in parseTokens()
60 private fun parseAnnotationValue(token: Token): String { in parseAnnotationValue()
DDocAnnotationParser.kt20 import lexer.Token
28 class DocAnnotationParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false) : Ab…
39 private fun formatValue(tokens: List<Token>): String { in formatValue()
57 override fun scanTokens(iter: ListIterator<Token>): List<Token> { in scanTokens()
58 val tokens = mutableListOf<Token>() in scanTokens()
59 var token: Token in scanTokens()
88 override fun parseTokens(tokens: List<Token>) { in parseTokens()
106 val descTokens = mutableListOf<Token>() in parseTokens()
DDocParser.kt20 import lexer.Token
25 class DocParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false) : AbstractPars…
30 private var descTokens = mutableListOf<Token>()
37 private fun formatDescription(tokens: List<Token>): String { in formatDescription()
51 override fun scanTokens(iter: ListIterator<Token>): List<Token> { in scanTokens()
56 override fun parseTokens(tokens: List<Token>) { in parseTokens()
DEntryParser.kt19 import lexer.Token
58 class EntryParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false) : AbstractPa…
73 override fun scanTokens(iter: ListIterator<Token>): List<Token> { in scanTokens()
80 val tokens = mutableListOf<Token>() in scanTokens()
88 override fun parseTokens(tokens: List<Token>) { in parseTokens()
/system/tools/hidl/docs/src/parser/
Dutils.kt19 import lexer.Token
24 fun peekToken(iter: ListIterator<Token>): Token? { in peekToken()
34 fun peekPreviousToken(iter: ListIterator<Token>): Token? { in peekPreviousToken()
/system/tools/hidl/docs/src/parser/elements/declarations/
DAbstractDeclarationParser.kt19 import lexer.Token
28 abstract class AbstractDeclarationParser(iter: ListIterator<Token>) : AbstractParser(iter) {
33 override fun scanTokens(iter: ListIterator<Token>): List<Token> { in scanTokens()
47 protected fun scanDelimitedList(iter: ListIterator<Token>, in scanDelimitedList()
50 … closeDelimiter: TokenGrammar = TokenGrammar.PAREN_CLOSE): List<List<Token>> { in scanDelimitedList()
51 val allFields = mutableListOf<List<Token>>() //top-level list in scanDelimitedList()
73 val fieldTokens = mutableListOf<Token>() in scanDelimitedList()
DMethodDeclarationParser.kt19 import lexer.Token
27 class MethodDeclarationParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false) …
40 override fun parseTokens(tokens: List<Token>) { in parseTokens()
81 private fun addArgs(iter: ListIterator<Token>, list: MutableList<ArgEntry>) { in addArgs()
88 private fun formatArgEntry(paramTokens: List<Token>): ArgEntry { in formatArgEntry()
DTypedefDeclarationParser.kt19 import lexer.Token
22 class TypedefDeclarationParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false)…
31 override fun parseTokens(tokens: List<Token>) { in parseTokens()
DCompoundDeclarationParser.kt19 import lexer.Token
29 class CompoundDeclarationParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false…
39 override fun parseTokens(tokens: List<Token>) { in parseTokens()
114 val tokens: List<Token> //TODO: doesn't seem needed
120 override val tokens: List<Token>) : IMemberDeclaration
125 override val tokens: List<Token>,
DInterfaceDeclarationParser.kt19 import lexer.Token
23 class InterfaceDeclarationParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = fals…
35 override fun parseTokens(tokens: List<Token>) { in parseTokens()
DEnumDeclarationParser.kt19 import lexer.Token
27 class EnumDeclarationParser(iter: ListIterator<Token>, var shouldResetIterator: Boolean = false) : …
38 override fun parseTokens(tokens: List<Token>) { in parseTokens()
89 class EnumMember(tokens: List<Token>) {
/system/tools/hidl/docs/src/parser/files/
DAbstractFileParser.kt19 import lexer.Token
36 abstract class AbstractFileParser(tokens: List<Token>) {
74 private fun insertDocsForRequiredTypes(tokens: List<Token>): List<Token> { in insertDocsForRequiredTypes()
75 val tokensCopy = mutableListOf<Token>() in insertDocsForRequiredTypes()
77 var token: Token in insertDocsForRequiredTypes()
99 val removedTokens = mutableListOf<Token>() in insertDocsForRequiredTypes()
116 private fun indexInsertionPointforDocTokens(tokens: List<Token>): Int { in indexInsertionPointforDocTokens()
118 var token: Token in indexInsertionPointforDocTokens()
Dpackage.kt19 import lexer.Token
30 fun parsePackageInfo(tokens: List<Token>): PackageInfo { in parsePackageInfo()
31 val iter: ListIterator<Token> = tokens.listIterator() in parsePackageInfo()
32 var token: Token in parsePackageInfo()
39 val pkgNameToks = mutableListOf<Token>() in parsePackageInfo()
DInterfaceFileParser.kt19 import lexer.Token
27 class InterfaceFileParser(tokens: List<Token>) : AbstractFileParser(tokens) {
57 fun isInterface(tokens: List<Token>): Boolean { in isInterface()
59 var token: Token in isInterface()
DTypesFileParser.kt19 import lexer.Token
21 class TypesFileParser(tokens: List<Token>) : AbstractFileParser(tokens) {
/system/core/init/parser/
Dtokenizer.h43 struct Token { struct
49 const Token& current(); argument
64 Token current_;
/system/tools/hidl/docs/src/lexer/
DToken.kt19 data class Token(val identifier: TokenGrammar, val value: String, val category: TokenCategory) class
156 fun newToken(value: String): Token { in newToken()
158 return Token(tokenGrammar, value, tokenGrammar.category) in newToken()
161 fun newToken(value: String, category: TokenCategory): Token { in newToken()
163 return Token(tokenGrammar, value, category) in newToken()
166 fun newToken(value: String, identifier: TokenGrammar): Token { in newToken()
167 return Token(identifier, value, identifier.category) in newToken()
DDocLexer.kt26 override fun tokenize(str: String): List<Token> { in <lambda>()
27 val tokens = mutableListOf<Token>() in <lambda>()
DILexer.kt22 fun tokenize(str: String): List<Token> in <lambda>()
24 fun tokenize(file: File): List<Token> { in <lambda>()
DHidlLexer.kt28 override fun tokenize(str: String): List<Token> { in <lambda>()
29 val tokens = mutableListOf<Token>() in <lambda>()
/system/tools/hidl/docs/src/
Dmain.kt18 import lexer.Token
73 fun parseAndGetWriter(tokens: List<Token>): Pair<AbstractFileParser, AbstractParserFileWriter> { in parseAndGetWriter()
/system/tools/hidl/docs/src/writer/
Dformatutils.kt19 import lexer.Token in <lambda>()
32 fun tokenValues(tokens: List<Token>): String { in tokenValues()
/system/libhidl/transport/token/1.0/
DITokenManager.hal39 * @param token Token received from createToken
47 * @param token Token received from createToken

12