ShellRedirectionSyntax Class

Represents an input or output redirection attached to a command.

public sealed class ShellRedirectionSyntax : ShellSyntaxNode
Inheritance
ShellSyntaxNode ShellRedirectionSyntax

Properties

NameDescription
HereDocumentThe 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

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.

public PosixHereDocumentSyntax? HereDocument { get; }

IoNumberToken

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

Property value

SyntaxToken

No documentation is available.

OperatorToken

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

Property value

SyntaxToken

No documentation is available.

public ShellWordSyntax? Target { get; }

Property value

ShellWordSyntax?

No documentation is available.

Methods

NameDescription
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.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(SyntaxToken, SyntaxToken, ShellWordSyntax?)

Syntax.g.cs

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

public ShellRedirectionSyntax Update(SyntaxToken ioNumberToken, SyntaxToken operatorToken, ShellWordSyntax? target)

Parameters

ioNumberToken SyntaxToken
operatorToken SyntaxToken
target ShellWordSyntax?

Returns

ShellRedirectionSyntax

WithIoNumberToken(SyntaxToken)

Syntax.g.cs

Returns this node with ioNumberToken in place of its ShellRedirectionSyntax.IoNumberToken.

public ShellRedirectionSyntax WithIoNumberToken(SyntaxToken ioNumberToken)

Parameters

ioNumberToken SyntaxToken

Returns

ShellRedirectionSyntax

WithOperatorToken(SyntaxToken)

Syntax.g.cs

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

public ShellRedirectionSyntax WithOperatorToken(SyntaxToken operatorToken)

Parameters

operatorToken SyntaxToken

Returns

ShellRedirectionSyntax

WithTarget(ShellWordSyntax?)

Syntax.g.cs

Returns this node with target in place of its ShellRedirectionSyntax.Target.

public ShellRedirectionSyntax WithTarget(ShellWordSyntax? target)