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,9 @@ 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 . symbols_from_graph (
363+ Static ::SymbolLoader . graph_from_paths ( @requested_paths ) ,
364+ ) . to_a #: Array[String]?
363365 end
364366 end
365367 end
Original file line number Diff line number Diff line change @@ -74,22 +74,6 @@ def engine_symbols(gem)
7474 Set . new
7575 end
7676
77- #: (Array[Pathname] paths) -> Set[String]
78- def symbols_from_paths ( paths )
79- return Set . new if paths . empty?
80-
81- output = Tempfile . create ( "sorbet" ) do |file |
82- file . write ( Array ( paths ) . join ( "\n " ) )
83- file . flush
84-
85- symbol_table_json_from ( "@#{ file . path . shellescape } " )
86- end
87-
88- return Set . new if output . empty?
89-
90- SymbolTableParser . parse_json ( output )
91- end
92-
9377 private
9478
9579 # @without_runtime
You can’t perform that action at this time.
0 commit comments