class LSP::PrepareRenameRequest

Overview

The prepare rename request is sent from the client to the server to check whether a symbol can be renamed at a given position.

Included Modules

Defined in:

requests/language_features/rename.cr

Constructors

Instance Method Summary

Instance methods inherited from class LSP::RequestMessage(LSP::PrepareRenameResult?)

id : RequestId id, id=(id : RequestId) id=, method : String method, method=(method : String) method=, on_response(raw : JSON::Any | Nil, e : ResponseError | Nil)
on_response(&block : Proc(Result? | Nil, ResponseError | Nil, Nil))
on_response
, on_response? : Proc(Result? | Nil, ResponseError | Nil, Nil) | Nil on_response?

Constructor methods inherited from class LSP::RequestMessage(LSP::PrepareRenameResult?)

new(pull : JSON::PullParser)
new(**args)
new

Macros inherited from module JSON::Serializable

json_discriminator(field, mapping, *, default = nil) json_discriminator

Constructor Detail

def self.new(pull : JSON::PullParser) #

The prepare rename request is sent from the client to the server to check whether a symbol can be renamed at a given position.


def self.new(**args) #

Instance Method Detail

def params : PrepareRenameParams #

def params=(params : PrepareRenameParams) #