public override MetaObject /*!*/ BindConvert(ConvertBinder /*!*/ action) { var result = RubyBinder.TryBindCovertToDelegate(action, this); if (result != null) { return(result); } return(base.BindConvert(action)); }
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; }
protected override MethodInfo GetGenericConvertMethod(Type toType) { return(RubyBinder.GetGenericConvertMethod(toType)); }