Mono.CSharp.Block.AddStatement C# (CSharp) Method

AddStatement() public method

public AddStatement ( Statement s ) : void
s Statement
return void
		public void AddStatement (Statement s)
		{
			statements.Add (s);
		}

Usage Example

Example #1
0
            public DisposeMethod(IteratorStorey host)
                : base(host, new TypeExpression(host.Compiler.BuiltinTypes.Void, host.Location), Modifiers.PUBLIC | Modifiers.DEBUGGER_HIDDEN,
                       new MemberName("Dispose", host.Location))
            {
                host.AddMethod(this);

                Block.AddStatement(new DisposeMethodStatement(host.Iterator));
            }
All Usage Examples Of Mono.CSharp.Block::AddStatement