public virtual void VisitNamespaceDeclaration(NamespaceDeclarationSyntax node)
 {
     DefaultVisit(node);
 }
Exemple #2
0
        public static NamespaceDeclarationSyntax NamespaceDeclaration(string name = null, IEnumerable<ExternAliasDirectiveSyntax> externs = null, IEnumerable<UsingDirectiveSyntax> usings = null, IEnumerable<MemberDeclarationSyntax> members = null)
        {
            var result = new NamespaceDeclarationSyntax();

            if (name != null)
                result.Name = (NameSyntax)ParseName(name);
            if (externs != null)
                result.Externs.AddRange(externs);
            if (usings != null)
                result.Usings.AddRange(usings);
            if (members != null)
                result.Members.AddRange(members);

            return result;
        }