示例#1
0
        public Lexer(SourceText text, CSharpParseOptions options, bool allowPreprocessorDirectives = true)
            : base(text)
        {
            Debug.Assert(options != null);

            _options = options;
            _builder = new StringBuilder();
            _identBuffer = new char[32];
            _cache = new LexerCache();
            _createQuickTokenFunction = this.CreateQuickToken;
            _allowPreprocessorDirectives = allowPreprocessorDirectives;
        }
示例#2
0
文件: Lexer.cs 项目: riversky/roslyn
        public Lexer(SourceText text, CSharpParseOptions options)
            : base(text)
        {
            Debug.Assert(options != null);

            this.options = options;
            this.builder = new StringBuilder();
            this.identBuffer = new char[32];
            this.cache = new LexerCache();
            this.createQuickTokenFunction = this.CreateQuickToken;
        }