class Scry::CompletionProvider

Defined in:

scry/completion_provider.cr

Constant Summary

CLASS_NAME_REGEX = /(?<target>[A-Z][a-zA-Z_:]*)$/
INSTANCE_VARIABLE_REGEX = /(?<var>@[a-zA-Z_]*)$/
METHOD_CALL_REGEX = /(?<target>@?[a-zA-Z][a-zA-Z_:]*)\.(?<method>[a-zA-Z]*[a-zA-Z_:]*)$/
REQUIRE_MODULE_REGEX = /require\s*\"(?<import>[a-zA-Z\/._]*)$/

Constructors

Instance Method Summary

Constructor Detail

def self.new(text_document : TextDocument, context : LSP::Protocol::CompletionContext | Nil, position : LSP::Protocol::Position, method_db : Completion::MethodDB) #

[View source]

Instance Method Detail

def parse_context #

[View source]
def run #

[View source]