コード例 #1
0
            public override MetaObject /*!*/ BindConvert(ConvertBinder /*!*/ action)
            {
                var result = RubyBinder.TryBindCovertToDelegate(action, this);

                if (result != null)
                {
                    return(result);
                }

                return(base.BindConvert(action));
            }
コード例 #2
0
 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;
 }
コード例 #3
0
 protected override MethodInfo GetGenericConvertMethod(Type toType)
 {
     return(RubyBinder.GetGenericConvertMethod(toType));
 }