PosixRedirectedStatementSyntax Class
Represents a compound command followed by redirections, such as { ...; } > out or while read line; do ...; done < file.
public sealed class PosixRedirectedStatementSyntax : ShellStatementSyntaxRemarks
A simple command keeps its redirections among its own elements. A compound command has no such slot, so the redirections that follow it wrap it instead, and they apply to the whole of PosixRedirectedStatementSyntax.Statement.
- Inheritance
ShellStatementSyntaxPosixRedirectedStatementSyntax
Properties
| Name | Description |
|---|---|
| Redirections | |
| Statement |
Redirections
Syntax.g.cspublic SyntaxList<ShellRedirectionSyntax> Redirections { get; }Property value
No documentation is available.
Statement
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(ShellStatementSyntax, SyntaxList<ShellRedirectionSyntax>) | Returns this node with the given parts, or itself when nothing changed. |
| WithRedirections(SyntaxList<ShellRedirectionSyntax>) | Returns this node with redirections in place of its PosixRedirectedStatementSyntax.Redirections. |
| WithStatement(ShellStatementSyntax) | Returns this node with statement in place of its PosixRedirectedStatementSyntax.Statement. |
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(ShellStatementSyntax, SyntaxList<ShellRedirectionSyntax>)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PosixRedirectedStatementSyntax Update(ShellStatementSyntax statement, SyntaxList<ShellRedirectionSyntax> redirections)WithRedirections(SyntaxList<ShellRedirectionSyntax>)
Syntax.g.csReturns this node with redirections in place of its PosixRedirectedStatementSyntax.Redirections.
public PosixRedirectedStatementSyntax WithRedirections(SyntaxList<ShellRedirectionSyntax> redirections)WithStatement(ShellStatementSyntax)
Syntax.g.csReturns this node with statement in place of its PosixRedirectedStatementSyntax.Statement.
public PosixRedirectedStatementSyntax WithStatement(ShellStatementSyntax statement)