Microsoft.Zing.Replacer.Replace C# (CSharp) Method

Replace() public static method

Within "node", find a labeled statement whose label matches the given string, and replace it with the supplied statement block.
public static Replace ( System.Compiler.Node node, string labelName, System.Compiler.Block block ) : void
node System.Compiler.Node
labelName string
block System.Compiler.Block
return void
        public static void Replace(Node node, string labelName, Block block)
        {
            Replacer replacer = new Replacer(new Identifier(labelName), block);
            replacer.Visit(node);
        }

Same methods

Replacer::Replace ( System.Compiler.Node node, System.Compiler.Identifier oldName, System.Compiler.Node newNode ) : void
Replacer::Replace ( System.Compiler.Node node, string oldName, System.Compiler.Node newNode ) : void