Example #1
0
        public GoClassifierLexer([NotNull] ICharStream input, GoClassifierLexerState state)
        {
            Requires.NotNull(input, nameof(input));

            _input         = input;
            _languageLexer = new GoColorizerLexer(input, this);

            _mode = state.Mode;
        }
        public GoClassifierLexer(ICharStream input, GoClassifierLexerState state)
        {
            Contract.Requires <ArgumentNullException>(input != null, "input");

            _input         = input;
            _languageLexer = new GoColorizerLexer(input, this);

            _mode = state.Mode;
        }