예제 #1
0
        public GoColorizerLexer(ICharStream input, [NotNull] GoClassifierLexer lexer)
            : this(input)
        {
            Requires.NotNull(lexer, nameof(lexer));

            _lexer = lexer;
        }
예제 #2
0
        public GoColorizerLexer(ICharStream input, GoClassifierLexer lexer)
            : this(input)
        {
            Contract.Requires <ArgumentNullException>(lexer != null, "lexer");

            _lexer = lexer;
        }