Antlr4.Codegen.Model.Lexer.Lexer C# (CSharp) Method

Lexer() public method

public Lexer ( OutputModelFactory factory, LexerFile file ) : System.Collections.Generic
factory OutputModelFactory
file LexerFile
return System.Collections.Generic
        public Lexer(OutputModelFactory factory, LexerFile file)
            : base(factory)
        {
            this.file = file; // who contains us?

            Grammar g = factory.GetGrammar();
            channels = new LinkedHashMap<string, int>(g.channelNameToValueMap);
            modes = ((LexerGrammar)g).modes.Keys;
        }
    }
Lexer