/// <summary> /// Initializes a new instance of the <see cref="MethodDeclaration"/> class. /// </summary> /// <param name="name">The member name.</param> /// <param name="returnType">The return type use.</param> /// <param name="syntaxNodeProvider">The property syntax provider.</param> public MethodDeclaration( string name, IDeclarationUse <SyntaxNode> returnType, ISyntaxNodeProvider <MethodDeclarationSyntax> syntaxNodeProvider) : base(name, syntaxNodeProvider) { this.ReturnType = returnType; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyDeclaration"/> class. /// </summary> /// <param name="name">The member name.</param> /// <param name="propertyType">The property type use.</param> /// <param name="syntaxNodeProvider">The property syntax provider.</param> /// <param name="hasGetter">Tells if the property has a getter.</param> /// <param name="hasSetter">Tells if the property has a setter.</param> public PropertyDeclaration( string name, IDeclarationUse <SyntaxNode> propertyType, ISyntaxNodeProvider <PropertyDeclarationSyntax> syntaxNodeProvider, bool hasGetter, bool hasSetter) : base(name, syntaxNodeProvider) { this.PropertyType = propertyType; this.HasGetter = hasGetter; this.HasSetter = hasSetter; }