-
I just create some ast statement,set span to DummySpan. And I cannot add comment to them because their lo is always 0,0(I guess) So could anyone tell me how to add comments for them? |
Beta Was this translation helpful? Give feedback.
Answered by
kdy1
Jul 7, 2023
Replies: 1 comment
-
https://rustdoc.swc.rs/swc_common/struct.Span.html#method.dummy_with_cmt |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kdy1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://rustdoc.swc.rs/swc_common/struct.Span.html#method.dummy_with_cmt