File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -882,7 +882,7 @@ impl AppProject {
882
882
visited_modules = visited_modules. concatenate ( graph) ;
883
883
884
884
let base = ModuleGraph :: from_graphs ( graphs. clone ( ) ) ;
885
- let additional_entries = endpoint. additional_root_modules ( base) ;
885
+ let additional_entries = endpoint. additional_entries ( base) ;
886
886
let additional_module_graph = SingleModuleGraph :: new_with_entries_visited (
887
887
additional_entries. owned ( ) . await ?,
888
888
visited_modules,
@@ -1882,15 +1882,15 @@ impl Endpoint for AppEndpoint {
1882
1882
}
1883
1883
1884
1884
#[ turbo_tasks:: function]
1885
- async fn root_modules ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
1885
+ async fn entries ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
1886
1886
Ok ( Vc :: cell ( vec ! [ (
1887
1887
vec![ self . app_endpoint_entry( ) . await ?. rsc_entry] ,
1888
1888
ChunkGroupType :: Entry ,
1889
1889
) ] ) )
1890
1890
}
1891
1891
1892
1892
#[ turbo_tasks:: function]
1893
- async fn additional_root_modules (
1893
+ async fn additional_entries (
1894
1894
self : Vc < Self > ,
1895
1895
graph : Vc < ModuleGraph > ,
1896
1896
) -> Result < Vc < GraphEntries > > {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl Endpoint for EmptyEndpoint {
33
33
}
34
34
35
35
#[ turbo_tasks:: function]
36
- fn root_modules ( self : Vc < Self > ) -> Vc < GraphEntries > {
36
+ fn entries ( self : Vc < Self > ) -> Vc < GraphEntries > {
37
37
GraphEntries :: empty ( )
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ impl Endpoint for InstrumentationEndpoint {
292
292
}
293
293
294
294
#[ turbo_tasks:: function]
295
- async fn root_modules ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
295
+ async fn entries ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
296
296
let core_modules = self . core_modules ( ) . await ?;
297
297
Ok ( Vc :: cell ( vec ! [ (
298
298
vec![ core_modules. edge_entry_module] ,
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ impl Endpoint for MiddlewareEndpoint {
330
330
}
331
331
332
332
#[ turbo_tasks:: function]
333
- async fn root_modules ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
333
+ async fn entries ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
334
334
Ok ( Vc :: cell ( vec ! [ (
335
335
vec![ self . entry_module( ) . to_resolved( ) . await ?] ,
336
336
ChunkGroupType :: Evaluated ,
Original file line number Diff line number Diff line change @@ -1466,7 +1466,7 @@ impl Endpoint for PageEndpoint {
1466
1466
}
1467
1467
1468
1468
#[ turbo_tasks:: function]
1469
- async fn root_modules ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
1469
+ async fn entries ( self : Vc < Self > ) -> Result < Vc < GraphEntries > > {
1470
1470
let this = self . await ?;
1471
1471
let mut modules = vec ! [ ] ;
1472
1472
Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ impl Project {
851
851
. get_all_endpoints ( )
852
852
. await ?
853
853
. iter ( )
854
- . map ( async |endpoint| Ok ( endpoint. root_modules ( ) . owned ( ) . await ?) )
854
+ . map ( async |endpoint| Ok ( endpoint. entries ( ) . owned ( ) . await ?) )
855
855
. try_flat_join ( )
856
856
. await ?;
857
857
modules. extend ( self . client_main_modules ( ) . await ?. iter ( ) . cloned ( ) ) ;
@@ -867,7 +867,7 @@ impl Project {
867
867
. get_all_endpoints ( )
868
868
. await ?
869
869
. iter ( )
870
- . map ( async |endpoint| Ok ( endpoint. additional_root_modules ( graphs) . owned ( ) . await ?) )
870
+ . map ( async |endpoint| Ok ( endpoint. additional_entries ( graphs) . owned ( ) . await ?) )
871
871
. try_flat_join ( )
872
872
. await ?;
873
873
Ok ( Vc :: cell ( modules) )
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ pub trait Endpoint {
54
54
fn server_changed ( self : Vc < Self > ) -> Vc < Completion > ;
55
55
fn client_changed ( self : Vc < Self > ) -> Vc < Completion > ;
56
56
/// The entry modules for the modules graph.
57
- fn root_modules ( self : Vc < Self > ) -> Vc < GraphEntries > ;
57
+ fn entries ( self : Vc < Self > ) -> Vc < GraphEntries > ;
58
58
/// Additional entry modules for the module graph.
59
59
/// This may read the module graph and return additional modules.
60
- fn additional_root_modules ( self : Vc < Self > , _graph : Vc < ModuleGraph > ) -> Vc < GraphEntries > {
60
+ fn additional_entries ( self : Vc < Self > , _graph : Vc < ModuleGraph > ) -> Vc < GraphEntries > {
61
61
GraphEntries :: empty ( )
62
62
}
63
63
}
You can’t perform that action at this time.
0 commit comments