Lines Matching refs:kind

110     while (((tokenKind = lexer_.PeekToken().kind) != TokenType::END_OF_FILE) && ret) {  in ParseFile()
138 if (token.kind == TokenType::COMMENT_BLOCK) { in ParseLicense()
150 if (token.kind != TokenType::PACKAGE) { in ParsePackage()
158 if (token.kind != TokenType::ID) { in ParsePackage()
168 if (token.kind != TokenType::SEMICOLON) { in ParsePackage()
216 if (token.kind != TokenType::INTERFACE_TOKEN) { in ParseInterfaceToken()
223 if (token.kind != TokenType::ID) { in ParseInterfaceToken()
233 if (token.kind != TokenType::SEMICOLON) { in ParseInterfaceToken()
252 if (token.kind != TokenType::SUPPORT_DELEGATOR) { in ParseSupportDelegator()
259 if (token.kind != TokenType::ID) { in ParseSupportDelegator()
269 if (token.kind != TokenType::SEMICOLON) { in ParseSupportDelegator()
288 TokenType kind = token.kind; in ParseImports() local
293 if (token.kind != TokenType::ID) { in ParseImports()
300 if (kind == TokenType::IMPORT) { in ParseImports()
309 if (token.kind != TokenType::SEMICOLON) { in ParseImports()
382 switch (token.kind) { in ParseTypeDecls()
411 switch (token.kind) { in ParseAttribute()
426 lexer_.SkipToken(token.kind); in ParseAttribute()
436 if (token.kind != TokenType::BRACKETS_LEFT) { in ParseAttributeInfo()
438 lexer_.SkipToken(token.kind); in ParseAttributeInfo()
445 while (token.kind != TokenType::BRACKETS_RIGHT && token.kind != TokenType::END_OF_FILE) { in ParseAttributeInfo()
451 if (token.kind == TokenType::COMMA) { in ParseAttributeInfo()
457 if (token.kind == TokenType::BRACKETS_RIGHT) { in ParseAttributeInfo()
472 switch (token.kind) { in ParseAttrUnit()
521 } else if (token.kind == TokenType::ID) { in ParseAttrUnitFreezecontrol()
536 if (token.kind != TokenType::ID) { in ParseInterface()
554 if (token.kind == TokenType::SEMICOLON) { in ParseInterface()
572 switch (attr.kind) { in ParseInfAttrInfo()
645 if (token.kind != TokenType::BRACES_LEFT) { in ParseInterfaceBody()
653 while (token.kind != TokenType::BRACES_RIGHT && token.kind != TokenType::END_OF_FILE) { in ParseInterfaceBody()
661 if (token.kind != TokenType::BRACES_RIGHT) { in ParseInterfaceBody()
669 if (token.kind == TokenType::SEMICOLON) { in ParseInterfaceBody()
687 if (token.kind != TokenType::ID) { in ParseMethod()
700 if (token.kind != TokenType::SEMICOLON) { in ParseMethod()
728 if (token.kind == TokenType::ID && ast_->FindType(token.value) == nullptr) { in ParseMethodReturnType()
732 if (CheckBasicType(token) || CheckUserDefType(token) || token.kind == TokenType::LIST || in ParseMethodReturnType()
733 token.kind == TokenType::MAP || token.kind == TokenType::SMQ) { in ParseMethodReturnType()
741 if (lexer_.PeekToken().kind != TokenType::BRACKETS_LEFT) { in ParseMethodAttr()
749 switch (attr.kind) { in ParseMethodAttr()
825 if (token.kind != TokenType::PARENTHESES_LEFT) { in ParseMethodParamList()
833 if (token.kind == TokenType::PARENTHESES_RIGHT) { in ParseMethodParamList()
839 while (token.kind != TokenType::PARENTHESES_RIGHT && token.kind != TokenType::END_OF_FILE) { in ParseMethodParamList()
849 if (token.kind == TokenType::COMMA) { in ParseMethodParamList()
852 if (token.kind == TokenType::PARENTHESES_RIGHT) { in ParseMethodParamList()
859 if (token.kind == TokenType::PARENTHESES_RIGHT) { in ParseMethodParamList()
877 if (token.kind != TokenType::ID) { in ParseParam()
904 while (token.kind != TokenType::BRACKETS_RIGHT && token.kind != TokenType::END_OF_FILE) { in ParseParamAttr()
909 if (token.kind == TokenType::COMMA) { in ParseParamAttr()
916 if (token.kind != TokenType::BRACKETS_RIGHT) { in ParseParamAttr()
918 while (token.kind != TokenType::COMMA && token.kind != TokenType::PARENTHESES_RIGHT && in ParseParamAttr()
919 token.kind != TokenType::END_OF_FILE) { in ParseParamAttr()
937 if (token.kind != TokenType::BRACKETS_LEFT) { in CheckParamAttr()
939 while (token.kind != TokenType::COMMA && token.kind != TokenType::PARENTHESES_RIGHT && in CheckParamAttr()
940 token.kind != TokenType::END_OF_FILE) { in CheckParamAttr()
952 switch (token.kind) { in SetParamAttrVal()
979 switch (token.kind) { in ParseType()
1003 while (lexer_.PeekToken().kind == TokenType::BRACKETS_LEFT) { in ParseType()
1011 switch (token.kind) { in CheckBasicType()
1038 if (token.kind == TokenType::UNSIGNED) { in ParseBasicType()
1054 switch (token.kind) { in ParseUnsignedType()
1075 if (token.kind != TokenType::BRACKETS_RIGHT) { in ParseArrayType()
1100 if (token.kind != TokenType::ANGLE_BRACKETS_LEFT) { in ParseListType()
1113 if (token.kind != TokenType::ANGLE_BRACKETS_RIGHT) { in ParseListType()
1134 if (token.kind != TokenType::ANGLE_BRACKETS_LEFT) { in ParseMapType()
1148 if (token.kind != TokenType::COMMA) { in ParseMapType()
1162 if (token.kind != TokenType::ANGLE_BRACKETS_RIGHT) { in ParseMapType()
1184 if (token.kind != TokenType::ANGLE_BRACKETS_LEFT) { in ParseSmqType()
1197 if (token.kind != TokenType::ANGLE_BRACKETS_RIGHT) { in ParseSmqType()
1212 switch (token.kind) { in CheckUserDefType()
1227 if (token.kind == TokenType::ID) { in ParseUserDefType()
1232 if (token.kind != TokenType::ID) { in ParseUserDefType()
1250 if (token.kind != TokenType::ID) { in ParseEnumDeclaration()
1258 if (token.kind == TokenType::COLON || token.kind == TokenType::BRACES_LEFT) { in ParseEnumDeclaration()
1266 if (token.kind != TokenType::BRACES_RIGHT) { in ParseEnumDeclaration()
1274 if (token.kind != TokenType::SEMICOLON) { in ParseEnumDeclaration()
1289 if (token.kind != TokenType::COLON) { in ParseEnumBaseType()
1316 if (token.kind != TokenType::BRACES_LEFT) { in ParseEnumBaseType()
1325 while (lexer_.PeekToken().kind == TokenType::ID) { in ParserEnumMember()
1330 if (token.kind == TokenType::ASSIGN) { in ParserEnumMember()
1341 if (token.kind == TokenType::COMMA) { in ParserEnumMember()
1346 if (token.kind != TokenType::BRACES_RIGHT) { in ParserEnumMember()
1359 if (token.kind != TokenType::ID) { in ParseStructDeclaration()
1367 if (token.kind == TokenType::COLON) { in ParseStructDeclaration()
1370 } else if (token.kind != TokenType::BRACES_LEFT) { in ParseStructDeclaration()
1379 if (token.kind != TokenType::BRACES_RIGHT) { in ParseStructDeclaration()
1386 if (token.kind != TokenType::SEMICOLON) { in ParseStructDeclaration()
1413 if (token.kind != TokenType::BRACES_LEFT) { in ParseStructParentType()
1423 while (token.kind != TokenType::BRACES_RIGHT && token.kind != TokenType::END_OF_FILE) { in ParseStructMember()
1432 if (token.kind != TokenType::ID) { in ParseStructMember()
1444 if (token.kind == TokenType::SEMICOLON) { in ParseStructMember()
1450 if (token.kind != TokenType::BRACES_RIGHT) { in ParseStructMember()
1463 if (token.kind != TokenType::ID) { in ParseUnionDeclaration()
1471 if (token.kind != TokenType::BRACES_LEFT) { in ParseUnionDeclaration()
1480 if (token.kind != TokenType::BRACES_RIGHT) { in ParseUnionDeclaration()
1487 if (token.kind != TokenType::SEMICOLON) { in ParseUnionDeclaration()
1500 while (token.kind != TokenType::BRACES_RIGHT && token.kind != TokenType::END_OF_FILE) { in ParseUnionMember()
1509 if (token.kind != TokenType::ID) { in ParseUnionMember()
1524 if (token.kind == TokenType::SEMICOLON) { in ParseUnionMember()
1530 if (token.kind != TokenType::BRACES_RIGHT) { in ParseUnionMember()
1558 switch (token.kind) { in ParseUserDefTypeAttr()
1594 while (token.kind == TokenType::AND) { in ParseAndExpr()
1611 while (token.kind == TokenType::XOR) { in ParseXorExpr()
1628 while (token.kind == TokenType::OR) { in ParseOrExpr()
1645 while (token.kind == TokenType::LEFT_SHIFT || token.kind == TokenType::RIGHT_SHIFT) { in ParseShiftExpr()
1647 …BinaryOpKind op = (token.kind == TokenType::LEFT_SHIFT) ? BinaryOpKind::LSHIFT : BinaryOpKind::RSH… in ParseShiftExpr()
1663 while (token.kind == TokenType::ADD || token.kind == TokenType::SUB) { in ParseAddExpr()
1665 BinaryOpKind op = (token.kind == TokenType::ADD) ? BinaryOpKind::ADD : BinaryOpKind::SUB; in ParseAddExpr()
1682 …token.kind == TokenType::STAR || token.kind == TokenType::SLASH || token.kind == TokenType::PERCEN… in ParseMulExpr()
1685 if (token.kind == TokenType::SLASH) { in ParseMulExpr()
1687 } else if (token.kind == TokenType::PERCENT_SIGN) { in ParseMulExpr()
1704 switch (token.kind) { in ParseUnaryExpr()
1711 if (token.kind == TokenType::SUB) { in ParseUnaryExpr()
1713 } else if (token.kind == TokenType::TILDE) { in ParseUnaryExpr()
1728 switch (token.kind) { in ParsePrimaryExpr()
1733 if (token.kind != TokenType::PARENTHESES_RIGHT) { in ParsePrimaryExpr()
1926 if (token.kind != TokenType::EXTENDS) { in ParseInterfaceExtends()
1931 if (token.kind != TokenType::ID) { in ParseInterfaceExtends()