CmdIfStatementSyntax Class
Represents an if statement in its errorlevel, defined, exist, or comparison form.
public sealed class CmdIfStatementSyntax : ShellStatementSyntax- Inheritance
ShellStatementSyntaxCmdIfStatementSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| CaseInsensitiveToken | |
| Condition | |
| ElseClause | |
| IfKeyword | |
| IsCaseInsensitive | Returns true when the comparison ignores case. |
| IsNegated | Returns true when the condition is negated. |
| NotKeyword |
Body
Syntax.g.csCaseInsensitiveToken
Syntax.g.csCondition
Syntax.g.csElseClause
Syntax.g.csIfKeyword
Syntax.g.csIsCaseInsensitive
CmdIfStatementSyntax.csIsNegated
CmdIfStatementSyntax.csNotKeyword
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, SyntaxToken, SyntaxToken, ShellExpressionSyntax, ShellStatementSyntax, CmdElseClauseSyntax?) | Returns this node with the given parts, or itself when nothing changed. |
| WithBody(ShellStatementSyntax) | Returns this node with body in place of its CmdIfStatementSyntax.Body. |
| WithCaseInsensitiveToken(SyntaxToken) | Returns this node with caseInsensitiveToken in place of its CmdIfStatementSyntax.CaseInsensitiveToken. |
| WithCondition(ShellExpressionSyntax) | Returns this node with condition in place of its CmdIfStatementSyntax.Condition. |
| WithElseClause(CmdElseClauseSyntax?) | Returns this node with elseClause in place of its CmdIfStatementSyntax.ElseClause. |
| WithIfKeyword(SyntaxToken) | Returns this node with ifKeyword in place of its CmdIfStatementSyntax.IfKeyword. |
| WithNotKeyword(SyntaxToken) | Returns this node with notKeyword in place of its CmdIfStatementSyntax.NotKeyword. |
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, ShellExpressionSyntax, ShellStatementSyntax, CmdElseClauseSyntax?)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public CmdIfStatementSyntax Update(SyntaxToken ifKeyword, SyntaxToken caseInsensitiveToken, SyntaxToken notKeyword, ShellExpressionSyntax condition, ShellStatementSyntax body, CmdElseClauseSyntax? elseClause)Parameters
ifKeywordSyntaxTokencaseInsensitiveTokenSyntaxTokennotKeywordSyntaxTokenconditionShellExpressionSyntaxbodyShellStatementSyntaxelseClauseCmdElseClauseSyntax?
Returns
WithBody(ShellStatementSyntax)
Syntax.g.csReturns this node with body in place of its CmdIfStatementSyntax.Body.
public CmdIfStatementSyntax WithBody(ShellStatementSyntax body)WithCaseInsensitiveToken(SyntaxToken)
Syntax.g.csReturns this node with caseInsensitiveToken in place of its CmdIfStatementSyntax.CaseInsensitiveToken.
public CmdIfStatementSyntax WithCaseInsensitiveToken(SyntaxToken caseInsensitiveToken)WithCondition(ShellExpressionSyntax)
Syntax.g.csReturns this node with condition in place of its CmdIfStatementSyntax.Condition.
public CmdIfStatementSyntax WithCondition(ShellExpressionSyntax condition)WithElseClause(CmdElseClauseSyntax?)
Syntax.g.csReturns this node with elseClause in place of its CmdIfStatementSyntax.ElseClause.
public CmdIfStatementSyntax WithElseClause(CmdElseClauseSyntax? elseClause)WithIfKeyword(SyntaxToken)
Syntax.g.csReturns this node with ifKeyword in place of its CmdIfStatementSyntax.IfKeyword.
public CmdIfStatementSyntax WithIfKeyword(SyntaxToken ifKeyword)WithNotKeyword(SyntaxToken)
Syntax.g.csReturns this node with notKeyword in place of its CmdIfStatementSyntax.NotKeyword.
public CmdIfStatementSyntax WithNotKeyword(SyntaxToken notKeyword)