Lines Matching refs:getCode

383   switch (Lex.getCode()) {  in ParseObjectName()
418 if (Lex.getCode() != tgtok::Id) { in ParseClassID()
437 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID()
470 if (Lex.getCode() != tgtok::less) { in ParseSubClassReference()
476 if (Lex.getCode() == tgtok::greater) { in ParseSubClassReference()
488 if (Lex.getCode() != tgtok::greater) { in ParseSubClassReference()
515 if (Lex.getCode() != tgtok::less) { in ParseSubMultiClassReference()
521 if (Lex.getCode() == tgtok::greater) { in ParseSubMultiClassReference()
533 if (Lex.getCode() != tgtok::greater) { in ParseSubMultiClassReference()
549 if (Lex.getCode() != tgtok::IntVal) { in ParseRangePiece()
598 while (Lex.getCode() == tgtok::comma) { in ParseRangeList()
612 if (Lex.getCode() != tgtok::less) in ParseOptionalRangeList()
622 if (Lex.getCode() != tgtok::greater) { in ParseOptionalRangeList()
634 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList()
644 if (Lex.getCode() != tgtok::r_brace) { in ParseOptionalBitList()
665 switch (Lex.getCode()) { in ParseType()
701 if (Lex.getCode() != tgtok::greater) { in ParseType()
770 switch (Lex.getCode()) { in ParseOperation()
781 switch (Lex.getCode()) { in ParseOperation()
809 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
868 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
885 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation()
911 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
922 while (Lex.getCode() == tgtok::comma) { in ParseOperation()
929 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
973 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
987 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
996 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1006 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1016 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1096 if (Lex.getCode() != tgtok::less) { in ParseOperatorType()
1109 if (Lex.getCode() != tgtok::greater) { in ParseOperatorType()
1141 switch (Lex.getCode()) { in ParseSimpleValue()
1163 while (Lex.getCode() == tgtok::StrVal) { in ParseSimpleValue()
1203 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1261 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1265 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1324 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1329 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1336 if (Lex.getCode() == tgtok::less) { in ParseSimpleValue()
1346 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1404 if (Lex.getCode() != tgtok::Id && Lex.getCode() != tgtok::XCast) { in ParseSimpleValue()
1414 if (Lex.getCode() == tgtok::colon) { in ParseSimpleValue()
1424 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1429 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1474 switch (Lex.getCode()) { in ParseValue()
1495 if (Lex.getCode() != tgtok::r_brace) { in ParseValue()
1515 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
1555 switch (Lex.getCode()) { in ParseValue()
1601 if (Lex.getCode() == tgtok::VarName) { in ParseDagArgList()
1613 if (Lex.getCode() == tgtok::colon) { in ParseDagArgList()
1624 if (Lex.getCode() != tgtok::comma) break; in ParseDagArgList()
1661 while (Lex.getCode() == tgtok::comma) { in ParseValueList()
1696 bool HasField = Lex.getCode() == tgtok::Field; in ParseDeclaration()
1702 if (Lex.getCode() != tgtok::Id) { in ParseDeclaration()
1726 if (Lex.getCode() == tgtok::equal) { in ParseDeclaration()
1750 if (Lex.getCode() != tgtok::Id) { in ParseForeachDeclaration()
1759 if (Lex.getCode() != tgtok::equal) { in ParseForeachDeclaration()
1768 switch (Lex.getCode()) { in ParseForeachDeclaration()
1796 if (Lex.getCode() != tgtok::r_brace) { in ParseForeachDeclaration()
1828 assert(Lex.getCode() == tgtok::less && "Not a template arg list!"); in ParseTemplateArgList()
1840 while (Lex.getCode() == tgtok::comma) { in ParseTemplateArgList()
1850 if (Lex.getCode() != tgtok::greater) in ParseTemplateArgList()
1862 if (Lex.getCode() != tgtok::Let) { in ParseBodyItem()
1866 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
1885 if (Lex.getCode() != tgtok::equal) in ParseBodyItem()
1898 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
1914 if (Lex.getCode() == tgtok::semi) { in ParseBody()
1919 if (Lex.getCode() != tgtok::l_brace) in ParseBody()
1924 while (Lex.getCode() != tgtok::r_brace) in ParseBody()
1954 if (Lex.getCode() == tgtok::colon) { in ParseObjectBody()
1967 if (Lex.getCode() != tgtok::comma) break; in ParseObjectBody()
1986 assert(Lex.getCode() == tgtok::Def && "Unknown tok"); in ParseDef()
2061 assert(Lex.getCode() == tgtok::Foreach && "Unknown tok"); in ParseForeach()
2071 if (Lex.getCode() != tgtok::In) in ParseForeach()
2078 if (Lex.getCode() != tgtok::l_brace) { in ParseForeach()
2091 if (Lex.getCode() != tgtok::r_brace) { in ParseForeach()
2109 assert(Lex.getCode() == tgtok::Class && "Unexpected token!"); in ParseClass()
2112 if (Lex.getCode() != tgtok::Id) in ParseClass()
2133 if (Lex.getCode() == tgtok::less) in ParseClass()
2151 if (Lex.getCode() != tgtok::Id) { in ParseLetList()
2165 if (Lex.getCode() != tgtok::equal) { in ParseLetList()
2177 if (Lex.getCode() != tgtok::comma) in ParseLetList()
2190 assert(Lex.getCode() == tgtok::Let && "Unexpected token"); in ParseTopLevelLet()
2198 if (Lex.getCode() != tgtok::In) in ParseTopLevelLet()
2203 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet()
2216 if (Lex.getCode() != tgtok::r_brace) { in ParseTopLevelLet()
2239 assert(Lex.getCode() == tgtok::MultiClass && "Unexpected token"); in ParseMultiClass()
2242 if (Lex.getCode() != tgtok::Id) in ParseMultiClass()
2257 if (Lex.getCode() == tgtok::less) in ParseMultiClass()
2264 if (Lex.getCode() == tgtok::colon) { in ParseMultiClass()
2280 if (Lex.getCode() != tgtok::comma) break; in ParseMultiClass()
2286 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
2289 if (Lex.getCode() != tgtok::semi) in ParseMultiClass()
2296 while (Lex.getCode() != tgtok::r_brace) { in ParseMultiClass()
2297 switch (Lex.getCode()) { in ParseMultiClass()
2504 assert(Lex.getCode() == tgtok::Defm && "Unexpected token!"); in ParseDefm()
2513 if (Lex.getCode() != tgtok::colon) in ParseDefm()
2576 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2579 if (Lex.getCode() != tgtok::Id) in ParseDefm()
2613 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2626 if (Lex.getCode() != tgtok::semi) in ParseDefm()
2641 switch (Lex.getCode()) { in ParseObject()
2656 while (isObjectStart(Lex.getCode())) { in ParseObjectList()
2668 if (Lex.getCode() == tgtok::Eof) in ParseFile()