Exemple #1
0
        public AlloyClassifierLexer([NotNull] ICharStream input, AlloyClassifierLexerState state)
        {
            Requires.NotNull(input, nameof(input));

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

            _mode      = state.Mode;
            _inComment = state.InComment;
        }
        public AlloyClassifierLexer(ICharStream input, AlloyClassifierLexerState state)
        {
            Contract.Requires <ArgumentNullException>(input != null, "input");

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

            _mode      = state.Mode;
            _inComment = state.InComment;
        }