Class: Kapusta::LSP::ScopeWalker::Scope
- Inherits:
-
Struct
- Object
- Struct
- Kapusta::LSP::ScopeWalker::Scope
- Defined in:
- lib/kapusta/lsp/scope_walker.rb
Instance Attribute Summary collapse
-
#bindings ⇒ Object
Returns the value of attribute bindings.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
Instance Attribute Details
#bindings ⇒ Object
Returns the value of attribute bindings
13 14 15 |
# File 'lib/kapusta/lsp/scope_walker.rb', line 13 def bindings @bindings end |
#id ⇒ Object
Returns the value of attribute id
13 14 15 |
# File 'lib/kapusta/lsp/scope_walker.rb', line 13 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind
13 14 15 |
# File 'lib/kapusta/lsp/scope_walker.rb', line 13 def kind @kind end |
#parent ⇒ Object
Returns the value of attribute parent
13 14 15 |
# File 'lib/kapusta/lsp/scope_walker.rb', line 13 def parent @parent end |
Instance Method Details
#lookup(name) ⇒ Object
14 15 16 |
# File 'lib/kapusta/lsp/scope_walker.rb', line 14 def lookup(name) bindings[name] || parent&.lookup(name) end |