Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void CloseMethod()
 {
     current_method = (SourceMethodBuilder)current_method_stack.Pop();
 }