Class: Solargraph::ApiMap::Index
- Inherits:
-
Object
- Object
- Solargraph::ApiMap::Index
show all
- Includes:
- Logging
- Defined in:
- lib/solargraph/api_map/index.rb
Constant Summary
Constants included
from Logging
Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Logging
log_level, logger
Constructor Details
#initialize(pins = []) ⇒ Index
Returns a new instance of Index.
15
16
17
|
# File 'lib/solargraph/api_map/index.rb', line 15
def initialize pins = []
catalog pins
end
|
Instance Attribute Details
75
76
77
78
79
|
# File 'lib/solargraph/api_map/index.rb', line 75
def extend_references
@extend_references ||= Hash.new { |h, k| h[k] = [] }
end
|
61
62
63
64
65
|
# File 'lib/solargraph/api_map/index.rb', line 61
def include_references
@include_references ||= Hash.new { |h, k| h[k] = [] }
end
|
#macro_method_name_pins ⇒ Hash{String => Array<Pin::Method>}
12
13
14
|
# File 'lib/solargraph/api_map/index.rb', line 12
def macro_method_name_pins
@macro_method_name_pins
end
|
#macro_method_names ⇒ Array<String>
9
10
11
|
# File 'lib/solargraph/api_map/index.rb', line 9
def macro_method_names
@macro_method_names
end
|
#namespace_hash ⇒ Hash{String => Array<Pin::Namespace>}
25
26
27
28
29
|
# File 'lib/solargraph/api_map/index.rb', line 25
def namespace_hash
@namespace_hash ||= Hash.new { |h, k| h[k] = [] }
end
|
#path_pin_hash ⇒ Hash{String => Array<Pin::Base>}
39
40
41
42
43
|
# File 'lib/solargraph/api_map/index.rb', line 39
def path_pin_hash
@path_pin_hash ||= Hash.new { |h, k| h[k] = [] }
end
|
#pin_class_hash ⇒ Hash{String => Array<Pin::Base>}
32
33
34
35
36
|
# File 'lib/solargraph/api_map/index.rb', line 32
def pin_class_hash
@pin_class_hash ||= Hash.new { |h, k| h[k] = [] }
end
|
20
21
22
|
# File 'lib/solargraph/api_map/index.rb', line 20
def pins
@pins ||= []
end
|
82
83
84
85
86
|
# File 'lib/solargraph/api_map/index.rb', line 82
def prepend_references
@prepend_references ||= Hash.new { |h, k| h[k] = [] }
end
|
89
90
91
92
93
|
# File 'lib/solargraph/api_map/index.rb', line 89
def superclass_references
@superclass_references ||= Hash.new { |h, k| h[k] = [] }
end
|
Instance Method Details
#alias_hash ⇒ Hash{String => ComplexType}
46
47
48
|
# File 'lib/solargraph/api_map/index.rb', line 46
def alias_hash
@alias_hash ||= {}
end
|
#include_reference_pins ⇒ Hash{String => Array<Pin::Reference::Include>}
68
69
70
71
72
|
# File 'lib/solargraph/api_map/index.rb', line 68
def include_reference_pins
@include_reference_pins ||= Hash.new { |h, k| h[k] = [] }
end
|
#merge(pins) ⇒ self
97
98
99
|
# File 'lib/solargraph/api_map/index.rb', line 97
def merge pins
deep_clone.catalog pins
end
|
#pins_by_class(klass) ⇒ Set<generic<T>>
53
54
55
56
57
58
|
# File 'lib/solargraph/api_map/index.rb', line 53
def pins_by_class klass
s = Set.new
@pin_select_cache[klass] ||= pin_class_hash.each_with_object(s) { |(key, o), n| n.merge(o) if key <= klass }
end
|