struct Scry::Implementations

Overview

Using Crystal implementation to emulate GoTo Definition.

Included Modules

Defined in:

scry/implementations.cr

Constant Summary

LOCAL_REQUIRE_REGEX = /^require\s+"(\.{1,2}.*?)"\s*$/
POSITION_0 = LSP::Protocol::Position.new(0, 0)
RANGE_0 = LSP::Protocol::Range.new(POSITION_0, POSITION_0)

Constructors

Instance Method Summary

Instance methods inherited from module Scry::ToolHelper

get_scope(root_uri) get_scope

Constructor Detail

def self.new(workspace : Workspace, text_document : TextDocument) #

[View source]

Instance Method Detail

def implementation_response(locations = [] of LSP::Protocol::Location) #

[View source]
def run #

[View source]
def search(filename, position) #

NOTE compiler is a bit heavy in some projects.


[View source]