We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f91bbb3 + 59cc171 commit d4fc1f0Copy full SHA for d4fc1f0
lib/rbs/environment.rb
@@ -11,6 +11,10 @@ class Environment
11
12
attr_reader :sources
13
14
+ def declarations
15
+ sources.flat_map(&:declarations)
16
+ end
17
+
18
class SingleEntry
19
attr_reader :name
20
attr_reader :context
sig/environment.rbs
@@ -30,6 +30,9 @@ module RBS
30
class GlobalEntry < SingleEntry[Symbol, AST::Declarations::Global]
31
end
32
33
+ # Top level declarations
34
+ def declarations: () -> Array[AST::Ruby::Declarations::t | AST::Declarations::t]
35
36
# Array of source objects loaded in the environment
37
#
38
attr_reader sources: Array[Source::t]
0 commit comments