class Mint::LS::Definition
- Mint::LS::Definition
- LSP::RequestMessage
- Reference
- Object
Overview
This is the class that handles the "textDocument/definition" request.
Defined in:
ls/definition.crls/definition/html_attribute.cr
ls/definition/html_component.cr
ls/definition/html_style.cr
Constructors
-
.new(pull : JSON::PullParser)
This is the class that handles the "textDocument/definition" request.
Instance Method Summary
- #execute(server) : LSP::LocationLink | LSP::Location | Nil
- #find_component(workspace : Workspace, name : String) : Ast::Component | Nil
- #has_link_support?(server : Server)
- #html_attribute(server : Server, workspace : Workspace, stack : Array(Ast::Node))
- #html_component(server : Server, workspace : Workspace, stack : Array(Ast::Node))
- #html_style(server : Server, workspace : Workspace, stack : Array(Ast::Node))
-
#location_link(server : Server, source : Ast::Node, target : Ast::Node) : LSP::LocationLink | LSP::Location
Returns a
LSP::LocationLink
that links from source to the target node if the server has link support, otherwise it returnsLSP::Location
. - #params : LSP::TextDocumentPositionParams
- #params=(params : LSP::TextDocumentPositionParams)
- #selection(location : Ast::Node::Location) : LSP::Range
- #selection(node : Ast::Component) : LSP::Range
- #selection(node : Ast::HtmlAttribute) : LSP::Range
- #selection(node : Ast::HtmlComponent) : LSP::Range
- #selection(node : Ast::HtmlStyle) : LSP::Range
- #selection(node : Ast::Property) : LSP::Range
- #selection(node : Ast::Style) : LSP::Range
-
#selection(node : Ast::Node) : LSP::Range
Returns the range for the name part for a node
- #with_stack(stack : Array(Ast::Node), &)
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=
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/definition" request.
Instance Method Detail
def location_link(server : Server, source : Ast::Node, target : Ast::Node) : LSP::LocationLink | LSP::Location
#
Returns a LSP::LocationLink
that links from source to the target node
if the server has link support, otherwise it returns LSP::Location
.
Returns the range for the name part for a node