Class: Solargraph::Pin::Symbol
- Inherits:
-
Base
- Object
- Base
- Solargraph::Pin::Symbol
show all
- Defined in:
- lib/solargraph/pin/symbol.rb
Constant Summary
Constants included
from Logging
Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS
Instance Attribute Summary
Attributes inherited from Base
#code_object, #combine_priority, #docstring, #location, #name, #source, #type_location
Attributes included from Common
#context, #location
Instance Method Summary
collapse
Methods inherited from Base
#==, #all_location_text, #all_rooted?, #assert_location_provided, #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, #choose_priority, #combine_directives, #combine_name, #combine_return_type, #combine_with, #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
#documentation, normalize_indentation, strip_html_comments
#completion_item, #detail, #link_documentation, #probed?, #proxied?, #reset_conversions, #resolve_completion_item, #signature_help, #text_documentation
Methods included from Common
#binder, #name, #source
Constructor Details
#initialize(location, name, **kwargs) ⇒ Symbol
Returns a new instance of Symbol.
8
9
10
11
12
13
|
# File 'lib/solargraph/pin/symbol.rb', line 8
def initialize(location, name, **kwargs)
super(location: location, name: name, **kwargs)
end
|
Instance Method Details
#closure ⇒ Object
23
24
25
|
# File 'lib/solargraph/pin/symbol.rb', line 23
def closure
@closure ||= Pin::ROOT_PIN
end
|
31
32
33
|
# File 'lib/solargraph/pin/symbol.rb', line 31
def
''
end
|
#completion_item_kind ⇒ Object
#deprecated? ⇒ Boolean
48
49
50
|
# File 'lib/solargraph/pin/symbol.rb', line 48
def deprecated?
false
end
|
#directives ⇒ Object
39
40
41
|
# File 'lib/solargraph/pin/symbol.rb', line 39
def directives
[]
end
|
#namespace ⇒ Object
15
16
17
|
# File 'lib/solargraph/pin/symbol.rb', line 15
def namespace
''
end
|
#path ⇒ Object
19
20
21
|
# File 'lib/solargraph/pin/symbol.rb', line 19
def path
''
end
|
#return_type ⇒ Object
35
36
37
|
# File 'lib/solargraph/pin/symbol.rb', line 35
def return_type
@return_type ||= Solargraph::ComplexType::SYMBOL
end
|
#visibility ⇒ ::Symbol
44
45
46
|
# File 'lib/solargraph/pin/symbol.rb', line 44
def visibility
:public
end
|