struct

SourceContext

Inherits Struct < Value < Object

Constructors

new(path : String, line : Int32 | Nil, full_content : String, lines : Array(String) | Nil = nil)
Source

Instance methods

full_content
Source
full_content=(full_content : String)
Source
line
Source
line=(line : Int32 | Nil)
Source
lines

The file as lines. Every consumer of read_source_context immediately splits full_content to walk backwards from the endpoint's line, and a controller declares many handlers — so splitting per endpoint re-did the same work once per endpoint per tagger. read_source_context passes the tagger's cached (shared, read-only) array instead.

Source
path
Source
path=(path : String)
Source