class LanguageServer::Protocol::Interface::SemanticTokensDelta
Attributes
attributes[R]
Public Class Methods
new(result_id: nil, edits:)
click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_delta.rb, line 5 def initialize(result_id: nil, edits:) @attributes = {} @attributes[:resultId] = result_id if result_id @attributes[:edits] = edits @attributes.freeze end
Public Instance Methods
edits()
click to toggle source
The semantic token edits to transform a previous result into a new result.
@return [SemanticTokensEdit
# File lib/language_server/protocol/interface/semantic_tokens_delta.rb, line 24 def edits attributes.fetch(:edits) end
result_id()
click to toggle source
@return [string]
# File lib/language_server/protocol/interface/semantic_tokens_delta.rb, line 15 def result_id attributes.fetch(:resultId) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_delta.rb, line 30 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_delta.rb, line 34 def to_json(*args) to_hash.to_json(*args) end