Walks a namespace AST node.
Inheritance: ASTWalker, IASTWalker
Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="node"></param>
        /// <remarks>
        /// This will cause an AST walker to be created, thus we don't need to go further deeper in the
        /// tree by visiting the node.
        /// </remarks>
        public override void VisitNamespaceDeclaration(NamespaceDeclarationSyntax node)
        {
            var namespaceWalker = NamespaceASTWalker.Create(node, this.CreateWalkingContext(), this.semanticModel);
            var translationUnit = namespaceWalker.Walk();

            this.program.AddContent(translationUnit);

            this.InvokeNamespaceDeclarationVisited(this, new WalkerEventArgs());
        }
Esempio n. 2
0
 /// <summary>
 /// Copy initializes a new instance of the <see cref="NamespaceASTWalker"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public NamespaceASTWalker(NamespaceASTWalker other)
     : base(other)
 {
     this.module = other.module;
 }
Esempio n. 3
0
 /// <summary>
 /// Copy initializes a new instance of the <see cref="NamespaceASTWalker"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public NamespaceASTWalker(NamespaceASTWalker other)
     : base(other)
 {
     this.module = other.module;
 }