public override object Visit(NamespaceDeclaration namespaceDeclaration, object data)
        {
            ProcessSpecials(namespaceDeclaration.Specials);

            CodeNamespace currentNamespace = new CodeNamespace(namespaceDeclaration.NameSpace);
            namespaces.Add(currentNamespace);
            // add imports from mother namespace
            foreach (CodeNamespaceImport import in ((CodeNamespace)namespaceDeclarations.Peek()).Imports) {
                currentNamespace.Imports.Add(import);
            }
            namespaceDeclarations.Push(currentNamespace);
            namespaceDeclaration.AcceptChildren(this, data);
            namespaceDeclarations.Pop();
            codeCompileUnit.Namespaces.Add(currentNamespace);

            // TODO : Nested namespaces allowed in CodeDOM ? Doesn't seem so :(
            return null;
        }
 public override object Visit(NamespaceDeclaration namespaceDeclaration, object data)
 {
     DebugOutput(namespaceDeclaration);
     AppendIndentation();sourceText.Append("Namespace ");
     sourceText.Append(namespaceDeclaration.NameSpace);
     AppendNewLine();
     ++indentLevel;
     namespaceDeclaration.AcceptChildren(this, data);
     --indentLevel;
     AppendIndentation();sourceText.Append("End Namespace");
     AppendNewLine();
     return null;
 }
 public virtual object Visit(NamespaceDeclaration namespaceDeclaration, object data)
 {
     return namespaceDeclaration.AcceptChildren(this, data);
 }
 public override object Visit(NamespaceDeclaration namespaceDeclaration, object data)
 {
     Console.WriteLine(namespaceDeclaration.ToString());
     return namespaceDeclaration.AcceptChildren(this, data);
 }
        public override object Visit(NamespaceDeclaration namespaceDeclaration, object data)
        {
            outputFormatter.NewLine ();
            outputFormatter.Indent();
            outputFormatter.PrintToken(Tokens.Namespace);
            outputFormatter.Space();
            outputFormatter.PrintIdentifier(namespaceDeclaration.NameSpace);

            outputFormatter.BeginBrace(this.prettyPrintOptions.NameSpaceBraceStyle);

            namespaceDeclaration.AcceptChildren(this, data);

            outputFormatter.EndBrace();

            return null;
        }