Skip to content

Struct Argument

Definition

Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll

A complete method argument parsed from StarML.

[System.Obsolete]
public readonly ref struct Argument

Inheritance
ObjectValueType ⇦ Argument

Members

Constructors

Name Description
Argument(ArgumentExpressionType, ReadOnlySpan<Char>, UInt32, ReadOnlySpan<Char>) A complete method argument parsed from StarML.

Properties

Name Description
Expression The literal expression text.
ExpressionType The type describing how Expression should be interpreted.
ParentDepth The depth to walk - i.e. number of parents to traverse - to find the context on which to evaluate the Expression when the ExpressionType is ContextBinding.
ParentType The type name of the parent to walk up to for a context redirect. Exclusive with ParentDepth and only valid if the ExpressionType is ContextBinding.

Methods

Name Description
Equals(Object) (Inherited from ValueType)
GetHashCode() (Inherited from ValueType)
ToString() (Inherited from ValueType)

Details

Constructors

Argument(ArgumentExpressionType, ReadOnlySpan<Char>, uint, ReadOnlySpan<Char>)

A complete method argument parsed from StarML.

public Argument(StardewUI.Framework.Grammar.ArgumentExpressionType expressionType, ReadOnlySpan<System.Char> expression, uint parentDepth, ReadOnlySpan<System.Char> parentType);
Parameters

expressionType   ArgumentExpressionType
The type describing how expression should be interpreted.

expression   ReadOnlySpan<Char>
The literal expression text.

parentDepth   UInt32
The depth to walk - i.e. number of parents to traverse - to find the context on which to evaluate the expression when the expressionType is ContextBinding.

parentType   ReadOnlySpan<Char>
The type name of the parent to walk up to for a context redirect. Exclusive with parentDepth and only valid if the expressionType is ContextBinding.


Properties

Expression

The literal expression text.

public ReadOnlySpan<System.Char> Expression { get; }
Property Value

ReadOnlySpan<Char>


ExpressionType

The type describing how Expression should be interpreted.

public StardewUI.Framework.Grammar.ArgumentExpressionType ExpressionType { get; }
Property Value

ArgumentExpressionType


ParentDepth

The depth to walk - i.e. number of parents to traverse - to find the context on which to evaluate the Expression when the ExpressionType is ContextBinding.

public uint ParentDepth { get; }
Property Value

UInt32


ParentType

The type name of the parent to walk up to for a context redirect. Exclusive with ParentDepth and only valid if the ExpressionType is ContextBinding.

public ReadOnlySpan<System.Char> ParentType { get; }
Property Value

ReadOnlySpan<Char>