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();
        }
示例#2
0
        public override ILexer CreateFilteringLexer(ILexer lexer)
        {
            var tokenBuffer = new TokenBuffer(lexer);

            return(new FilteringPsiLexer(tokenBuffer.CreateLexer()));
        }