Class: RubyLsp::Requests::SemanticHighlighting::SemanticToken

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/ruby_lsp/requests/semantic_highlighting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, length:, type:, modifier:) ⇒ SemanticToken

Returns a new instance of SemanticToken.



97
98
99
100
101
102
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 97

def initialize(location:, length:, type:, modifier:)
  @location = location
  @length = length
  @type = type
  @modifier = modifier
end

Instance Attribute Details

#lengthObject (readonly)

Returns the value of attribute length.



88
89
90
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 88

def length
  @length
end

#locationObject (readonly)

Returns the value of attribute location.



85
86
87
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 85

def location
  @location
end

#modifierObject (readonly)

Returns the value of attribute modifier.



94
95
96
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 94

def modifier
  @modifier
end

#typeObject (readonly)

Returns the value of attribute type.



91
92
93
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 91

def type
  @type
end