Walks a constructor AST node. TODO: Unify logic with method AST walker.
Inheritance: ASTWalker, IASTWalker
Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="node"></param>
        public override void VisitConstructorDeclaration(ConstructorDeclarationSyntax node)
        {
            var constructorWalker = ConstructorASTWalker.Create(node, this.CreateWalkingContext(), this.semanticModel);
            var translationUnit   = constructorWalker.Walk();

            this.classDeclaration.AddConstructorDeclaration(translationUnit);

            this.InvokeConstructorDeclarationVisited(this, new WalkerEventArgs());
        }
 /// <summary>
 /// Copy initializes a new instance of the <see cref="ConstructorASTWalker"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public ConstructorASTWalker(ConstructorASTWalker other)
     : base(other)
 {
     this.constructorDeclaration = other.constructorDeclaration;
 }
Beispiel #3
0
 /// <summary>
 /// Copy initializes a new instance of the <see cref="ConstructorASTWalker"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public ConstructorASTWalker(ConstructorASTWalker other)
     : base(other)
 {
     this.constructorDeclaration = other.constructorDeclaration;
 }