/// <summary> /// /// </summary> /// <param name="node"></param> public override void VisitPropertyDeclaration(PropertyDeclarationSyntax node) { var propertyWalker = PropertyASTWalker.Create(node, this.CreateWalkingContext(), this.semanticModel); var translationUnit = propertyWalker.Walk(); this.classDeclaration.AddPropertyDeclaration(translationUnit); this.InvokePropertyDeclarationVisited(this, new WalkerEventArgs()); }
/// <summary> /// Copy initializes a new instance of the <see cref="PropertyASTWalker"/> class. /// </summary> /// <param name="other"></param> /// <remarks> /// For testability. /// </remarks> public PropertyASTWalker(PropertyASTWalker other) : base(other) { this.propertyDeclaration = other.propertyDeclaration; }