Skip to content

Commit ffc75b5

Browse files
committed
Restore RBS::Environment#declarations for backwards-compatibility
1 parent 02a4f89 commit ffc75b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rbs/environment.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ class Environment
1111

1212
attr_reader :sources
1313

14+
def declarations
15+
sources.flat_map(&:declarations)
16+
end
17+
1418
class SingleEntry
1519
attr_reader :name
1620
attr_reader :context

0 commit comments

Comments
 (0)