Lines Matching refs:TokenGrammar
21 import lexer.TokenGrammar
52 …val structs: List<EntryParser> by lazy { getEntriesByCompoundDeclarationParser(TokenGrammar.STRUCT… in <lambda>()
53 …val unions: List<EntryParser> by lazy { getEntriesByCompoundDeclarationParser(TokenGrammar.UNION) } in <lambda>()
59 private fun getEntriesByCompoundDeclarationParser(identifier: TokenGrammar): List<EntryParser> { in getEntriesByCompoundDeclarationParser()
65 TokenGrammar.INTERFACE,
66 TokenGrammar.ENUM,
67 TokenGrammar.STRUCT,
68 TokenGrammar.UNION,
69 TokenGrammar.TYPEDEF)
84 if (token.identifier == TokenGrammar.DOC_START) { in insertDocsForRequiredTypes()
87 } else if (token.identifier == TokenGrammar.DOC_END) { in insertDocsForRequiredTypes()
93 if (peekToken(iter)?.identifier == TokenGrammar.CHEVRON_CLOSE) { in insertDocsForRequiredTypes()
103 tokensCopy.add(TokenGrammar.newToken(TokenGrammar.DOC_START.value)) in insertDocsForRequiredTypes()
104 tokensCopy.add(TokenGrammar.newToken(TokenGrammar.DOC_END.value)) in insertDocsForRequiredTypes()
124 if (token.identifier == TokenGrammar.AT || token.category == TokenCategory.Annotation) { in indexInsertionPointforDocTokens()
128 return if (token.identifier == TokenGrammar.DOC_END) -1 else idx+1 in indexInsertionPointforDocTokens()