Skip to content

Commit b1575be

Browse files
committed
Rename dummy span to be clearer
1 parent 7a5f2f4 commit b1575be

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
@@ -1887,8 +1887,8 @@ impl<C: Comments> VisitMut for ServerActions<C> {
18871887
));
18881888
new.push(export_expr);
18891889
} else {
1890-
let call_expr_span = Span::dummy_with_cmt();
1891-
self.comments.add_pure_comment(call_expr_span.lo);
1890+
let dummy_pure_span = Span::dummy_with_cmt();
1891+
self.comments.add_pure_comment(dummy_pure_span.lo);
18921892

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

0 commit comments

Comments
 (0)