Factory for PropertyDeclarationTranslationUnit.
Inheritance: TranslationUnitFactory, ITranslationUnitFactory
Exemplo n.º 1
0
        /// <summary>
        /// Factory method for class <see cref="PropertyASTWalker"/>.
        /// </summary>
        /// <param name="node"><see cref="CSharpSyntaxNode"/> Used to initialize the walker.</param>
        /// <param name="context">The walking context.</param>
        /// <param name="semanticModel">The semantic model.</param>
        /// <returns></returns>
        public static PropertyASTWalker Create(CSharpSyntaxNode node, ASTWalkerContext context = null, SemanticModel semanticModel = null)
        {
            var propertyDeclaration = new PropertyDeclarationTranslationUnitFactory(node, semanticModel).Create() as PropertyDeclarationTranslationUnit;

            return new PropertyASTWalker(node, propertyDeclaration, semanticModel)
            {
                Context = context
            };
        }
Exemplo n.º 2
0
 /// <summary>
 /// Copy initializes a new instance of the <see cref="PropertyDeclarationTranslationUnitFactory"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public PropertyDeclarationTranslationUnitFactory(PropertyDeclarationTranslationUnitFactory other)
     : base(other)
 {
 }
 /// <summary>
 /// Copy initializes a new instance of the <see cref="PropertyDeclarationTranslationUnitFactory"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public PropertyDeclarationTranslationUnitFactory(PropertyDeclarationTranslationUnitFactory other)
     : base(other)
 {
 }