module Crystalline::Utils

Defined in:

crystalline/utils.cr

Class Method Summary

Class Method Detail

def self.format_def(d : Crystal::Def | Crystal::Macro, *, short = false) #

Format a method definition or macro.


[View source]
def self.locations_from_path(path : Crystal::Path, nodes : Array(Crystal::ASTNode)) : Array(Tuple(Crystal::Location, Crystal::Location)) | Nil #

[View source]
def self.locations_from_union(union : Crystal::Union, nodes : Array(Crystal::ASTNode), *, locations = [] of ::Tuple(Crystal::Location, Crystal::Location)) : Array(Tuple(Crystal::Location, Crystal::Location)) #

[View source]
def self.lsp_range_from_node(node : Crystal::ASTNode) #

[View source]
def self.map_completion_kind(kind, *, default = LSP::CompletionItemKind::Variable) #

[View source]
def self.resolve_path(path : Crystal::Path, ast_nodes : Array(Crystal::ASTNode)) #

[View source]