LStringAttachment
loreline.LStringAttachment (Enum)
Represents additional information attached to a string token, such as interpolations or tags.
Constructors
Interpolation
Interpolation(braces: Bool, inTag: Bool, expr: loreline.Tokens, start: Int, length: Int)
Parameters:
| Name | Type | Description |
|---|---|---|
braces |
Bool | Whether the interpolation uses braces |
inTag |
Bool | Whether the interpolation is inside a tag |
expr |
loreline.Tokens | The tokens making up the interpolation expression |
start |
Int | Starting position in the string |
length |
Int | Length of the interpolation |
String interpolation expression.
Tag
Tag(closing: Bool, start: Int, length: Int)
Parameters:
| Name | Type | Description |
|---|---|---|
closing |
Bool | Whether this is a closing tag |
start |
Int | Starting position in the string |
length |
Int | Length of the tag |
String formatting tag.