PowerShellIfStatementSyntax Class

public sealed class PowerShellIfStatementSyntax : ShellStatementSyntax

No documentation is available.

Inheritance
ShellStatementSyntax PowerShellIfStatementSyntax

Properties

NameDescription
Body
CloseParenToken
Condition
ElseClause
ElseIfClauses
IfKeyword
OpenParenToken
public PowerShellScriptBlockSyntax Body { get; }

No documentation is available.

CloseParenToken

Syntax.g.cs
public SyntaxToken CloseParenToken { get; }

Property value

SyntaxToken

No documentation is available.

Condition

Syntax.g.cs
public ShellStatementListSyntax Condition { get; }

No documentation is available.

ElseClause

Syntax.g.cs
public PowerShellElseClauseSyntax? ElseClause { get; }

No documentation is available.

ElseIfClauses

Syntax.g.cs
public SyntaxList<PowerShellElseIfClauseSyntax> ElseIfClauses { get; }

No documentation is available.

IfKeyword

Syntax.g.cs
public SyntaxToken IfKeyword { get; }

Property value

SyntaxToken

No documentation is available.

OpenParenToken

Syntax.g.cs
public SyntaxToken OpenParenToken { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, ShellStatementListSyntax, SyntaxToken, PowerShellScriptBlockSyntax, SyntaxList<PowerShellElseIfClauseSyntax>, PowerShellElseClauseSyntax?)Returns this node with the given parts, or itself when nothing changed.
WithBody(PowerShellScriptBlockSyntax)Returns this node with body in place of its PowerShellIfStatementSyntax.Body.
WithCloseParenToken(SyntaxToken)Returns this node with closeParenToken in place of its PowerShellIfStatementSyntax.CloseParenToken.
WithCondition(ShellStatementListSyntax)Returns this node with condition in place of its PowerShellIfStatementSyntax.Condition.
WithElseClause(PowerShellElseClauseSyntax?)Returns this node with elseClause in place of its PowerShellIfStatementSyntax.ElseClause.
WithElseIfClauses(SyntaxList<PowerShellElseIfClauseSyntax>)Returns this node with elseIfClauses in place of its PowerShellIfStatementSyntax.ElseIfClauses.
WithIfKeyword(SyntaxToken)Returns this node with ifKeyword in place of its PowerShellIfStatementSyntax.IfKeyword.
WithOpenParenToken(SyntaxToken)Returns this node with openParenToken in place of its PowerShellIfStatementSyntax.OpenParenToken.

Accept overloads

Accept(ShellSyntaxVisitor)

Syntax.g.cs
public override void Accept(ShellSyntaxVisitor visitor)
Parameters
visitor ShellSyntaxVisitor

No documentation is available.

Accept<TResult>(ShellSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor ShellSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, SyntaxToken, ShellStatementListSyntax, SyntaxToken, PowerShellScriptBlockSyntax, SyntaxList<PowerShellElseIfClauseSyntax>, PowerShellElseClauseSyntax?)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

WithBody(PowerShellScriptBlockSyntax)

Syntax.g.cs

WithCloseParenToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeParenToken in place of its PowerShellIfStatementSyntax.CloseParenToken.

public PowerShellIfStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)

Parameters

closeParenToken SyntaxToken

Returns

PowerShellIfStatementSyntax

WithCondition(ShellStatementListSyntax)

Syntax.g.cs

Returns this node with condition in place of its PowerShellIfStatementSyntax.Condition.

WithElseClause(PowerShellElseClauseSyntax?)

Syntax.g.cs

Returns this node with elseClause in place of its PowerShellIfStatementSyntax.ElseClause.

public PowerShellIfStatementSyntax WithElseClause(PowerShellElseClauseSyntax? elseClause)

WithElseIfClauses(SyntaxList<PowerShellElseIfClauseSyntax>)

Syntax.g.cs

Returns this node with elseIfClauses in place of its PowerShellIfStatementSyntax.ElseIfClauses.

WithIfKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with ifKeyword in place of its PowerShellIfStatementSyntax.IfKeyword.

public PowerShellIfStatementSyntax WithIfKeyword(SyntaxToken ifKeyword)

Parameters

ifKeyword SyntaxToken

Returns

PowerShellIfStatementSyntax

WithOpenParenToken(SyntaxToken)

Syntax.g.cs

Returns this node with openParenToken in place of its PowerShellIfStatementSyntax.OpenParenToken.

public PowerShellIfStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)

Parameters

openParenToken SyntaxToken

Returns

PowerShellIfStatementSyntax