public static RubyMethodScope/*!*/ CreateMethodScope(LocalsDictionary/*!*/ locals, RubyScope/*!*/ parent, RubyMethodInfo/*!*/ methodDefinition, RuntimeFlowControl/*!*/ rfc, object selfObject, Proc blockParameter) { Assert.NotNull(locals, parent, methodDefinition, rfc); RubyMethodScope scope = new RubyMethodScope(parent, locals, methodDefinition, blockParameter); scope.Initialize(rfc, RubyMethodAttributes.PublicInstance, selfObject); scope.SetDebugName("method " + methodDefinition.DefinitionName + ((blockParameter != null) ? "&" : null) ); return scope; }
public static RubyMethodScope/*!*/ CreateMethodScope(LocalsDictionary/*!*/ locals, RubyScope/*!*/ parentScope, RubyModule/*!*/ declaringModule, string/*!*/ definitionName, RuntimeFlowControl/*!*/ rfc, object selfObject, Proc blockParameter, InterpretedFrame interpretedFrame) { RubyMethodScope scope = new RubyMethodScope(parentScope, declaringModule, definitionName, blockParameter, rfc, selfObject); scope.SetDebugName("method " + definitionName + ((blockParameter != null) ? "&" : null)); scope.Frame = locals; scope.InterpretedFrame = interpretedFrame; return scope; }
public static RubyMethodScope/*!*/ CreateMethodScope(LocalsDictionary/*!*/ locals, RubyScope/*!*/ parent, RubyMethodInfo/*!*/ methodDefinition, RuntimeFlowControl/*!*/ rfc, object selfObject, Proc blockParameter) { RubyMethodScope scope = new RubyMethodScope(parent, methodDefinition, blockParameter, rfc, selfObject); scope.SetDebugName("method " + methodDefinition.DefinitionName + ((blockParameter != null) ? "&" : null)); scope.Frame = locals; return scope; }