SourceSpan Struct
A textual source span.
public struct SourceSpanConstructors
| Name | Description |
|---|---|
| SourceSpan(string, TextPosition, TextPosition) | Creates a source span. |
SourceSpan(string, TextPosition, TextPosition)
SourceSpan.csCreates a source span.
public SourceSpan(string fileName, TextPosition start, TextPosition end)Parameters
fileNamestringstartTextPositionendTextPosition
Properties
| Name | Description |
|---|---|
| Length | Gets the length of this span. |
| Offset | Gets the starting offset of this span. |
Length
SourceSpan.csOffset
SourceSpan.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the fully qualified type name of this instance. |
| ToStringSimple() | A string representation of this source span not including the SourceSpan.End position. |
ToString()
SourceSpan.csToStringSimple()
SourceSpan.csA string representation of this source span not including the SourceSpan.End position.
public string ToStringSimple()Returns
Fields
| Name | Description |
|---|---|
| End | Gets or sets the ending text position. |
| FileName | Gets or sets the filename. |
| Start | Gets or sets the starting text position. |
End
Gets or sets the ending text position.
public TextPosition EndFileName
Gets or sets the filename.
public string FileNameStart
Gets or sets the starting text position.
public TextPosition Start