internal AstGenerator(RubyBinder /*!*/ binder, RubyCompilerOptions /*!*/ options, SourceUnit /*!*/ sourceUnit, Encoding /*!*/ encoding, bool debugCompiler, bool debugMode, bool traceEnabled, bool profilerEnabled, bool savingToDisk) { Assert.NotNull(binder, options, encoding); _binder = binder; _compilerOptions = options; _debugCompiler = debugCompiler; _debugMode = debugMode; _traceEnabled = traceEnabled; _sourceUnit = sourceUnit; _document = sourceUnit.Document; _encoding = encoding; _profiler = profilerEnabled ? Profiler.Instance : null; _savingToDisk = savingToDisk; }
internal AstGenerator(RubyCompilerOptions/*!*/ options, SourceUnit/*!*/ sourceUnit, RubyEncoding/*!*/ encoding, bool debugCompiler, bool debugMode, bool traceEnabled, bool profilerEnabled, bool savingToDisk) { Assert.NotNull(options, encoding, sourceUnit); _context = (RubyContext)sourceUnit.LanguageContext; _compilerOptions = options; _debugCompiler = debugCompiler; _debugMode = debugMode; _traceEnabled = traceEnabled; _sourceUnit = sourceUnit; _document = sourceUnit.Document; _encoding = encoding; _profiler = profilerEnabled ? Profiler.Instance : null; _savingToDisk = savingToDisk; }