Searched refs:kind (Results 1 - 7 of 7) sorted by relevance
/drivers/hdf_core/framework/tools/hdi-gen/parser/ |
H A D | parser.cpp | 118 if (token.kind == TokenType::COMMENT_BLOCK) {
in ParseLicense() 129 if (token.kind != TokenType::PACKAGE) {
in ParsePackage() 136 if (token.kind != TokenType::ID) {
in ParsePackage() 145 if (token.kind != TokenType::SEMICOLON) {
in ParsePackage() 189 while (token.kind == TokenType::IMPORT || token.kind == TokenType::SEQ) {
in ParseImports() 190 TokenType kind = token.kind;
in ParseImports() local 194 if (token.kind != TokenType::ID) {
in ParseImports() 201 if (kind in ParseImports() [all...] |
H A D | parser.h | 207 return token.kind >= TokenType::BOOLEAN && token.kind <= TokenType::ASHMEM;
in IsPrimitiveType()
|
/drivers/hdf_core/framework/tools/hdi-gen/lexer/ |
H A D | lexer.cpp | 156 while (curToken_.kind != tokenType) {
in SkipToken() 164 while (token.kind != tokenType) {
in SkipUntilToken() 209 if ((token.kind == TokenType::COMMENT_BLOCK || token.kind == TokenType::COMMENT_LINE) && skipComment) {
in ReadToken() 218 token.kind = TokenType::END_OF_FILE;
in ReadToken() 224 token.kind = TokenType::UNKNOWN;
in InitCurToken() 251 token.kind = (it != keyWords_.end()) ? it->second : TokenType::ID;
in ReadId() 272 token.kind = TokenType::NUM;
in ReadNum() 299 token.kind = err ? TokenType::UNKNOWN : TokenType::NUM;
in ReadBinaryNum() 322 token.kind in ReadOctNum() [all...] |
H A D | token.h | 97 TokenType kind;
member 107 return lhs.kind > rhs.kind;
in operator ()()
|
H A D | token.cpp | 23 sb.AppendFormat("{kind:%u, row:%u, col:%u, value:%s}",
in Dump() 24 static_cast<size_t>(kind), location.row, location.col, value.c_str());
in Dump()
|
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/ |
H A D | preprocessor.cpp | 151 if (token.kind != TokenType::PACKAGE) {
in ParsePackage() 158 if (token.kind != TokenType::ID) {
in ParsePackage() 172 if (token.kind != TokenType::SEMICOLON) {
in ParsePackage() 183 while (token.kind != TokenType::END_OF_FILE) {
in ParseImports() 184 if (token.kind != TokenType::IMPORT) {
in ParseImports() 192 if (token.kind != TokenType::ID) {
in ParseImports() 206 if (token.kind != TokenType::SEMICOLON) {
in ParseImports()
|
/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
H A D | ast_type.h | 71 explicit ASTType(TypeKind kind = TypeKind::TYPE_UNKNOWN, bool isPod = true) in ASTType() 72 :typeKind_(kind), isPod_(isPod), name_(), namespace_() in ASTType()
|
Completed in 4 milliseconds