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.
9
10
11
|
# File 'lib/solargraph/api_map/index.rb', line 9
def initialize pins = []
catalog pins
end
|
Instance Attribute Details
69
70
71
72
73
|
# File 'lib/solargraph/api_map/index.rb', line 69
def extend_references
@extend_references ||= Hash.new { |h, k| h[k] = [] }
end
|
55
56
57
58
59
|
# File 'lib/solargraph/api_map/index.rb', line 55
def include_references
@include_references ||= Hash.new { |h, k| h[k] = [] }
end
|
#namespace_hash ⇒ Hash{String => Array<Pin::Namespace>}
19
20
21
22
23
|
# File 'lib/solargraph/api_map/index.rb', line 19
def namespace_hash
@namespace_hash ||= Hash.new { |h, k| h[k] = [] }
end
|
#path_pin_hash ⇒ Hash{String => Array<Pin::Base>}
33
34
35
36
37
|
# File 'lib/solargraph/api_map/index.rb', line 33
def path_pin_hash
@path_pin_hash ||= Hash.new { |h, k| h[k] = [] }
end
|
#pin_class_hash ⇒ Hash{String => Array<Pin::Base>}
26
27
28
29
30
|
# File 'lib/solargraph/api_map/index.rb', line 26
def pin_class_hash
@pin_class_hash ||= Hash.new { |h, k| h[k] = [] }
end
|
14
15
16
|
# File 'lib/solargraph/api_map/index.rb', line 14
def pins
@pins ||= []
end
|
76
77
78
79
80
|
# File 'lib/solargraph/api_map/index.rb', line 76
def prepend_references
@prepend_references ||= Hash.new { |h, k| h[k] = [] }
end
|
83
84
85
86
87
|
# File 'lib/solargraph/api_map/index.rb', line 83
def superclass_references
@superclass_references ||= Hash.new { |h, k| h[k] = [] }
end
|
Instance Method Details
#alias_hash ⇒ Hash{String => ComplexType}
40
41
42
|
# File 'lib/solargraph/api_map/index.rb', line 40
def alias_hash
@alias_hash ||= {}
end
|
#include_reference_pins ⇒ Hash{String => Array<Pin::Reference::Include>}
62
63
64
65
66
|
# File 'lib/solargraph/api_map/index.rb', line 62
def include_reference_pins
@include_reference_pins ||= Hash.new { |h, k| h[k] = [] }
end
|
#merge(pins) ⇒ self
91
92
93
|
# File 'lib/solargraph/api_map/index.rb', line 91
def merge pins
deep_clone.catalog pins
end
|
#pins_by_class(klass) ⇒ Set<generic<T>>
47
48
49
50
51
52
|
# File 'lib/solargraph/api_map/index.rb', line 47
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
|