Struct Argument
Definition
Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll
A complete method argument parsed from StarML.
Inheritance
Object ⇦ ValueType ⇦ 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.
Property Value
ExpressionType
The type describing how Expression should be interpreted.
Property Value
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.
Property Value
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.