Boo.Lang.Compiler.Ast.Statement.ReplaceBy C# (CSharp) Method

ReplaceBy() public method

public ReplaceBy ( Statement other ) : void
other Statement
return void
        public void ReplaceBy(Statement other)
        {
            Block block = (Block)ParentNode;
            if (null == block)
            {
                throw new InvalidOperationException();
            }

            block.Statements.Replace(this, other);
        }