TomlSourceSpan Struct
Represents a textual source span within a TOML payload.
public readonly struct TomlSourceSpanConstructors
| Name | Description |
|---|---|
| TomlSourceSpan(string, TomlTextPosition, TomlTextPosition) | Initializes a new instance of the TomlSourceSpan struct. |
TomlSourceSpan(string, TomlTextPosition, TomlTextPosition)
TomlSourceSpan.csInitializes a new instance of the TomlSourceSpan struct.
public TomlSourceSpan(string sourceName, TomlTextPosition start, TomlTextPosition end)Parameters
sourceNamestring- An optional source name (for example a file path).
startTomlTextPosition- The start position.
endTomlTextPosition- The end position.
Properties
| Name | Description |
|---|---|
| End | Gets the ending position. |
| Length | Gets the length of this span (inclusive). |
| Offset | Gets the starting offset of this span. |
| SourceName | Gets the source name associated with this span (for example a file path). |
| Start | Gets the starting position. |
Length
TomlSourceSpan.csOffset
TomlSourceSpan.csSourceName
TomlSourceSpan.csStart
TomlSourceSpan.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the fully qualified type name of this instance. |
| ToStringSimple() | Returns a string representation of this source span not including the end position. |