public STNativeMethod(STMethodPrototype prototype, STBlock block) { Prototype = prototype; Block = block; Block.Context = new LocalContext(Block.Context, true); foreach (var name in prototype.ParameterNames) Block.Context.Declare(name.Name); }
public STCompiledMethod CompleteMethod(STMethodPrototype prototype, STBlock block) { return MethodDictionary[prototype.Selector] = new STNativeMethod(prototype, block); }