class Scry::Completion::MethodCallContext

Defined in:

scry/completion/method_call_context.cr

Constant Summary

CLASS_REGEXP = /(?<class_name>#{TYPE_REGEXP})/
NEW_REGEXP = /(?<type>#{TYPE_REGEXP})(?:\(.+\))?\.new/
REVERSED_TYPE_REGEXP = /[a-zA-Z_:0-9]*[A-Z]/
TYPE_REGEXP = /[A-Z][a-zA-Z_:0-9]*/

Constructors

Instance Method Summary

Instance methods inherited from class Scry::Completion::Context

find : Array(LSP::Protocol::CompletionItem) find

Constructor Detail

def self.new(text : String, target : String, method : String, method_db : MethodDB) #

[View source]

Instance Method Detail

def assignment_regex #

[View source]
def declaration_regex #

[View source]
def find : Array(LSP::Protocol::CompletionItem) #

[View source]
def get_type #

[View source]
def to_completion_items(results : Array(MethodDBEntry)) #

[View source]