Lines Matching refs:Lex
496 switch (Lex.getCode()) { in ParseObjectName()
534 if (Lex.getCode() != tgtok::Id) { in ParseClassID()
539 Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID()
541 TokError("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID()
543 Lex.Lex(); in ParseClassID()
553 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID()
558 MultiClass *Result = MultiClasses[Lex.getCurStrVal()].get(); in ParseMultiClassID()
560 TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'"); in ParseMultiClassID()
562 Lex.Lex(); in ParseMultiClassID()
575 Result.RefRange.Start = Lex.getLoc(); in ParseSubClassReference()
586 if (Lex.getCode() != tgtok::less) { in ParseSubClassReference()
587 Result.RefRange.End = Lex.getLoc(); in ParseSubClassReference()
590 Lex.Lex(); // Eat the '<' in ParseSubClassReference()
592 if (Lex.getCode() == tgtok::greater) { in ParseSubClassReference()
604 if (Lex.getCode() != tgtok::greater) { in ParseSubClassReference()
609 Lex.Lex(); in ParseSubClassReference()
610 Result.RefRange.End = Lex.getLoc(); in ParseSubClassReference()
625 Result.RefRange.Start = Lex.getLoc(); in ParseSubMultiClassReference()
631 if (Lex.getCode() != tgtok::less) { in ParseSubMultiClassReference()
632 Result.RefRange.End = Lex.getLoc(); in ParseSubMultiClassReference()
635 Lex.Lex(); // Eat the '<' in ParseSubMultiClassReference()
637 if (Lex.getCode() == tgtok::greater) { in ParseSubMultiClassReference()
649 if (Lex.getCode() != tgtok::greater) { in ParseSubMultiClassReference()
654 Lex.Lex(); in ParseSubMultiClassReference()
655 Result.RefRange.End = Lex.getLoc(); in ParseSubMultiClassReference()
665 if (Lex.getCode() != tgtok::IntVal) { in ParseRangePiece()
669 int64_t Start = Lex.getCurIntVal(); in ParseRangePiece()
675 switch (Lex.Lex()) { // eat first character. in ParseRangePiece()
680 if (Lex.Lex() != tgtok::IntVal) { in ParseRangePiece()
684 End = Lex.getCurIntVal(); in ParseRangePiece()
687 End = -Lex.getCurIntVal(); in ParseRangePiece()
692 Lex.Lex(); in ParseRangePiece()
714 while (Lex.getCode() == tgtok::comma) { in ParseRangeList()
715 Lex.Lex(); // Eat the comma. in ParseRangeList()
729 if (Lex.getCode() != tgtok::less) in ParseOptionalRangeList()
732 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalRangeList()
733 Lex.Lex(); // eat the '<' in ParseOptionalRangeList()
739 if (Lex.getCode() != tgtok::greater) { in ParseOptionalRangeList()
743 Lex.Lex(); // eat the '>'. in ParseOptionalRangeList()
751 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList()
754 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalBitList()
755 Lex.Lex(); // eat the '{' in ParseOptionalBitList()
761 if (Lex.getCode() != tgtok::r_brace) { in ParseOptionalBitList()
765 Lex.Lex(); // eat the '}'. in ParseOptionalBitList()
781 switch (Lex.getCode()) { in ParseType()
783 case tgtok::String: Lex.Lex(); return StringRecTy::get(); in ParseType()
784 case tgtok::Code: Lex.Lex(); return CodeRecTy::get(); in ParseType()
785 case tgtok::Bit: Lex.Lex(); return BitRecTy::get(); in ParseType()
786 case tgtok::Int: Lex.Lex(); return IntRecTy::get(); in ParseType()
787 case tgtok::Dag: Lex.Lex(); return DagRecTy::get(); in ParseType()
793 if (Lex.Lex() != tgtok::less) { // Eat 'bits' in ParseType()
797 if (Lex.Lex() != tgtok::IntVal) { // Eat '<' in ParseType()
801 uint64_t Val = Lex.getCurIntVal(); in ParseType()
802 if (Lex.Lex() != tgtok::greater) { // Eat count. in ParseType()
806 Lex.Lex(); // Eat '>' in ParseType()
810 if (Lex.Lex() != tgtok::less) { // Eat 'bits' in ParseType()
814 Lex.Lex(); // Eat '<' in ParseType()
818 if (Lex.getCode() != tgtok::greater) { in ParseType()
822 Lex.Lex(); // Eat '>' in ParseType()
883 switch (Lex.getCode()) { in ParseOperation()
895 switch (Lex.getCode()) { in ParseOperation()
898 Lex.Lex(); // eat the operation in ParseOperation()
910 Lex.Lex(); // eat the operation in ParseOperation()
914 Lex.Lex(); // eat the operation in ParseOperation()
918 Lex.Lex(); in ParseOperation()
923 Lex.Lex(); // eat the operation in ParseOperation()
928 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
932 Lex.Lex(); // eat the '(' in ParseOperation()
990 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
994 Lex.Lex(); // eat the ')' in ParseOperation()
1000 Lex.Lex(); // eat the operation in ParseOperation()
1006 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
1010 Lex.Lex(); // eat the '(' in ParseOperation()
1016 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1020 Lex.Lex(); // eat the ')' in ParseOperation()
1040 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation()
1041 SMLoc OpLoc = Lex.getLoc(); in ParseOperation()
1042 Lex.Lex(); // eat the operation in ParseOperation()
1111 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
1115 Lex.Lex(); // eat the '(' in ParseOperation()
1120 SMLoc InitLoc = Lex.getLoc(); in ParseOperation()
1162 if (Lex.getCode() != tgtok::comma) in ParseOperation()
1164 Lex.Lex(); // eat the ',' in ParseOperation()
1167 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1171 Lex.Lex(); // eat the ')' in ParseOperation()
1197 SMLoc OpLoc = Lex.getLoc(); in ParseOperation()
1198 Lex.Lex(); // eat the operation in ParseOperation()
1199 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
1204 if (Lex.Lex() != tgtok::Id) { // eat the '(' in ParseOperation()
1209 Init *LHS = StringInit::get(Lex.getCurStrVal()); in ParseOperation()
1218 if (Lex.Lex() != tgtok::comma) { // eat the id in ParseOperation()
1222 Lex.Lex(); // eat the ',' in ParseOperation()
1228 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1232 Lex.Lex(); // eat the ',' in ParseOperation()
1285 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1289 Lex.Lex(); // eat the ')' in ParseOperation()
1313 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
1314 Lex.Lex(); // eat the operation in ParseOperation()
1329 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
1333 Lex.Lex(); // eat the '(' in ParseOperation()
1338 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1342 Lex.Lex(); // eat the ',' in ParseOperation()
1344 SMLoc MHSLoc = Lex.getLoc(); in ParseOperation()
1349 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1353 Lex.Lex(); // eat the ',' in ParseOperation()
1355 SMLoc RHSLoc = Lex.getLoc(); in ParseOperation()
1360 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1364 Lex.Lex(); // eat the ')' in ParseOperation()
1450 Lex.Lex(); // eat the operation in ParseOperation()
1451 if (Lex.getCode() != tgtok::l_paren) { in ParseOperation()
1455 Lex.Lex(); // eat the '(' in ParseOperation()
1468 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1472 Lex.Lex(); // eat the ',' in ParseOperation()
1492 if (Lex.getCode() != tgtok::comma) { in ParseOperation()
1497 if (Lex.Lex() != tgtok::Id) { // eat the ',' in ParseOperation()
1502 Init *A = StringInit::get(Lex.getCurStrVal()); in ParseOperation()
1510 if (Lex.Lex() != tgtok::comma) { // eat the id in ParseOperation()
1515 if (Lex.Lex() != tgtok::Id) { // eat the ',' in ParseOperation()
1520 Init *B = StringInit::get(Lex.getCurStrVal()); in ParseOperation()
1528 if (Lex.Lex() != tgtok::comma) { // eat the id in ParseOperation()
1532 Lex.Lex(); // eat the ',' in ParseOperation()
1564 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation()
1568 Lex.Lex(); // eat the ')' in ParseOperation()
1584 if (Lex.getCode() != tgtok::less) { in ParseOperatorType()
1588 Lex.Lex(); // eat the < in ParseOperatorType()
1597 if (Lex.getCode() != tgtok::greater) { in ParseOperatorType()
1601 Lex.Lex(); // eat the > in ParseOperatorType()
1628 switch (Lex.getCode()) { in ParseSimpleValue()
1633 Lex.Lex(); // Skip '#'. in ParseSimpleValue()
1635 case tgtok::IntVal: R = IntInit::get(Lex.getCurIntVal()); Lex.Lex(); break; in ParseSimpleValue()
1637 auto BinaryVal = Lex.getCurBinaryIntVal(); in ParseSimpleValue()
1642 Lex.Lex(); in ParseSimpleValue()
1646 std::string Val = Lex.getCurStrVal(); in ParseSimpleValue()
1647 Lex.Lex(); in ParseSimpleValue()
1650 while (Lex.getCode() == tgtok::StrVal) { in ParseSimpleValue()
1651 Val += Lex.getCurStrVal(); in ParseSimpleValue()
1652 Lex.Lex(); in ParseSimpleValue()
1659 R = CodeInit::get(Lex.getCurStrVal()); in ParseSimpleValue()
1660 Lex.Lex(); in ParseSimpleValue()
1664 Lex.Lex(); in ParseSimpleValue()
1667 SMLoc NameLoc = Lex.getLoc(); in ParseSimpleValue()
1668 StringInit *Name = StringInit::get(Lex.getCurStrVal()); in ParseSimpleValue()
1669 if (Lex.Lex() != tgtok::less) // consume the Id. in ParseSimpleValue()
1673 if (Lex.Lex() == tgtok::greater) { in ParseSimpleValue()
1691 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1695 Lex.Lex(); // eat the '>' in ParseSimpleValue()
1732 SMLoc BraceLoc = Lex.getLoc(); in ParseSimpleValue()
1733 Lex.Lex(); // eat the '{' in ParseSimpleValue()
1736 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1740 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue()
1744 Lex.Lex(); // eat the '}' in ParseSimpleValue()
1783 Lex.Lex(); // eat the '[' in ParseSimpleValue()
1799 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1804 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1808 Lex.Lex(); // eat the ']' in ParseSimpleValue()
1811 if (Lex.getCode() == tgtok::less) { in ParseSimpleValue()
1813 Lex.Lex(); // eat the '<' in ParseSimpleValue()
1821 if (Lex.getCode() != tgtok::greater) { in ParseSimpleValue()
1825 Lex.Lex(); // eat the '>' in ParseSimpleValue()
1878 Lex.Lex(); // eat the '(' in ParseSimpleValue()
1879 if (Lex.getCode() != tgtok::Id && Lex.getCode() != tgtok::XCast) { in ParseSimpleValue()
1889 if (Lex.getCode() == tgtok::colon) { in ParseSimpleValue()
1890 if (Lex.Lex() != tgtok::VarName) { // eat the ':' in ParseSimpleValue()
1894 OperatorName = StringInit::get(Lex.getCurStrVal()); in ParseSimpleValue()
1895 Lex.Lex(); // eat the VarName. in ParseSimpleValue()
1899 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1904 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
1908 Lex.Lex(); // eat the ')' in ParseSimpleValue()
1959 switch (Lex.getCode()) { in ParseValue()
1966 SMLoc CurlyLoc = Lex.getLoc(); in ParseValue()
1967 Lex.Lex(); // eat the '{' in ParseValue()
1981 if (Lex.getCode() != tgtok::r_brace) { in ParseValue()
1985 Lex.Lex(); in ParseValue()
1989 SMLoc SquareLoc = Lex.getLoc(); in ParseValue()
1990 Lex.Lex(); // eat the '[' in ParseValue()
2002 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
2006 Lex.Lex(); in ParseValue()
2010 if (Lex.Lex() != tgtok::Id) { // eat the . in ParseValue()
2014 StringInit *FieldName = StringInit::get(Lex.getCurStrVal()); in ParseValue()
2016 TokError("Cannot access field '" + Lex.getCurStrVal() + "' of value '" + in ParseValue()
2021 Lex.Lex(); // eat field name in ParseValue()
2026 SMLoc PasteLoc = Lex.getLoc(); in ParseValue()
2050 Lex.Lex(); // Eat the '#'. in ParseValue()
2051 switch (Lex.getCode()) { in ParseValue()
2103 if (Lex.getCode() == tgtok::VarName) { in ParseDagArgList()
2105 StringInit *VarName = StringInit::get(Lex.getCurStrVal()); in ParseDagArgList()
2107 Lex.Lex(); in ParseDagArgList()
2118 if (Lex.getCode() == tgtok::colon) { in ParseDagArgList()
2119 if (Lex.Lex() != tgtok::VarName) { // eat the ':' in ParseDagArgList()
2124 VarName = StringInit::get(Lex.getCurStrVal()); in ParseDagArgList()
2125 Lex.Lex(); // eat the VarName. in ParseDagArgList()
2130 if (Lex.getCode() != tgtok::comma) break; in ParseDagArgList()
2131 Lex.Lex(); // eat the ',' in ParseDagArgList()
2167 while (Lex.getCode() == tgtok::comma) { in ParseValueList()
2168 Lex.Lex(); // Eat the comma in ParseValueList()
2203 bool HasField = Lex.getCode() == tgtok::Field; in ParseDeclaration()
2204 if (HasField) Lex.Lex(); in ParseDeclaration()
2209 if (Lex.getCode() != tgtok::Id) { in ParseDeclaration()
2214 std::string Str = Lex.getCurStrVal(); in ParseDeclaration()
2220 SMLoc IdLoc = Lex.getLoc(); in ParseDeclaration()
2222 Lex.Lex(); in ParseDeclaration()
2239 if (Lex.getCode() == tgtok::equal) { in ParseDeclaration()
2240 Lex.Lex(); in ParseDeclaration()
2241 SMLoc ValLoc = Lex.getLoc(); in ParseDeclaration()
2263 if (Lex.getCode() != tgtok::Id) { in ParseForeachDeclaration()
2268 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseForeachDeclaration()
2269 Lex.Lex(); in ParseForeachDeclaration()
2272 if (Lex.getCode() != tgtok::equal) { in ParseForeachDeclaration()
2276 Lex.Lex(); // Eat the '=' in ParseForeachDeclaration()
2281 switch (Lex.getCode()) { in ParseForeachDeclaration()
2289 Lex.Lex(); // eat the '{' in ParseForeachDeclaration()
2291 if (Lex.getCode() != tgtok::r_brace) { in ParseForeachDeclaration()
2295 Lex.Lex(); in ParseForeachDeclaration()
2300 SMLoc ValueLoc = Lex.getLoc(); in ParseForeachDeclaration()
2342 assert(Lex.getCode() == tgtok::less && "Not a template arg list!"); in ParseTemplateArgList()
2343 Lex.Lex(); // eat the '<' in ParseTemplateArgList()
2354 while (Lex.getCode() == tgtok::comma) { in ParseTemplateArgList()
2355 Lex.Lex(); // eat the ',' in ParseTemplateArgList()
2358 SMLoc Loc = Lex.getLoc(); in ParseTemplateArgList()
2370 if (Lex.getCode() != tgtok::greater) in ParseTemplateArgList()
2372 Lex.Lex(); // eat the '>'. in ParseTemplateArgList()
2381 if (Lex.getCode() != tgtok::Let) { in ParseBodyItem()
2385 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
2387 Lex.Lex(); in ParseBodyItem()
2392 if (Lex.Lex() != tgtok::Id) in ParseBodyItem()
2395 SMLoc IdLoc = Lex.getLoc(); in ParseBodyItem()
2396 StringInit *FieldName = StringInit::get(Lex.getCurStrVal()); in ParseBodyItem()
2397 Lex.Lex(); // eat the field name. in ParseBodyItem()
2404 if (Lex.getCode() != tgtok::equal) in ParseBodyItem()
2406 Lex.Lex(); // eat the '='. in ParseBodyItem()
2417 if (Lex.getCode() != tgtok::semi) in ParseBodyItem()
2419 Lex.Lex(); in ParseBodyItem()
2433 if (Lex.getCode() == tgtok::semi) { in ParseBody()
2434 Lex.Lex(); in ParseBody()
2438 if (Lex.getCode() != tgtok::l_brace) in ParseBody()
2441 Lex.Lex(); in ParseBody()
2443 while (Lex.getCode() != tgtok::r_brace) in ParseBody()
2448 Lex.Lex(); in ParseBody()
2485 if (Lex.getCode() == tgtok::colon) { in ParseObjectBody()
2486 Lex.Lex(); in ParseObjectBody()
2498 if (Lex.getCode() != tgtok::comma) break; in ParseObjectBody()
2499 Lex.Lex(); // eat ','. in ParseObjectBody()
2516 SMLoc DefLoc = Lex.getLoc(); in ParseDef()
2517 assert(Lex.getCode() == tgtok::Def && "Unknown tok"); in ParseDef()
2518 Lex.Lex(); // Eat the 'def' token. in ParseDef()
2543 assert(Lex.getCode() == tgtok::Defset); in ParseDefset()
2544 Lex.Lex(); // Eat the 'defset' token in ParseDefset()
2547 Defset.Loc = Lex.getLoc(); in ParseDefset()
2555 if (Lex.getCode() != tgtok::Id) in ParseDefset()
2557 StringInit *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseDefset()
2561 if (Lex.Lex() != tgtok::equal) // Eat the identifier in ParseDefset()
2563 if (Lex.Lex() != tgtok::l_brace) // Eat the '=' in ParseDefset()
2565 SMLoc BraceLoc = Lex.getLoc(); in ParseDefset()
2566 Lex.Lex(); // Eat the '{' in ParseDefset()
2574 if (Lex.getCode() != tgtok::r_brace) { in ParseDefset()
2578 Lex.Lex(); // Eat the '}' in ParseDefset()
2592 SMLoc Loc = Lex.getLoc(); in ParseForeach()
2593 assert(Lex.getCode() == tgtok::Foreach && "Unknown tok"); in ParseForeach()
2594 Lex.Lex(); // Eat the 'for' token. in ParseForeach()
2603 if (Lex.getCode() != tgtok::In) in ParseForeach()
2605 Lex.Lex(); // Eat the in in ParseForeach()
2610 if (Lex.getCode() != tgtok::l_brace) { in ParseForeach()
2615 SMLoc BraceLoc = Lex.getLoc(); in ParseForeach()
2617 Lex.Lex(); // eat the '{'. in ParseForeach()
2623 if (Lex.getCode() != tgtok::r_brace) { in ParseForeach()
2627 Lex.Lex(); // Eat the } in ParseForeach()
2642 assert(Lex.getCode() == tgtok::Class && "Unexpected token!"); in ParseClass()
2643 Lex.Lex(); in ParseClass()
2645 if (Lex.getCode() != tgtok::Id) in ParseClass()
2648 Record *CurRec = Records.getClass(Lex.getCurStrVal()); in ParseClass()
2659 llvm::make_unique<Record>(Lex.getCurStrVal(), Lex.getLoc(), Records, in ParseClass()
2664 Lex.Lex(); // eat the name. in ParseClass()
2667 if (Lex.getCode() == tgtok::less) in ParseClass()
2682 if (Lex.getCode() != tgtok::Id) { in ParseLetList()
2688 StringInit *Name = StringInit::get(Lex.getCurStrVal()); in ParseLetList()
2689 SMLoc NameLoc = Lex.getLoc(); in ParseLetList()
2690 Lex.Lex(); // Eat the identifier. in ParseLetList()
2700 if (Lex.getCode() != tgtok::equal) { in ParseLetList()
2705 Lex.Lex(); // eat the '='. in ParseLetList()
2716 if (Lex.getCode() != tgtok::comma) in ParseLetList()
2718 Lex.Lex(); // eat the comma. in ParseLetList()
2729 assert(Lex.getCode() == tgtok::Let && "Unexpected token"); in ParseTopLevelLet()
2730 Lex.Lex(); in ParseTopLevelLet()
2738 if (Lex.getCode() != tgtok::In) in ParseTopLevelLet()
2740 Lex.Lex(); in ParseTopLevelLet()
2743 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet()
2748 SMLoc BraceLoc = Lex.getLoc(); in ParseTopLevelLet()
2750 Lex.Lex(); // eat the '{'. in ParseTopLevelLet()
2756 if (Lex.getCode() != tgtok::r_brace) { in ParseTopLevelLet()
2760 Lex.Lex(); in ParseTopLevelLet()
2779 assert(Lex.getCode() == tgtok::MultiClass && "Unexpected token"); in ParseMultiClass()
2780 Lex.Lex(); // Eat the multiclass token. in ParseMultiClass()
2782 if (Lex.getCode() != tgtok::Id) in ParseMultiClass()
2784 std::string Name = Lex.getCurStrVal(); in ParseMultiClass()
2788 llvm::make_unique<MultiClass>(Name, Lex.getLoc(),Records))); in ParseMultiClass()
2794 Lex.Lex(); // Eat the identifier. in ParseMultiClass()
2797 if (Lex.getCode() == tgtok::less) in ParseMultiClass()
2804 if (Lex.getCode() == tgtok::colon) { in ParseMultiClass()
2807 Lex.Lex(); in ParseMultiClass()
2820 if (Lex.getCode() != tgtok::comma) break; in ParseMultiClass()
2821 Lex.Lex(); // eat ','. in ParseMultiClass()
2826 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
2829 if (Lex.getCode() != tgtok::semi) in ParseMultiClass()
2831 Lex.Lex(); // eat the ';'. in ParseMultiClass()
2833 if (Lex.Lex() == tgtok::r_brace) // eat the '{'. in ParseMultiClass()
2836 while (Lex.getCode() != tgtok::r_brace) { in ParseMultiClass()
2837 switch (Lex.getCode()) { in ParseMultiClass()
2850 Lex.Lex(); // eat the '}'. in ParseMultiClass()
2862 assert(Lex.getCode() == tgtok::Defm && "Unexpected token!"); in ParseDefm()
2863 Lex.Lex(); // eat the defm in ParseDefm()
2877 if (Lex.getCode() != tgtok::colon) in ParseDefm()
2887 Lex.Lex(); in ParseDefm()
2889 SMLoc SubClassLoc = Lex.getLoc(); in ParseDefm()
2931 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2932 Lex.Lex(); // eat ','. in ParseDefm()
2934 if (Lex.getCode() != tgtok::Id) in ParseDefm()
2937 SubClassLoc = Lex.getLoc(); in ParseDefm()
2941 InheritFromClass = (Records.getClass(Lex.getCurStrVal()) != nullptr); in ParseDefm()
2965 if (Lex.getCode() != tgtok::comma) break; in ParseDefm()
2966 Lex.Lex(); // eat ','. in ParseDefm()
2978 if (Lex.getCode() != tgtok::semi) in ParseDefm()
2980 Lex.Lex(); in ParseDefm()
2993 switch (Lex.getCode()) { in ParseObject()
3021 while (isObjectStart(Lex.getCode())) { in ParseObjectList()
3029 Lex.Lex(); // Prime the lexer. in ParseFile()
3033 if (Lex.getCode() == tgtok::Eof) in ParseFile()