Skip to content

Commit d33f47e

Browse files
committed
Rename dummy span to be clearer
1 parent 5153b2f commit d33f47e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/next-custom-transforms/src/transforms/server_actions.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1888,8 +1888,8 @@ impl<C: Comments> VisitMut for ServerActions<C> {
18881888
));
18891889
new.push(export_expr);
18901890
} else {
1891-
let call_expr_span = Span::dummy_with_cmt();
1892-
self.comments.add_pure_comment(call_expr_span.lo);
1891+
let dummy_pure_span = Span::dummy_with_cmt();
1892+
self.comments.add_pure_comment(dummy_pure_span.lo);
18931893

18941894
let export_expr =
18951895
ModuleItem::ModuleDecl(ModuleDecl::ExportDecl(ExportDecl {
@@ -1918,7 +1918,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
19181918
.into(),
19191919
),
19201920
init: Some(Box::new(Expr::Call(CallExpr {
1921-
span: call_expr_span,
1921+
span: dummy_pure_span,
19221922
callee: Callee::Expr(Box::new(Expr::Ident(
19231923
create_ref_ident.clone(),
19241924
))),

0 commit comments

Comments
 (0)