Walks a namespace AST node.
Наследование: 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)
 {
 }
 /// <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)
 {
 }