class Mint::LS::Hover

Overview

This is the class that handles the "textDocument/hover" request.

Defined in:

ls/hover.cr
ls/hover/access.cr
ls/hover/argument.cr
ls/hover/component.cr
ls/hover/css_definition.cr
ls/hover/function.cr
ls/hover/get.cr
ls/hover/html_attribute.cr
ls/hover/html_component.cr
ls/hover/html_element.cr
ls/hover/property.cr
ls/hover/state.cr
ls/hover/statement.cr
ls/hover/string_literal.cr
ls/hover/type.cr
ls/hover/type_definition.cr
ls/hover/type_destructuring.cr
ls/hover/type_variant.cr

Constructors

Instance Method Summary

Instance methods inherited from class LSP::RequestMessage

id : Int32 | String id, id=(id : Int32 | String) id=, method : String method, method=(method : String) method=, snippet_support : Bool | Nil snippet_support, snippet_support=(snippet_support : Bool | Nil) snippet_support=

Constructor methods inherited from class LSP::RequestMessage

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

This is the class that handles the "textDocument/hover" request.


[View source]

Instance Method Detail

def execute(server) #

[View source]
def hover(node : Nil, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

Fallback handler for nil, obviously it should not happen.


[View source]
def hover(node : Ast::Access, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Argument, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Component, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::CssDefinition, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Function, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Get, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::HtmlAttribute, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::HtmlComponent, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::HtmlElement, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Property, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::State, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Statement, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::StringLiteral, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Type, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::TypeDefinition, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::TypeDestructuring, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::TypeVariant, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

[View source]
def hover(node : Ast::Node, workspace : Workspace, type_checker : TypeChecker) : Array(String) #

Fallback handler for nodes that does not have a handler yet.


[View source]

[View source]
def params=(params : LSP::TextDocumentPositionParams) #

[View source]
def type_of(node : Ast::Node, type_checker : TypeChecker) #

Returns the type information of a node from the workspace


[View source]