class Mint::LS::Definition

Overview

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

Defined in:

ls/definition.cr
ls/definition/html_attribute.cr
ls/definition/html_component.cr
ls/definition/html_style.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=

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.


[View source]

Instance Method Detail

def execute(server) : LSP::LocationLink | LSP::Location | Nil #

[View source]
def find_component(workspace : Workspace, name : String) : Ast::Component | Nil #

[View source]
def has_link_support?(server : Server) #

[View source]
def html_attribute(server : Server, workspace : Workspace, stack : Array(Ast::Node)) #

[View source]
def html_component(server : Server, workspace : Workspace, stack : Array(Ast::Node)) #

[View source]
def html_style(server : Server, workspace : Workspace, stack : Array(Ast::Node)) #

[View source]
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.


[View source]

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

[View source]
def selection(location : Ast::Node::Location) : LSP::Range #

[View source]
def selection(node : Ast::Component) : LSP::Range #

[View source]
def selection(node : Ast::HtmlAttribute) : LSP::Range #

[View source]
def selection(node : Ast::HtmlComponent) : LSP::Range #

[View source]
def selection(node : Ast::HtmlStyle) : LSP::Range #

[View source]
def selection(node : Ast::Property) : LSP::Range #

[View source]
def selection(node : Ast::Style) : LSP::Range #

[View source]
def selection(node : Ast::Node) : LSP::Range #

Returns the range for the name part for a node


[View source]
def with_stack(stack : Array(Ast::Node), &) #

[View source]