struct

Facet::Compiler::Source

Inherits Struct < Value < Object

Constructors

new(text : String, filename : String | Nil = nil, kind : SourceKind = SourceKind::Real, expanded_from : ExpansionSite | Nil = nil)
Source

Instance methods

bytes
Source
expanded_from
Source
filename
Source
kind
Source
map_to_origin(span : Span) : Tuple(Source, Span, Array(ExpansionSite))

Walk expansion chain to the original source, returning root source, the mapped span at the expansion site, and the chain of sites visited.

Source
size
Source
text
Source