Class SourceReference
Inline source location text.
public class SourceReference : Inline
- Inheritance
-
SourceReference
- Derived
- Inherited Members
Constructors
SourceReference(SourceSpan)
Creates a source reference.
public SourceReference(SourceSpan range)
Parameters
rangeSourceSpanThe referenced source span.
Properties
Range
Gets the referenced source span.
public SourceSpan Range { get; }
Property Value
Methods
Lower()
Lowers this source reference to simpler inline markup.
public override Inline Lower()
Returns
- Inline
The lowered inline markup.
Render(string, LineAndColumnPosition, LineAndColumnPosition)
Renders a source reference from resolved source coordinates.
protected virtual Inline Render(string identifier, LineAndColumnPosition start, LineAndColumnPosition end)
Parameters
identifierstringThe source identifier.
startLineAndColumnPositionThe start position.
endLineAndColumnPositionThe end position.
Returns
- Inline
The rendered inline markup.