public DisposeMethod(IteratorStorey host) : base(host, null, new TypeExpression(host.Compiler.BuiltinTypes.Void, host.Location), Modifiers.PUBLIC | Modifiers.DEBUGGER_HIDDEN, new MemberName("Dispose", host.Location)) { host.Members.Add(this); Block.AddStatement(new DisposeMethodStatement(host.Iterator)); Block.IsCompilerGenerated = true; }
public static GetEnumeratorMethod Create(IteratorStorey host, FullNamedExpression returnType, MemberName name, Statement statement) { var m = new GetEnumeratorMethod(host, returnType, name); var stmt = statement ?? new GetEnumeratorStatement(host, m); m.block.AddStatement(stmt); m.block.IsCompilerGenerated = true; return(m); }
GetEnumeratorMethod(IteratorStorey host, FullNamedExpression returnType, MemberName name) : base(host, null, returnType, Modifiers.DEBUGGER_HIDDEN, name) { }
public static GetEnumeratorMethod Create(IteratorStorey host, FullNamedExpression returnType, MemberName name) { return(Create(host, returnType, name, null)); }
public GetEnumeratorStatement(IteratorStorey host, StateMachineMethod host_method) { this.host = host; this.host_method = host_method; loc = host_method.Location; }