class Mint::LS::Definitions
- Mint::LS::Definitions
- Reference
- Object
Defined in:
ls/definitions.crls/definitions/access.cr
ls/definitions/connect.cr
ls/definitions/connect_variable.cr
ls/definitions/html_attribute.cr
ls/definitions/html_component.cr
ls/definitions/html_element.cr
ls/definitions/html_style.cr
ls/definitions/id.cr
ls/definitions/type.cr
ls/definitions/type_destructuring.cr
ls/definitions/variable.cr
Constructors
Instance Method Summary
- #cursor_intersects?(node : Ast::Node, position : LSP::Position) : Bool
- #cursor_intersects?(node : Ast::Node, params : LSP::TextDocumentPositionParams) : Bool
- #cursor_intersects?(node : Ast::Node) : Bool
- #definition(node : Ast::Access)
- #definition(node : Ast::Connect)
- #definition(node : Ast::ConnectVariable)
- #definition(node : Ast::HtmlAttribute)
- #definition(node : Ast::HtmlComponent)
- #definition(node : Ast::HtmlElement)
- #definition(node : Ast::HtmlStyle)
- #definition(node : Ast::Id)
- #definition(node : Ast::Type)
- #definition(node : Ast::TypeDestructuring)
- #definition(node : Ast::Variable)
- #definition(node : Ast::Node)
- #find_component(name : String) : Ast::Component | Nil
-
#location_link(source : Ast::Node, target : Ast::Node, parent : Ast::Node) : LSP::LocationLink
Returns a
LSP::LocationLink
that links from source to the target node - #to_lsp_range(location : Ast::Node::Location) : LSP::Range
- #variable_lookup(node : Ast::Variable, target : Ast::Node | TypeChecker::Checkable)
- #variable_lookup_parent(node : Ast::Variable, variable : Ast::Variable)
- #variable_next_key(node : Ast::Variable)
- #variable_record_key(node : Ast::Variable)
Constructor Detail
def self.new(*, params : LSP::TextDocumentPositionParams, type_checker : TypeChecker, stack : Array(Ast::Node))
#
Instance Method Detail
Returns a LSP::LocationLink
that links from source to the target node
The parent node is used to provide the full range for the target node. For example, for a function, target would be the function name, and parent would be the whole node, including function body and any comments