protected override ITokenSourceWithState <V4PhpClassifierLexerState> CreateLexer(ICharStream input, int startLine, V4PhpClassifierLexerState state)
        {
            V4PhpClassifierLexer lexer = new V4PhpClassifierLexer(input);

            lexer.Line   = startLine;
            lexer.Column = 0;
            state.Apply(lexer);
            return(lexer);
        }
Beispiel #2
0
 public void Apply(V4PhpClassifierLexer lexer)
 {
     _simpleLexerState.Apply(lexer);
     lexer.StringBraceLevel  = _stringBraceLevel;
     lexer.HeredocIdentifier = _heredocIdentifier;
 }
Beispiel #3
0
 public V4PhpClassifierLexerState(V4PhpClassifierLexer lexer)
 {
     _simpleLexerState  = new SimpleLexerState(lexer);
     _stringBraceLevel  = lexer.StringBraceLevel;
     _heredocIdentifier = lexer.HeredocIdentifier;
 }