/// <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 }; }
/// <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) { }