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.
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
#length ⇒ Object (readonly)
Returns the value of attribute length.
90 91 92 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 90 def length @length end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
87 88 89 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 87 def location @location end |
#modifier ⇒ Object (readonly)
Returns the value of attribute modifier.
96 97 98 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 96 def modifier @modifier end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
93 94 95 |
# File 'lib/ruby_lsp/requests/semantic_highlighting.rb', line 93 def type @type end |