struct SourceContext
- SourceContext
- Struct
- Value
- Object
Defined in:
models/framework_tagger.crConstructors
Instance Method Summary
- #full_content : String
- #full_content=(full_content : String)
- #line : Int32 | Nil
- #line=(line : Int32 | Nil)
-
#lines : Array(String)
The file as lines.
- #path : String
- #path=(path : String)
Constructor Detail
def self.new(path : String, line : Int32 | Nil, full_content : String, lines : Array(String) | Nil = nil)
#
Instance Method Detail
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.