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

VisitLocalDeclarationsStatement() public method

public VisitLocalDeclarationsStatement ( System.Compiler.LocalDeclarationsStatement localDeclarations ) : System.Compiler.Statement
localDeclarations System.Compiler.LocalDeclarationsStatement
return System.Compiler.Statement
        public override Statement VisitLocalDeclarationsStatement(LocalDeclarationsStatement localDeclarations)
        {
            if (localDeclarations == null) return null;
            localDeclarations.Type = this.VisitTypeReference(localDeclarations.Type);
            LocalDeclarationList decls = localDeclarations.Declarations;
            if (decls != null)
            {
                int n = decls.Count;
                LocalDeclarationList newDecls = localDeclarations.Declarations = new LocalDeclarationList(n);
                for (int i = 0; i < n; i++)
                    newDecls.Add(this.VisitLocalDeclaration(decls[i]));
            }
            return localDeclarations;
        }