Class: Solargraph::Pin::Keyword

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/pin/keyword.rb

Constant Summary

Constants included from Logging

Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS

Instance Attribute Summary

Attributes inherited from Base

#code_object, #directives, #docstring, #location, #path, #return_type, #source, #type_location

Attributes included from Common

#context, #location

Instance Method Summary collapse

Methods inherited from Base

#==, #all_location_text, #all_rooted?, #assert_same, #assert_same_array_content, #assert_same_count, #assert_same_macros, #assert_source_provided, #best_location, #choose, #choose_longer, #choose_node, #choose_pin_attr, #choose_pin_attr_with_same_name, #combine_directives, #combine_name, #combine_return_type, #combine_with, #comments, #completion_item_kind, #deprecated?, #desc, #dodgy_return_type_source?, #erase_generics, #filename, #identity, #infer, #inner_desc, #inspect, #macros, #maybe_directives?, #nearly?, #needs_consistent_name?, #prefer_rbs_location, #presence_certain?, #probe, #probed?, #proxied?, #proxy, #rbs_location?, #realize, #reset_generated!, #resolve_generics, #resolve_generics_from_context, #symbol_kind, #to_rbs, #to_s, #transform_types, #type_desc, #typify, #variable?

Methods included from Logging

logger

Methods included from Documenting

#documentation, normalize_indentation, strip_html_comments

Methods included from Conversions

#completion_item, #completion_item_kind, #deprecated?, #detail, #link_documentation, #probed?, #proxied?, #reset_conversions, #resolve_completion_item, #signature_help, #text_documentation

Methods included from Common

#binder, #comments, #namespace, #path, #return_type

Constructor Details

#initialize(name, **kwargs) ⇒ Keyword

Returns a new instance of Keyword.



6
7
8
9
# File 'lib/solargraph/pin/keyword.rb', line 6

def initialize(name, **kwargs)
  # @sg-ignore "Unrecognized keyword argument kwargs to Solargraph::Pin::Base#initialize"
  super(name: name, **kwargs)
end

Instance Method Details

#closureObject



11
12
13
# File 'lib/solargraph/pin/keyword.rb', line 11

def closure
  @closure ||= Pin::ROOT_PIN
end

#nameObject



15
16
17
# File 'lib/solargraph/pin/keyword.rb', line 15

def name
  @name
end