Esempio n. 1
0
        private CompiledCode CompileInternal(CompilerOptions compilerOptions, ErrorListener errorListener)
        {
            ErrorSink  errorSink = new ErrorListenerProxySink(this, errorListener);
            ScriptCode code      = compilerOptions != null?_unit.Compile(compilerOptions, errorSink) : _unit.Compile(errorSink);

            return((code != null) ? new CompiledCode(_engine, code) : null);
        }
Esempio n. 2
0
        private CompiledCode CompileInternal(CompilerOptions compilerOptions, ErrorListener errorListener)
        {
            ErrorSink  errorSink = new ErrorListenerProxySink(this, errorListener);
            ScriptCode code      = _unit.Compile(compilerOptions ?? _unit.LanguageContext.GetCompilerOptions(), errorSink);

            return((code != null) ? new CompiledCode(_engine, code) : null);
        }