struct Scry::TextDocument

Defined in:

scry/text_document.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(params : LSP::Protocol::DocumentFormattingParams, id : Int32 | Nil) #

[View source]
def self.new(params : LSP::Protocol::TextDocumentPositionParams, id : Int32 | Nil) #

[View source]
def self.new(params : LSP::Protocol::TextDocumentParams, id : Int32 | Nil = nil) #

[View source]
def self.new(uri : String, text : Array(String)) #

[View source]
def self.new(params : LSP::Protocol::DidOpenTextDocumentParams) #

[View source]
def self.new(change : LSP::Protocol::DidChangeTextDocumentParams) #

Used by ParseAnalyzer


[View source]
def self.new(file_event : LSP::Protocol::FileEvent) #

Used by Analyzer


[View source]
def self.new(uri : String) #

[View source]

Class Method Detail

def self.uri_to_filename(uri) #

[View source]

Instance Method Detail

def filename : String #

[View source]
def get_line(line_number) #

[View source]
def id : Int32 | Nil #

[View source]
def in_memory? #

[View source]
def inside_crystal_path? #

[View source]
def position : LSP::Protocol::Position | Nil #

[View source]
def source #

[View source]
def text : Array(String) #

[View source]
def text=(text : Array(String)) #

[View source]
def untitled? #

[View source]
def uri : String #

[View source]
def uri_to_filename #

[View source]