Walks a namespace AST node.
Inheritance: Rosetta.AST.NamespaceASTWalker
コード例 #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 = NamespaceDefinitionASTWalker.Create(node, this.CreateWalkingContext(), this.semanticModel);
            var translationUnit = namespaceWalker.Walk();

            this.program.AddContent(translationUnit);

            this.InvokeNamespaceDeclarationVisited(this, new WalkerEventArgs());
        }
コード例 #2
0
 /// <summary>
 /// Copy initializes a new instance of the <see cref="NamespaceDefinitionASTWalker"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public NamespaceDefinitionASTWalker(NamespaceDefinitionASTWalker other)
     : base(other)
 {
 }
コード例 #3
0
 /// <summary>
 /// Copy initializes a new instance of the <see cref="NamespaceDefinitionASTWalker"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public NamespaceDefinitionASTWalker(NamespaceDefinitionASTWalker other)
     : base(other)
 {
 }