ShellParseOptions Class

Configures how ShellSyntaxTree parses text.

public sealed class ShellParseOptions : IEquatable<ShellParseOptions>
Implements

Constructors

NameDescription
ShellParseOptions(ShellDialect)

ShellParseOptions(ShellDialect)

ShellParseOptions.cs
public ShellParseOptions(ShellDialect dialect)

Parameters

dialect ShellDialect

No documentation is available.

Properties

NameDescription
DialectThe dialect to parse the text as.
MaxRecursionDepthThe maximum number of nested constructs the parser descends into before reporting SHELL0100 and treating the remaining text as skipped text. Guards against stack overflow on deeply nested input.

The dialect to parse the text as.

public ShellDialect Dialect { get; init; }

Property value

ShellDialect

MaxRecursionDepth

ShellParseOptions.cs

The maximum number of nested constructs the parser descends into before reporting SHELL0100 and treating the remaining text as skipped text. Guards against stack overflow on deeply nested input.

public int MaxRecursionDepth { get; init; }

Property value

int

Methods

NameDescription
Equals(ShellParseOptions?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(ShellParseOptions?)

public bool Equals(ShellParseOptions? other)
Parameters
other ShellParseOptions?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ShellParseOptions?, ShellParseOptions?)
operator !=(ShellParseOptions?, ShellParseOptions?)

operator ==(ShellParseOptions?, ShellParseOptions?)

public static bool operator ==(ShellParseOptions? left, ShellParseOptions? right)

Parameters

left ShellParseOptions?
right ShellParseOptions?

Returns

bool

No documentation is available.

operator !=(ShellParseOptions?, ShellParseOptions?)

public static bool operator !=(ShellParseOptions? left, ShellParseOptions? right)

Parameters

left ShellParseOptions?
right ShellParseOptions?

Returns

bool

No documentation is available.

Constants

NameDescription
DefaultMaxRecursionDepthThe default value of ShellParseOptions.MaxRecursionDepth.

DefaultMaxRecursionDepth

public const int DefaultMaxRecursionDepth = 128