/// <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; }