Walks a class AST node. // TODO: Override class definition in order to create an inner class and remove the node!
Inheritance: Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker
Exemple #1
0
        /// <summary>
        /// Copy initializes a new instance of the <see cref="ASTWalker"/> class.
        /// </summary>
        /// <param name="other"></param>
        /// <remarks>
        /// For testability.
        /// </remarks>
        public ASTWalker(ASTWalker other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            this.node = other.node;
            this.semanticModel = other.semanticModel;
        }
Exemple #2
0
        /// <summary>
        /// Copy initializes a new instance of the <see cref="ASTWalker"/> class.
        /// </summary>
        /// <param name="other"></param>
        /// <remarks>
        /// For testability.
        /// </remarks>
        public ASTWalker(ASTWalker other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            this.node          = other.node;
            this.semanticModel = other.semanticModel;
        }