CmdSetStatementSyntax Class
Represents a set statement, including its /a and /p forms.
public sealed class CmdSetStatementSyntax : ShellStatementSyntax- Inheritance
ShellStatementSyntaxCmdSetStatementSyntax
Properties
| Name | Description |
|---|---|
| EqualsToken | |
| IsArithmetic | Returns true for set /a, which evaluates its value arithmetically. |
| IsPrompt | Returns true for set /p, which prompts the user. |
| Name | The variable name, or an empty string when the statement has no name. |
| NameToken | |
| Redirections | |
| SetKeyword | |
| SwitchToken | |
| Value |
EqualsToken
Syntax.g.csIsArithmetic
CmdSetStatementSyntax.csIsPrompt
CmdSetStatementSyntax.csNameToken
Syntax.g.csRedirections
Syntax.g.cspublic SyntaxList<ShellRedirectionSyntax> Redirections { get; }Property value
No documentation is available.
SetKeyword
Syntax.g.csSwitchToken
Syntax.g.csValue
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 overloads
Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, ShellWordSyntax?)
CmdSetStatementSyntax.csThe signature of version 3.0.0, from before CmdSetStatementSyntax.Redirections was added; the redirections are kept.
public CmdSetStatementSyntax Update(SyntaxToken setKeyword, SyntaxToken switchToken, SyntaxToken nameToken, SyntaxToken equalsToken, ShellWordSyntax? value)Parameters
setKeywordSyntaxTokenswitchTokenSyntaxTokennameTokenSyntaxTokenequalsTokenSyntaxTokenvalueShellWordSyntax?
Returns
Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, ShellWordSyntax?, SyntaxList<ShellRedirectionSyntax>)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public CmdSetStatementSyntax Update(SyntaxToken setKeyword, SyntaxToken switchToken, SyntaxToken nameToken, SyntaxToken equalsToken, ShellWordSyntax? value, SyntaxList<ShellRedirectionSyntax> redirections)Parameters
setKeywordSyntaxTokenswitchTokenSyntaxTokennameTokenSyntaxTokenequalsTokenSyntaxTokenvalueShellWordSyntax?redirectionsSyntaxList<ShellRedirectionSyntax>
Returns
WithEqualsToken(SyntaxToken)
Syntax.g.csReturns this node with equalsToken in place of its CmdSetStatementSyntax.EqualsToken.
public CmdSetStatementSyntax WithEqualsToken(SyntaxToken equalsToken)WithNameToken(SyntaxToken)
Syntax.g.csReturns this node with nameToken in place of its CmdSetStatementSyntax.NameToken.
public CmdSetStatementSyntax WithNameToken(SyntaxToken nameToken)WithRedirections(SyntaxList<ShellRedirectionSyntax>)
Syntax.g.csReturns this node with redirections in place of its CmdSetStatementSyntax.Redirections.
public CmdSetStatementSyntax WithRedirections(SyntaxList<ShellRedirectionSyntax> redirections)WithSetKeyword(SyntaxToken)
Syntax.g.csReturns this node with setKeyword in place of its CmdSetStatementSyntax.SetKeyword.
public CmdSetStatementSyntax WithSetKeyword(SyntaxToken setKeyword)WithSwitchToken(SyntaxToken)
Syntax.g.csReturns this node with switchToken in place of its CmdSetStatementSyntax.SwitchToken.
public CmdSetStatementSyntax WithSwitchToken(SyntaxToken switchToken)WithValue(ShellWordSyntax?)
Syntax.g.csReturns this node with value in place of its CmdSetStatementSyntax.Value.
public CmdSetStatementSyntax WithValue(ShellWordSyntax? value)