public SourceMethodBuilder OpenMethod(ICompileUnit file, int ns_id, IMethodDef method) { SourceMethodBuilder builder = new SourceMethodBuilder(file, ns_id, method); current_method_stack.Push(current_method); current_method = builder; methods.Add(current_method); return(builder); }
public void CloseMethod() { current_method = (SourceMethodBuilder)current_method_stack.Pop(); }