Class SourceReference

Namespace
Pixie.Markup
Assembly
Pixie.dll

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

range SourceSpan

The referenced source span.

Properties

Range

Gets the referenced source span.

public SourceSpan Range { get; }

Property Value

SourceSpan

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

identifier string

The source identifier.

start LineAndColumnPosition

The start position.

end LineAndColumnPosition

The end position.

Returns

Inline

The rendered inline markup.