コード例 #1
0
        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;
        }
コード例 #2
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;
        }
コード例 #3
0
 public AlloyClassifierLexerState(AlloyClassifierLexerMode mode, bool inComment)
 {
     Mode      = mode;
     InComment = inComment;
 }