Example #1
0
 internal EvalUnwinder(BlockReturnReason reason, RuntimeFlowControl targetFrame, ProcKind sourceProcKind, object returnValue)
     : base(returnValue)
 {
     Reason          = reason;
     _targetFrame    = targetFrame;
     _sourceProcKind = sourceProcKind;
 }
Example #2
0
        internal EvalUnwinder(BlockReturnReason reason, RuntimeFlowControl targetFrame, ProcKind sourceProcKind, object returnValue)
            : base(returnValue) {

            Reason = reason;
            _targetFrame = targetFrame;
            _sourceProcKind = sourceProcKind;
        }
Example #3
0
 internal Proc(ProcKind kind, object self, RubyScope/*!*/ scope, BlockDispatcher/*!*/ dispatcher) {
     Assert.NotNull(scope, dispatcher);
     _kind = kind;
     _self = self;
     _scope = scope;
     _dispatcher = dispatcher;
 }
Example #4
0
        internal void SetFlowControl(BlockReturnReason reason, RuntimeFlowControl targetFrame, ProcKind sourceProcKind)
        {
            Debug.Assert((reason == BlockReturnReason.Break) == (targetFrame != null));

            _returnReason   = reason;
            _targetFrame    = targetFrame;
            _sourceProcKind = sourceProcKind;
        }
Example #5
0
 internal Proc(ProcKind kind, object self, RubyScope /*!*/ scope, BlockDispatcher /*!*/ dispatcher)
 {
     Assert.NotNull(scope, dispatcher);
     _kind       = kind;
     _self       = self;
     _scope      = scope;
     _dispatcher = dispatcher;
 }
Example #6
0
 internal Proc(object self, Proc block, MethodBody body, int arity, ProcKind kind)
     : base(Ruby.Runtime.Init.rb_cProc)
 {
     this.self = self;
     this.block = block;
     this.body = body;
     this.kind = kind;
     this._arity = arity;
 }
Example #7
0
 public int GetProcCountLines(string procName, ProcKind procKind)
 {
     return(Target.get_ProcCountLines(procName, (vbext_ProcKind)procKind));
 }
Example #8
0
 public int GetProcBodyStartLine(string procName, ProcKind procKind)
 {
     return(Target.get_ProcBodyLine(procName, (vbext_ProcKind)procKind));
 }
Example #9
0
        internal void SetFlowControl(BlockReturnReason reason, RuntimeFlowControl targetFrame, ProcKind sourceProcKind) {
            Debug.Assert((reason == BlockReturnReason.Break) == (targetFrame != null));

            _returnReason = reason;
            _targetFrame = targetFrame;
            _sourceProcKind = sourceProcKind;
        }
Example #10
0
 public int GetProcCountLines(string procName, ProcKind procKind)
 {
     return(IsWrappingNullReference ? 0 : Target.get_ProcCountLines(procName, (vbext_ProcKind)procKind));
 }
Example #11
0
 public int GetProcBodyStartLine(string procName, ProcKind procKind)
 {
     return(IsWrappingNullReference ? 0 : Target.get_ProcBodyLine(procName, (vbext_ProcKind)procKind));
 }
Example #12
0
 internal Proc(ProcKind kind, object self, RubyScope/*!*/ scope, string sourcePath, int sourceLine, BlockDispatcher/*!*/ dispatcher) {
     Assert.NotNull(scope, dispatcher);
     _kind = kind;
     _self = self;
     _scope = scope;
     _dispatcher = dispatcher;
     _sourcePath = sourcePath;
     _sourceLine = sourceLine;
 }
Example #13
0
        // ----------------------------------------------------------------------------

        public Proc(Class klass)
            : base(klass)
        {
            this.kind = ProcKind.RawProc;
        }
Example #14
0
 public int GetProcCountLines(string procName, ProcKind procKind)
 {
     throw new NotImplementedException();
 }
Example #15
0
 public int GetProcBodyStartLine(string procName, ProcKind procKind)
 {
     throw new NotImplementedException();
 }