Walks a class AST node. // TODO: Override class definition in order to create an inner class and remove the node!
Наследование: Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker
Пример #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;
        }
Пример #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;
        }