Lines Matching refs:getCode

378   switch (Lex.getCode()) {  in ParseObjectName()
413 if (Lex.getCode() != tgtok::Id) { in ParseClassID()
432 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID()
465 if (Lex.getCode() != tgtok::less) { in ParseSubClassReference()
471 if (Lex.getCode() == tgtok::greater) { in ParseSubClassReference()
483 if (Lex.getCode() != tgtok::greater) { in ParseSubClassReference()
510 if (Lex.getCode() != tgtok::less) { in ParseSubMultiClassReference()
516 if (Lex.getCode() == tgtok::greater) { in ParseSubMultiClassReference()
528 if (Lex.getCode() != tgtok::greater) { in ParseSubMultiClassReference()
544 if (Lex.getCode() != tgtok::IntVal) { in ParseRangePiece()
593 while (Lex.getCode() == tgtok::comma) { in ParseRangeList()
607 if (Lex.getCode() != tgtok::less) in ParseOptionalRangeList()
617 if (Lex.getCode() != tgtok::greater) { in ParseOptionalRangeList()
629 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList()
639 if (Lex.getCode() != tgtok::r_brace) { in ParseOptionalBitList()
660 switch (Lex.getCode()) { in ParseType()
696 if (Lex.getCode() != tgtok::greater) { in ParseType()
765 switch (Lex.getCode()) { in ParseOperation()
776 switch (Lex.getCode()) { in ParseOperation()
804 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
863 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
880 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation()
906 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
917 while (Lex.getCode() == tgtok::comma) { in ParseOperation()
924 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
968 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
982 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
991 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1001 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1011 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1091 if (Lex.getCode() != tgtok::less) { in ParseOperatorType()
1104 if (Lex.getCode() != tgtok::greater) { in ParseOperatorType()
1136 switch (Lex.getCode()) { in ParseSimpleValue()
1158 while (Lex.getCode() == tgtok::StrVal) { in ParseSimpleValue()
1198 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1256 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1260 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1319 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1324 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1331 if (Lex.getCode() == tgtok::less) { in ParseSimpleValue()
1341 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1399 if (Lex.getCode() != tgtok::Id && Lex.getCode() != tgtok::XCast) { in ParseSimpleValue()
1409 if (Lex.getCode() == tgtok::colon) { in ParseSimpleValue()
1419 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1424 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1469 switch (Lex.getCode()) { in ParseValue()
1490 if (Lex.getCode() != tgtok::r_brace) { in ParseValue()
1510 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
1550 switch (Lex.getCode()) { in ParseValue()
1596 if (Lex.getCode() == tgtok::VarName) { in ParseDagArgList()
1608 if (Lex.getCode() == tgtok::colon) { in ParseDagArgList()
1619 if (Lex.getCode() != tgtok::comma) break; in ParseDagArgList()
1656 while (Lex.getCode() == tgtok::comma) { in ParseValueList()
1691 bool HasField = Lex.getCode() == tgtok::Field; in ParseDeclaration()
1697 if (Lex.getCode() != tgtok::Id) { in ParseDeclaration()
1721 if (Lex.getCode() == tgtok::equal) { in ParseDeclaration()
1745 if (Lex.getCode() != tgtok::Id) { in ParseForeachDeclaration()
1754 if (Lex.getCode() != tgtok::equal) { in ParseForeachDeclaration()
1763 switch (Lex.getCode()) { in ParseForeachDeclaration()
1791 if (Lex.getCode() != tgtok::r_brace) { in ParseForeachDeclaration()
1823 assert(Lex.getCode() == tgtok::less && "Not a template arg list!"); in ParseTemplateArgList()
1835 while (Lex.getCode() == tgtok::comma) { in ParseTemplateArgList()
1845 if (Lex.getCode() != tgtok::greater) in ParseTemplateArgList()
1857 if (Lex.getCode() != tgtok::Let) { in ParseBodyItem()
1861 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
1880 if (Lex.getCode() != tgtok::equal) in ParseBodyItem()
1893 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
1909 if (Lex.getCode() == tgtok::semi) { in ParseBody()
1914 if (Lex.getCode() != tgtok::l_brace) in ParseBody()
1919 while (Lex.getCode() != tgtok::r_brace) in ParseBody()
1949 if (Lex.getCode() == tgtok::colon) { in ParseObjectBody()
1962 if (Lex.getCode() != tgtok::comma) break; in ParseObjectBody()
1981 assert(Lex.getCode() == tgtok::Def && "Unknown tok"); in ParseDef()
2056 assert(Lex.getCode() == tgtok::Foreach && "Unknown tok"); in ParseForeach()
2066 if (Lex.getCode() != tgtok::In) in ParseForeach()
2073 if (Lex.getCode() != tgtok::l_brace) { in ParseForeach()
2086 if (Lex.getCode() != tgtok::r_brace) { in ParseForeach()
2104 assert(Lex.getCode() == tgtok::Class && "Unexpected token!"); in ParseClass()
2107 if (Lex.getCode() != tgtok::Id) in ParseClass()
2128 if (Lex.getCode() == tgtok::less) in ParseClass()
2146 if (Lex.getCode() != tgtok::Id) { in ParseLetList()
2160 if (Lex.getCode() != tgtok::equal) { in ParseLetList()
2172 if (Lex.getCode() != tgtok::comma) in ParseLetList()
2185 assert(Lex.getCode() == tgtok::Let && "Unexpected token"); in ParseTopLevelLet()
2193 if (Lex.getCode() != tgtok::In) in ParseTopLevelLet()
2198 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet()
2211 if (Lex.getCode() != tgtok::r_brace) { in ParseTopLevelLet()
2234 assert(Lex.getCode() == tgtok::MultiClass && "Unexpected token"); in ParseMultiClass()
2237 if (Lex.getCode() != tgtok::Id) in ParseMultiClass()
2252 if (Lex.getCode() == tgtok::less) in ParseMultiClass()
2259 if (Lex.getCode() == tgtok::colon) { in ParseMultiClass()
2275 if (Lex.getCode() != tgtok::comma) break; in ParseMultiClass()
2281 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
2284 if (Lex.getCode() != tgtok::semi) in ParseMultiClass()
2291 while (Lex.getCode() != tgtok::r_brace) { in ParseMultiClass()
2292 switch (Lex.getCode()) { in ParseMultiClass()
2498 assert(Lex.getCode() == tgtok::Defm && "Unexpected token!"); in ParseDefm()
2507 if (Lex.getCode() != tgtok::colon) in ParseDefm()
2570 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2573 if (Lex.getCode() != tgtok::Id) in ParseDefm()
2607 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2620 if (Lex.getCode() != tgtok::semi) in ParseDefm()
2635 switch (Lex.getCode()) { in ParseObject()
2650 while (isObjectStart(Lex.getCode())) { in ParseObjectList()
2662 if (Lex.getCode() == tgtok::Eof) in ParseFile()