class Mint::LS::Completion

Defined in:

ls/completion.cr
ls/completion_item/argument.cr
ls/completion_item/component.cr
ls/completion_item/constant.cr
ls/completion_item/function.cr
ls/completion_item/get.cr
ls/completion_item/property.cr
ls/completion_item/style.cr
ls/completions/component.cr
ls/completions/functions.cr
ls/completions/module.cr
ls/completions/store.cr
ls/completions/style.cr
ls/completions/type_definition.cr

Constant Summary

CSS_PROPERTY_COMPLETIONS = TypeChecker::CSS_PROPERTY_NAMES.map do |name| LSP::CompletionItem.new(kind: LSP::CompletionItemKind::Snippet, insert_text: "#{name}: ${0};", detail: "CSS Property", filter_text: name, sort_text: name, label: name) end
HTML_TAG_COMPLETIONS = ({{ (read_file("/srv/crystaldoc.info/github-mint-lang-mint-0.20.0/src/ls/../assets/html_tags")).strip }}).lines.map do |name| LSP::CompletionItem.new(kind: LSP::CompletionItemKind::Snippet, insert_text: "<#{name}>${0}</#{name}>", detail: "HTML Tag", filter_text: name, sort_text: name, label: name) end

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, type_checker : TypeChecker | Nil, snippet_support : Bool, workspace : Workspace) #

[View source]

Instance Method Detail

def completion_item(node : Ast::Argument) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Component) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Constant, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Function, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Get, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Property) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Style) : LSP::CompletionItem #

[View source]
def completions(node : Ast::Component, global : Bool = false) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Function) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Module, global : Bool = false) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Store, global : Bool = false) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Style) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::TypeDefinition) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Node, global : Bool = false) #

[View source]
def process(params : LSP::CompletionParams) #

[View source]