ShellRedirectionSyntax Class
Represents an input or output redirection attached to a command.
public sealed class ShellRedirectionSyntax : ShellSyntaxNode- Inheritance
ShellSyntaxNodeShellRedirectionSyntax
Properties
| Name | Description |
|---|---|
| HereDocument | The here-document body this redirection introduced, for << and <<-. The body text lives after the command line, so it is not part of this node's own text. |
| IoNumberToken | |
| OperatorToken | |
| Target |
HereDocument
ShellRedirectionSyntax.csThe here-document body this redirection introduced, for << and <<-. The body text lives after the command line, so it is not part of this node's own text.
public PosixHereDocumentSyntax? HereDocument { get; }Property value
IoNumberToken
Syntax.g.csOperatorToken
Syntax.g.csTarget
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, SyntaxToken, ShellWordSyntax?) | Returns this node with the given parts, or itself when nothing changed. |
| WithIoNumberToken(SyntaxToken) | Returns this node with ioNumberToken in place of its ShellRedirectionSyntax.IoNumberToken. |
| WithOperatorToken(SyntaxToken) | Returns this node with operatorToken in place of its ShellRedirectionSyntax.OperatorToken. |
| WithTarget(ShellWordSyntax?) | Returns this node with target in place of its ShellRedirectionSyntax.Target. |
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, ShellWordSyntax?)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public ShellRedirectionSyntax Update(SyntaxToken ioNumberToken, SyntaxToken operatorToken, ShellWordSyntax? target)WithIoNumberToken(SyntaxToken)
Syntax.g.csReturns this node with ioNumberToken in place of its ShellRedirectionSyntax.IoNumberToken.
public ShellRedirectionSyntax WithIoNumberToken(SyntaxToken ioNumberToken)WithOperatorToken(SyntaxToken)
Syntax.g.csReturns this node with operatorToken in place of its ShellRedirectionSyntax.OperatorToken.
public ShellRedirectionSyntax WithOperatorToken(SyntaxToken operatorToken)WithTarget(ShellWordSyntax?)
Syntax.g.csReturns this node with target in place of its ShellRedirectionSyntax.Target.
public ShellRedirectionSyntax WithTarget(ShellWordSyntax? target)