ShellBinaryExpressionSyntax Class

Represents an infix expression such as a + b in arithmetic or $x == y in a conditional. The operator is kept as a token rather than an enum, because the operator sets differ between the two grammars.

public sealed class ShellBinaryExpressionSyntax : ShellExpressionSyntax
Inheritance
ShellExpressionSyntax ShellBinaryExpressionSyntax

Properties

NameDescription
Left
OperatorTextThe operator text, such as +, -eq, or =~.
OperatorToken
Right
public ShellExpressionSyntax Left { get; }

Property value

ShellExpressionSyntax

No documentation is available.

The operator text, such as +, -eq, or =~.

public string OperatorText { get; }

Property value

string

OperatorToken

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(ShellExpressionSyntax, SyntaxToken, ShellExpressionSyntax)Returns this node with the given parts, or itself when nothing changed.
WithLeft(ShellExpressionSyntax)Returns this node with left in place of its ShellBinaryExpressionSyntax.Left.
WithOperatorToken(SyntaxToken)Returns this node with operatorToken in place of its ShellBinaryExpressionSyntax.OperatorToken.
WithRight(ShellExpressionSyntax)Returns this node with right in place of its ShellBinaryExpressionSyntax.Right.

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(ShellExpressionSyntax, SyntaxToken, ShellExpressionSyntax)

Syntax.g.cs

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

WithLeft(ShellExpressionSyntax)

Syntax.g.cs

Returns this node with left in place of its ShellBinaryExpressionSyntax.Left.

WithOperatorToken(SyntaxToken)

Syntax.g.cs

Returns this node with operatorToken in place of its ShellBinaryExpressionSyntax.OperatorToken.

public ShellBinaryExpressionSyntax WithOperatorToken(SyntaxToken operatorToken)

Parameters

operatorToken SyntaxToken

Returns

ShellBinaryExpressionSyntax

WithRight(ShellExpressionSyntax)

Syntax.g.cs

Returns this node with right in place of its ShellBinaryExpressionSyntax.Right.