struct Scry::TextDocument
- Scry::TextDocument
- Struct
- Value
- Object
Defined in:
scry/text_document.crConstructors
- .new(params : LSP::Protocol::DocumentFormattingParams, id : Int32 | Nil)
- .new(params : LSP::Protocol::TextDocumentPositionParams, id : Int32 | Nil)
- .new(params : LSP::Protocol::TextDocumentParams, id : Int32 | Nil = nil)
- .new(uri : String, text : Array(String))
- .new(params : LSP::Protocol::DidOpenTextDocumentParams)
-
.new(change : LSP::Protocol::DidChangeTextDocumentParams)
Used by ParseAnalyzer
-
.new(file_event : LSP::Protocol::FileEvent)
Used by Analyzer
- .new(uri : String)
Class Method Summary
Instance Method Summary
- #filename : String
- #get_line(line_number)
- #id : Int32 | Nil
- #in_memory?
- #inside_crystal_path?
- #position : LSP::Protocol::Position | Nil
- #source
- #text : Array(String)
- #text=(text : Array(String))
- #untitled?
- #uri : String
- #uri_to_filename