示例#1
0
 public override Delegate GetDelegateForInterpreter(CodeContext context, Type delegateType, bool forceWrapperMethod)
 {
     // For now, always return a compiled delegate (since yield is not implemented)
     lock (this) {
         if (_delegate == null)
         {
             FlowChecker.Check(this);
             _delegate = GetCompiledDelegate(context.ModuleContext.CompilerContext, delegateType, forceWrapperMethod);
         }
         return(_delegate);
     }
 }
示例#2
0
 public static void Check(CodeBlock block)
 {
     FlowChecker fc = new FlowChecker(block);
     fc.WalkNode(block);
 }
示例#3
0
        public static void Check(CodeBlock block)
        {
            FlowChecker fc = new FlowChecker(block);

            fc.WalkNode(block);
        }