Home
last modified time | relevance | path

Searched refs:TokenCategory (Results 1 – 15 of 15) sorted by relevance

/system/tools/hidl/docs/src/lexer/
DToken.kt19 data class Token(val identifier: TokenGrammar, val value: String, val category: TokenCategory)
21 enum class TokenCategory { class
25 enum class TokenGrammar(val value: String, val category: TokenCategory) {
27 WORD("", TokenCategory.Word),
28 INTEGER("", TokenCategory.Number),
29 DECIMAL("", TokenCategory.Number),
31 AT("@", TokenCategory.Delimiter),
32 …EMPTY_LINE("EMPTY_LINE", TokenCategory.Delimiter), //sub in doc string, don't include value in tok…
34 DOC_START("/**", TokenCategory.Delimiter),
35 DOC_END("*/", TokenCategory.Delimiter),
[all …]
DILexer.kt33 .filter { it.category == TokenCategory.Delimiter } in <lambda>()
78 .filter { it.category == TokenCategory.Delimiter } in <lambda>()
DDocLexer.kt60 … val category = if (id == TokenGrammar.WORD) TokenCategory.DocWord else id.category in <lambda>()
/system/tools/hidl/docs/src/parser/elements/declarations/
DInterfaceDeclarationParser.kt20 import lexer.TokenCategory
42 assert(sigToks[1].category == TokenCategory.Word) in parseTokens()
43 … assert(sigToks.last().category == TokenCategory.Word) //either interface name or extends name in parseTokens()
50 … this.extendsVersion = sigToks.find { it.category == TokenCategory.Number }?.value?.toFloat() in parseTokens()
DMethodDeclarationParser.kt20 import lexer.TokenCategory
46 if (token.category == TokenCategory.TypeDef || token.category == TokenCategory.Keyword) { in parseTokens()
52 if (token.category != TokenCategory.Word) { in parseTokens()
DCompoundDeclarationParser.kt20 import lexer.TokenCategory
50 if (token.category != TokenCategory.Word) in parseTokens()
79 assert(statementTokens.first().category == TokenCategory.TypeDef) in parseTokens()
DAbstractDeclarationParser.kt20 import lexer.TokenCategory
36 if (token.category != TokenCategory.Annotation && token.identifier != TokenGrammar.DOC_END) in scanTokens()
DEnumDeclarationParser.kt20 import lexer.TokenCategory
46 if (token.category != TokenCategory.Word) in parseTokens()
/system/tools/hidl/docs/src/parser/elements/
DEntryParser.kt20 import lexer.TokenCategory
117 if (peekToken(iter)?.category == TokenCategory.Annotation) { in parseTokens()
130 assert(token.identifier != TokenGrammar.AT && token.category != TokenCategory.Annotation) in parseTokens()
141 } else if (token.category != TokenCategory.Word in parseTokens()
142 && token.category != TokenCategory.TypeDef in parseTokens()
143 && token.category != TokenCategory.Keyword) { in parseTokens()
DAnnotationParser.kt20 import lexer.TokenCategory
40 if (peekPreviousToken(iter)?.category == TokenCategory.Annotation) iter.previous() in scanTokens()
42 if (peekToken(iter)!!.category != TokenCategory.Annotation) in scanTokens()
52 assert(peekToken(iter)!!.category == TokenCategory.Annotation) in parseTokens()
DDocAnnotationParser.kt21 import lexer.TokenCategory
63 if (peekPreviousToken(iter)?.category == TokenCategory.DocAnnotation) iter.previous() in scanTokens()
65 if (peekToken(iter)!!.category != TokenCategory.DocAnnotation) in scanTokens()
77 …token.identifier == TokenGrammar.AT && peekToken(iter)?.category == TokenCategory.DocAnnotation ->… in scanTokens()
93 if (token.category != TokenCategory.DocAnnotation) in parseTokens()
DDocParser.kt21 import lexer.TokenCategory
67 …token.identifier == TokenGrammar.AT && peekToken(iter)?.category == TokenCategory.DocAnnotation ->… in parseTokens()
/system/tools/hidl/docs/src/parser/files/
Dpackage.kt20 import lexer.TokenCategory
53 if (token.category != TokenCategory.Number) break //version in parsePackageInfo()
DInterfaceFileParser.kt20 import lexer.TokenCategory
72 if (iter.next().category != TokenCategory.Word) break //no, try again in isInterface()
DAbstractFileParser.kt20 import lexer.TokenCategory
124 if (token.identifier == TokenGrammar.AT || token.category == TokenCategory.Annotation) { in indexInsertionPointforDocTokens()