Searched refs:TokenCategory (Results 1 – 15 of 15) sorted by relevance
/system/tools/hidl/docs/src/lexer/ |
D | Token.kt | 19 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 …]
|
D | ILexer.kt | 33 .filter { it.category == TokenCategory.Delimiter } in <lambda>() 78 .filter { it.category == TokenCategory.Delimiter } in <lambda>()
|
D | DocLexer.kt | 60 … val category = if (id == TokenGrammar.WORD) TokenCategory.DocWord else id.category in <lambda>()
|
/system/tools/hidl/docs/src/parser/elements/declarations/ |
D | InterfaceDeclarationParser.kt | 20 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()
|
D | MethodDeclarationParser.kt | 20 import lexer.TokenCategory 46 if (token.category == TokenCategory.TypeDef || token.category == TokenCategory.Keyword) { in parseTokens() 52 if (token.category != TokenCategory.Word) { in parseTokens()
|
D | CompoundDeclarationParser.kt | 20 import lexer.TokenCategory 50 if (token.category != TokenCategory.Word) in parseTokens() 79 assert(statementTokens.first().category == TokenCategory.TypeDef) in parseTokens()
|
D | AbstractDeclarationParser.kt | 20 import lexer.TokenCategory 36 if (token.category != TokenCategory.Annotation && token.identifier != TokenGrammar.DOC_END) in scanTokens()
|
D | EnumDeclarationParser.kt | 20 import lexer.TokenCategory 46 if (token.category != TokenCategory.Word) in parseTokens()
|
/system/tools/hidl/docs/src/parser/elements/ |
D | EntryParser.kt | 20 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()
|
D | AnnotationParser.kt | 20 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()
|
D | DocAnnotationParser.kt | 21 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()
|
D | DocParser.kt | 21 import lexer.TokenCategory 67 …token.identifier == TokenGrammar.AT && peekToken(iter)?.category == TokenCategory.DocAnnotation ->… in parseTokens()
|
/system/tools/hidl/docs/src/parser/files/ |
D | package.kt | 20 import lexer.TokenCategory 53 if (token.category != TokenCategory.Number) break //version in parsePackageInfo()
|
D | InterfaceFileParser.kt | 20 import lexer.TokenCategory 72 if (iter.next().category != TokenCategory.Word) break //no, try again in isInterface()
|
D | AbstractFileParser.kt | 20 import lexer.TokenCategory 124 if (token.identifier == TokenGrammar.AT || token.category == TokenCategory.Annotation) { in indexInsertionPointforDocTokens()
|