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/css_definition.cr
ls/hover/function.cr
ls/hover/get.cr
ls/hover/html_attribute.cr
ls/hover/html_component.cr:3
ls/hover/html_component.cr:21
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

execute(server : Server) execute, 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) : Array(String) #

Fallback handler for nil, obviously it should not happen.


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[View source]
def hover(node : Ast::Node, workspace) : 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, workspace) #

Returns the type information of a node from the workspace


[View source]