diff options
Diffstat (limited to 'tests/test_utils/swc.rs')
-rw-r--r-- | tests/test_utils/swc.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_utils/swc.rs b/tests/test_utils/swc.rs index 80376b8..fb91a3b 100644 --- a/tests/test_utils/swc.rs +++ b/tests/test_utils/swc.rs @@ -40,6 +40,7 @@ pub fn parse_esm(value: &str) -> MdxSignal { /// Parse ESM in MDX with SWC. /// To do: figure out how to fix positional info. +/// See `drop_span` in `swc_ecma_utils` for inspiration? #[allow(dead_code)] pub fn parse_esm_to_tree(value: &str) -> Result<swc_ecma_ast::Module, String> { let (file, syntax, version) = create_config(value.to_string()); @@ -108,6 +109,7 @@ pub fn parse_expression(value: &str, kind: &MdxExpressionKind) -> MdxSignal { /// Parse ESM in MDX with SWC. /// To do: figure out how to fix positional info. +/// See `drop_span` in `swc_ecma_utils` for inspiration? #[allow(dead_code)] pub fn parse_expression_to_tree( value: &str, |