Lines Matching defs:Lexer
85 AsmLexer Lexer;
143 virtual MCAsmLexer &getLexer() { return Lexer; }
185 /// \brief Reset the current lexer position to that given by \arg Loc. The
355 : Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM),
363 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer));
421 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile);
427 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer));
434 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer), Loc.getPointer());
438 const AsmToken *tok = &Lexer.Lex();
446 tok = &Lexer.Lex();
451 Error(Lexer.getErrLoc(), Lexer.getErr());
461 // Prime the lexer.
468 while (Lexer.isNot(AsmToken::Eof)) {
533 while (Lexer.isNot(AsmToken::EndOfStatement) &&
534 Lexer.isNot(AsmToken::Eof))
538 if (Lexer.is(AsmToken::EndOfStatement))
545 while (Lexer.isNot(AsmToken::EndOfStatement) &&
546 Lexer.isNot(AsmToken::Eof))
560 if (Lexer.isNot(AsmToken::RParen))
562 EndLoc = Lexer.getLoc();
574 if (Lexer.isNot(AsmToken::RBrac))
576 EndLoc = Lexer.getLoc();
588 switch (Lexer.getKind()) {
603 EndLoc = Lexer.getLoc();
641 EndLoc = Lexer.getLoc();
644 if (Lexer.getKind() == AsmToken::Identifier) {
653 EndLoc = Lexer.getLoc();
672 EndLoc = Lexer.getLoc();
778 if (Lexer.getKind() == AsmToken::At) {
781 if (Lexer.isNot(AsmToken::Identifier))
817 SMLoc StartLoc = Lexer.getLoc();
912 unsigned TokPrec = getBinOpPrecedence(Lexer.getKind(), Kind);
928 unsigned NextTokPrec = getBinOpPrecedence(Lexer.getKind(), Dummy);
946 if (Lexer.is(AsmToken::EndOfStatement)) {
958 if (Lexer.is(AsmToken::Hash))
962 if (Lexer.is(AsmToken::Integer)) {
972 if (Lexer.getKind() != AsmToken::Colon) {
978 } else if (Lexer.is(AsmToken::Dot)) {
1015 switch (Lexer.getKind()) {
1044 if (Lexer.is(AsmToken::EndOfStatement)) {
1046 if (Lexer.is(AsmToken::Eof))
1228 /// EatToEndOfLine uses the Lexer to eat the characters to the end of the line
1231 Lexer.LexUntilEndOfLine();
1438 if (Lexer.is(AsmToken::Eof))
1440 if (Lexer.is(AsmToken::EndOfStatement))
1445 if (ParenLevel == 0 && Lexer.is(AsmToken::Comma)) {
1449 if (Lexer.is(AsmToken::LParen))
1451 else if (Lexer.is(AsmToken::RParen) && ParenLevel)
1478 // Jump to the macro instantiation and prime the lexer.
1480 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer));
1517 SMLoc EqualLoc = Lexer.getLoc();
1525 if (Lexer.isNot(AsmToken::EndOfStatement))
1577 if (Lexer.is(AsmToken::Dollar)) {
1582 if (Lexer.isNot(AsmToken::Identifier))
1596 if (Lexer.isNot(AsmToken::Identifier) &&
1597 Lexer.isNot(AsmToken::String))
2015 if ((!HasFillExpr || Lexer.getMAI().getTextAlignFillValue() == FillExpr) &&
2090 if (Lexer.getMAI().getAlignmentIsInBytes()) {
2169 // Attempt to switch the lexer to the included file before consuming the end