Open Sword-Smith opened 11 months ago
The Rust tokens all have a Span value that identifies where in the source code the token was read. We should add this Span value to our intermediate language defined in src/ast.rs.
Span
src/ast.rs
Cf. https://doc.rust-lang.org/reference/procedural-macros.html#the-proc_macro-crate
The Rust tokens all have a
Span
value that identifies where in the source code the token was read. We should add thisSpan
value to our intermediate language defined insrc/ast.rs
.Cf. https://doc.rust-lang.org/reference/procedural-macros.html#the-proc_macro-crate