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
ShellExpressionSyntaxShellBinaryExpressionSyntax
Properties
| Name | Description |
|---|---|
| Left | |
| OperatorText | The operator text, such as +, -eq, or =~. |
| OperatorToken | |
| Right |
Left
Syntax.g.csOperatorText
ShellBinaryExpressionSyntax.csOperatorToken
Syntax.g.csRight
Syntax.g.csMethods
| Name | Description |
|---|---|
| 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.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(ShellExpressionSyntax, SyntaxToken, ShellExpressionSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public ShellBinaryExpressionSyntax Update(ShellExpressionSyntax left, SyntaxToken operatorToken, ShellExpressionSyntax right)WithLeft(ShellExpressionSyntax)
Syntax.g.csReturns this node with left in place of its ShellBinaryExpressionSyntax.Left.
public ShellBinaryExpressionSyntax WithLeft(ShellExpressionSyntax left)WithOperatorToken(SyntaxToken)
Syntax.g.csReturns this node with operatorToken in place of its ShellBinaryExpressionSyntax.OperatorToken.
public ShellBinaryExpressionSyntax WithOperatorToken(SyntaxToken operatorToken)WithRight(ShellExpressionSyntax)
Syntax.g.csReturns this node with right in place of its ShellBinaryExpressionSyntax.Right.
public ShellBinaryExpressionSyntax WithRight(ShellExpressionSyntax right)