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.


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

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.


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

def length
  @length
end

#locationObject (readonly)

Returns the value of attribute location.


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

def location
  @location
end

#modifierObject (readonly)

Returns the value of attribute modifier.


96
97
98
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 96

def modifier
  @modifier
end

#typeObject (readonly)

Returns the value of attribute type.


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

def type
  @type
end