Skip to content

Struct TagInfo

Definition

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

Information about a parsed tag in StarML.

[System.Obsolete]
public readonly ref struct TagInfo

Inheritance
ObjectValueType ⇦ TagInfo

Members

Constructors

Name Description
TagInfo(ReadOnlySpan<Char>, Boolean) Information about a parsed tag in StarML.

Properties

Name Description
IsClosingTag Whether or not the tag is a closing tag, either in regular </tag> form or the end of a self-closing tag (/>) after the tag attributes.
Name The tag name.

Methods

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

Details

Constructors

TagInfo(ReadOnlySpan<Char>, bool)

Information about a parsed tag in StarML.

public TagInfo(ReadOnlySpan<System.Char> name, bool isClosingTag);
Parameters

name   ReadOnlySpan<Char>
The tag name.

isClosingTag   Boolean
Whether or not the tag is a closing tag, either in regular </tag> form or the end of a self-closing tag (/>) after the tag attributes.


Properties

IsClosingTag

Whether or not the tag is a closing tag, either in regular </tag> form or the end of a self-closing tag (/>) after the tag attributes.

public bool IsClosingTag { get; }
Property Value

Boolean


Name

The tag name.

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

ReadOnlySpan<Char>