PowerShellAttributeSyntax Class
Represents an attribute or type constraint, [Parameter(Mandatory)] or [string].
public sealed class PowerShellAttributeSyntax : ShellSyntaxNode- Inheritance
ShellSyntaxNodePowerShellAttributeSyntax
Properties
| Name | Description |
|---|---|
| Arguments | |
| CloseBracketToken | |
| CloseParenToken | |
| IsTypeConstraint | Returns true when the attribute has no argument list, making it a type constraint. |
| Name | The attribute or type name. |
| NameToken | |
| OpenBracketToken | |
| OpenParenToken |
Arguments
Syntax.g.cspublic SeparatedSyntaxList<ShellExpressionSyntax> Arguments { get; }Property value
No documentation is available.
CloseBracketToken
Syntax.g.csCloseParenToken
Syntax.g.csIsTypeConstraint
PowerShellAttributeSyntax.csNameToken
Syntax.g.csOpenBracketToken
Syntax.g.csOpenParenToken
Syntax.g.csMethods
Accept overloads
Accept(ShellSyntaxVisitor)
Syntax.g.cspublic override void Accept(ShellSyntaxVisitor visitor)Parameters
visitorShellSyntaxVisitor
No documentation is available.
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Syntax.g.cspublic override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxToken, SyntaxToken, SyntaxToken, SeparatedSyntaxList<ShellExpressionSyntax>, SyntaxToken, SyntaxToken)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellAttributeSyntax Update(SyntaxToken openBracketToken, SyntaxToken nameToken, SyntaxToken openParenToken, SeparatedSyntaxList<ShellExpressionSyntax> arguments, SyntaxToken closeParenToken, SyntaxToken closeBracketToken)Parameters
openBracketTokenSyntaxTokennameTokenSyntaxTokenopenParenTokenSyntaxTokenargumentsSeparatedSyntaxList<ShellExpressionSyntax>closeParenTokenSyntaxTokencloseBracketTokenSyntaxToken
Returns
WithArguments(SeparatedSyntaxList<ShellExpressionSyntax>)
Syntax.g.csReturns this node with arguments in place of its PowerShellAttributeSyntax.Arguments.
public PowerShellAttributeSyntax WithArguments(SeparatedSyntaxList<ShellExpressionSyntax> arguments)WithCloseBracketToken(SyntaxToken)
Syntax.g.csReturns this node with closeBracketToken in place of its PowerShellAttributeSyntax.CloseBracketToken.
public PowerShellAttributeSyntax WithCloseBracketToken(SyntaxToken closeBracketToken)WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its PowerShellAttributeSyntax.CloseParenToken.
public PowerShellAttributeSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithNameToken(SyntaxToken)
Syntax.g.csReturns this node with nameToken in place of its PowerShellAttributeSyntax.NameToken.
public PowerShellAttributeSyntax WithNameToken(SyntaxToken nameToken)WithOpenBracketToken(SyntaxToken)
Syntax.g.csReturns this node with openBracketToken in place of its PowerShellAttributeSyntax.OpenBracketToken.
public PowerShellAttributeSyntax WithOpenBracketToken(SyntaxToken openBracketToken)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its PowerShellAttributeSyntax.OpenParenToken.
public PowerShellAttributeSyntax WithOpenParenToken(SyntaxToken openParenToken)