Skip to content

Commit

Permalink
Rename dummy span to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Feb 21, 2025
1 parent 7a5f2f4 commit b1575be
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1887,8 +1887,8 @@ impl<C: Comments> VisitMut for ServerActions<C> {
));
new.push(export_expr);
} else {
let call_expr_span = Span::dummy_with_cmt();
self.comments.add_pure_comment(call_expr_span.lo);
let dummy_pure_span = Span::dummy_with_cmt();
self.comments.add_pure_comment(dummy_pure_span.lo);

let export_expr =
ModuleItem::ModuleDecl(ModuleDecl::ExportDecl(ExportDecl {
Expand Down Expand Up @@ -1917,7 +1917,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
.into(),
),
init: Some(Box::new(Expr::Call(CallExpr {
span: call_expr_span,
span: dummy_pure_span,
callee: Callee::Expr(Box::new(Expr::Ident(
create_ref_ident.clone(),
))),
Expand Down

0 comments on commit b1575be

Please sign in to comment.