public PsiParser(ILexer lexer, CommonIdentifierIntern commonIdentifierIntern) { myCheckForInterrupt = new SeldomInterruptChecker(); myOriginalLexer = lexer; myCommonIdentifierIntern = commonIdentifierIntern; var tokenBuffer = new TokenBuffer(lexer); myLexer = new FilteringPsiLexer(tokenBuffer.CreateLexer()); myLexer.Start(); }
public override ILexer CreateFilteringLexer(ILexer lexer) { var tokenBuffer = new TokenBuffer(lexer); return(new FilteringPsiLexer(tokenBuffer.CreateLexer())); }