Class: RubyLsp::Requests::SemanticHighlighting::SemanticToken
- Inherits:
-
Object
- Object
- RubyLsp::Requests::SemanticHighlighting::SemanticToken
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_lsp/requests/semantic_highlighting.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#modifier ⇒ Object
readonly
Returns the value of attribute modifier.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(location:, length:, type:, modifier:) ⇒ SemanticToken
constructor
A new instance of SemanticToken.
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
#length ⇒ Object (readonly)
Returns the value of attribute length.
88 89 90 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 88 def length @length end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
85 86 87 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 85 def location @location end |
#modifier ⇒ Object (readonly)
Returns the value of attribute modifier.
94 95 96 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 94 def modifier @modifier end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
91 92 93 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 91 def type @type end |