Table of Contents

Struct ParsedExpressionBranchingVariadicFunctionSymbols

Namespace
LfrlAnvil.Computable.Expressions.Extensions
Assembly
LfrlAnvil.Computable.Expressions.dll

Represents symbols that identify built-in branching variadic functions.

public readonly struct ParsedExpressionBranchingVariadicFunctionSymbols
Inherited Members

Fields

Default

public static readonly ParsedExpressionBranchingVariadicFunctionSymbols Default

Field Value

ParsedExpressionBranchingVariadicFunctionSymbols

Properties

If

Symbol to use for the if variadic function. Equal to if by default.

public StringSegment If { get; }

Property Value

StringSegment

Switch

Symbol to use for the switch variadic function. Equal to switch by default.

public StringSegment Switch { get; }

Property Value

StringSegment

SwitchCase

Symbol to use for the switch-case variadic function element. Equal to case by default.

public StringSegment SwitchCase { get; }

Property Value

StringSegment

Throw

Symbol to use for the throw variadic function. Equal to throw by default.

public StringSegment Throw { get; }

Property Value

StringSegment

Methods

SetIf(StringSegment)

Creates a new ParsedExpressionBranchingVariadicFunctionSymbols instance with changed If symbol.

[Pure]
public ParsedExpressionBranchingVariadicFunctionSymbols SetIf(StringSegment symbol)

Parameters

symbol StringSegment

If symbol to set.

Returns

ParsedExpressionBranchingVariadicFunctionSymbols

New ParsedExpressionBranchingVariadicFunctionSymbols instance.

SetSwitch(StringSegment)

Creates a new ParsedExpressionBranchingVariadicFunctionSymbols instance with changed Switch symbol.

[Pure]
public ParsedExpressionBranchingVariadicFunctionSymbols SetSwitch(StringSegment symbol)

Parameters

symbol StringSegment

Switch symbol to set.

Returns

ParsedExpressionBranchingVariadicFunctionSymbols

New ParsedExpressionBranchingVariadicFunctionSymbols instance.

SetSwitchCase(StringSegment)

Creates a new ParsedExpressionBranchingVariadicFunctionSymbols instance with changed SwitchCase symbol.

[Pure]
public ParsedExpressionBranchingVariadicFunctionSymbols SetSwitchCase(StringSegment symbol)

Parameters

symbol StringSegment

SwitchCase symbol to set.

Returns

ParsedExpressionBranchingVariadicFunctionSymbols

New ParsedExpressionBranchingVariadicFunctionSymbols instance.

SetThrow(StringSegment)

Creates a new ParsedExpressionBranchingVariadicFunctionSymbols instance with changed Throw symbol.

[Pure]
public ParsedExpressionBranchingVariadicFunctionSymbols SetThrow(StringSegment symbol)

Parameters

symbol StringSegment

Throw symbol to set.

Returns

ParsedExpressionBranchingVariadicFunctionSymbols

New ParsedExpressionBranchingVariadicFunctionSymbols instance.

ToString()

Returns a string representation of this ParsedExpressionBranchingVariadicFunctionSymbols instance.

[Pure]
public override string ToString()

Returns

string

String representation.