File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ def generate_command_for(constant)
359359 #: -> Array[String]
360360 def constants_from_requested_paths
361361 @constants_from_requested_paths ||=
362- Static ::SymbolLoader . symbols_from_paths ( @requested_paths ) . to_a #: Array[String]?
362+ Static ::SymbolLoader . graph_from_paths ( @requested_paths ) . declarations . map ( & :name ) #: Array[String]?
363363 end
364364 end
365365 end
Original file line number Diff line number Diff line change @@ -63,22 +63,6 @@ def engine_symbols(gem)
6363 Set . new
6464 end
6565
66- #: (Array[Pathname] paths) -> Set[String]
67- def symbols_from_paths ( paths )
68- return Set . new if paths . empty?
69-
70- output = Tempfile . create ( "sorbet" ) do |file |
71- file . write ( Array ( paths ) . join ( "\n " ) )
72- file . flush
73-
74- symbol_table_json_from ( "@#{ file . path . shellescape } " )
75- end
76-
77- return Set . new if output . empty?
78-
79- SymbolTableParser . parse_json ( output )
80- end
81-
8266 private
8367
8468 # @without_runtime
You can’t perform that action at this time.
0 commit comments