class Mint::LS::Hover
- Mint::LS::Hover
- LSP::RequestMessage
- Reference
- Object
Overview
This is the class that handles the "textDocument/hover" request.
Defined in:
ls/hover.crls/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
-
.new(pull : JSON::PullParser)
This is the class that handles the "textDocument/hover" request.
Instance Method Summary
- #execute(server)
-
#hover(node : Nil, workspace : Workspace, type_checker : TypeChecker) : Array(String)
Fallback handler for nil, obviously it should not happen.
- #hover(node : Ast::Access, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::Argument, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::Component, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::CssDefinition, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::Function, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::Get, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::HtmlAttribute, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::HtmlComponent, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::HtmlElement, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::Property, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::State, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::Statement, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::StringLiteral, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::Type, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::TypeDefinition, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::TypeDestructuring, workspace : Workspace, type_checker : TypeChecker) : Array(String)
- #hover(node : Ast::TypeVariant, workspace : Workspace, type_checker : TypeChecker) : Array(String)
-
#hover(node : Ast::Node, workspace : Workspace, type_checker : TypeChecker) : Array(String)
Fallback handler for nodes that does not have a handler yet.
- #params : LSP::TextDocumentPositionParams
- #params=(params : LSP::TextDocumentPositionParams)
-
#type_of(node : Ast::Node, type_checker : TypeChecker)
Returns the type information of a node from the workspace
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.
Instance Method Detail
Fallback handler for nil, obviously it should not happen.
def hover(node : Ast::Argument, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::Component, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::CssDefinition, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::Function, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::HtmlAttribute, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::HtmlComponent, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::HtmlElement, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::Property, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::Statement, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::StringLiteral, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::TypeDefinition, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::TypeDestructuring, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
def hover(node : Ast::TypeVariant, workspace : Workspace, type_checker : TypeChecker) : Array(String)
#
Fallback handler for nodes that does not have a handler yet.
Returns the type information of a node from the workspace