Walks a property AST node.
Inheritance: ASTWalker, IASTWalker
Beispiel #1
0
        /// <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());
        }
Beispiel #2
0
 /// <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;
 }
 /// <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;
 }