PosixRedirectedStatementSyntax Class

Represents a compound command followed by redirections, such as { ...; } > out or while read line; do ...; done < file.

public sealed class PosixRedirectedStatementSyntax : ShellStatementSyntax

Remarks

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
ShellStatementSyntax PosixRedirectedStatementSyntax

Properties

NameDescription
Redirections
Statement

Redirections

Syntax.g.cs
public SyntaxList<ShellRedirectionSyntax> Redirections { get; }

No documentation is available.

Statement

Syntax.g.cs
public ShellStatementSyntax Statement { get; }

Property value

ShellStatementSyntax

No documentation is available.

Methods

NameDescription
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.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(ShellStatementSyntax, SyntaxList<ShellRedirectionSyntax>)

Syntax.g.cs

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

WithRedirections(SyntaxList<ShellRedirectionSyntax>)

Syntax.g.cs

Returns this node with redirections in place of its PosixRedirectedStatementSyntax.Redirections.

WithStatement(ShellStatementSyntax)

Syntax.g.cs

Returns this node with statement in place of its PosixRedirectedStatementSyntax.Statement.