Skip to content

Commit 330c2ad

Browse files
committed
Rename functions
1 parent 8e7f943 commit 330c2ad

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

crates/next-api/src/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ impl AppProject {
882882
visited_modules = visited_modules.concatenate(graph);
883883

884884
let base = ModuleGraph::from_graphs(graphs.clone());
885-
let additional_entries = endpoint.additional_root_modules(base);
885+
let additional_entries = endpoint.additional_entries(base);
886886
let additional_module_graph = SingleModuleGraph::new_with_entries_visited(
887887
additional_entries.owned().await?,
888888
visited_modules,
@@ -1882,15 +1882,15 @@ impl Endpoint for AppEndpoint {
18821882
}
18831883

18841884
#[turbo_tasks::function]
1885-
async fn root_modules(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
1885+
async fn entries(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
18861886
Ok(Vc::cell(vec![(
18871887
vec![self.app_endpoint_entry().await?.rsc_entry],
18881888
ChunkGroupType::Entry,
18891889
)]))
18901890
}
18911891

18921892
#[turbo_tasks::function]
1893-
async fn additional_root_modules(
1893+
async fn additional_entries(
18941894
self: Vc<Self>,
18951895
graph: Vc<ModuleGraph>,
18961896
) -> Result<Vc<GraphEntries>> {

crates/next-api/src/empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl Endpoint for EmptyEndpoint {
3333
}
3434

3535
#[turbo_tasks::function]
36-
fn root_modules(self: Vc<Self>) -> Vc<GraphEntries> {
36+
fn entries(self: Vc<Self>) -> Vc<GraphEntries> {
3737
GraphEntries::empty()
3838
}
3939
}

crates/next-api/src/instrumentation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl Endpoint for InstrumentationEndpoint {
292292
}
293293

294294
#[turbo_tasks::function]
295-
async fn root_modules(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
295+
async fn entries(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
296296
let core_modules = self.core_modules().await?;
297297
Ok(Vc::cell(vec![(
298298
vec![core_modules.edge_entry_module],

crates/next-api/src/middleware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl Endpoint for MiddlewareEndpoint {
330330
}
331331

332332
#[turbo_tasks::function]
333-
async fn root_modules(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
333+
async fn entries(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
334334
Ok(Vc::cell(vec![(
335335
vec![self.entry_module().to_resolved().await?],
336336
ChunkGroupType::Evaluated,

crates/next-api/src/pages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ impl Endpoint for PageEndpoint {
14661466
}
14671467

14681468
#[turbo_tasks::function]
1469-
async fn root_modules(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
1469+
async fn entries(self: Vc<Self>) -> Result<Vc<GraphEntries>> {
14701470
let this = self.await?;
14711471
let mut modules = vec![];
14721472

crates/next-api/src/project.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ impl Project {
851851
.get_all_endpoints()
852852
.await?
853853
.iter()
854-
.map(async |endpoint| Ok(endpoint.root_modules().owned().await?))
854+
.map(async |endpoint| Ok(endpoint.entries().owned().await?))
855855
.try_flat_join()
856856
.await?;
857857
modules.extend(self.client_main_modules().await?.iter().cloned());
@@ -867,7 +867,7 @@ impl Project {
867867
.get_all_endpoints()
868868
.await?
869869
.iter()
870-
.map(async |endpoint| Ok(endpoint.additional_root_modules(graphs).owned().await?))
870+
.map(async |endpoint| Ok(endpoint.additional_entries(graphs).owned().await?))
871871
.try_flat_join()
872872
.await?;
873873
Ok(Vc::cell(modules))

crates/next-api/src/route.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ pub trait Endpoint {
5454
fn server_changed(self: Vc<Self>) -> Vc<Completion>;
5555
fn client_changed(self: Vc<Self>) -> Vc<Completion>;
5656
/// The entry modules for the modules graph.
57-
fn root_modules(self: Vc<Self>) -> Vc<GraphEntries>;
57+
fn entries(self: Vc<Self>) -> Vc<GraphEntries>;
5858
/// Additional entry modules for the module graph.
5959
/// 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> {
6161
GraphEntries::empty()
6262
}
6363
}

0 commit comments

Comments
 (0)