@samitouri / QOS-React-1 / commits / 8a43e954a2

s/Forget/React Compiler/ in Rust port

Joe Savona committed Apr 2, 2024 at 16:49 UTC 8a43e954a24b65604a9096f38ca43d3b0871ebaf
1151 files changed +3845 -1487
compiler/Cargo.lock
+155 -155
@@ -195,161 +195,6 @@ version = "1.0.7"
195 source = "registry+https://github.com/rust-lang/crates.io-index"
196 checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
197
198 -[[package]]
199 -name = "forget_build_hir"
200 -version = "0.1.0"
201 -dependencies = [
202 - "forget_diagnostics",
203 - "forget_estree",
204 - "forget_hir",
205 - "forget_semantic_analysis",
206 - "indexmap",
207 - "thiserror",
208 -]
209 -
210 -[[package]]
211 -name = "forget_diagnostics"
212 -version = "0.1.0"
213 -dependencies = [
214 - "forget_estree",
215 - "miette",
216 - "static_assertions",
217 - "thiserror",
218 -]
219 -
220 -[[package]]
221 -name = "forget_estree"
222 -version = "0.1.0"
223 -dependencies = [
224 - "forget_estree_codegen",
225 - "insta",
226 - "serde",
227 - "serde_json",
228 - "static_assertions",
229 -]
230 -
231 -[[package]]
232 -name = "forget_estree_codegen"
233 -version = "0.1.0"
234 -dependencies = [
235 - "indexmap",
236 - "prettyplease",
237 - "quote",
238 - "serde",
239 - "serde_json",
240 - "syn 2.0.23",
241 -]
242 -
243 -[[package]]
244 -name = "forget_fixtures"
245 -version = "0.1.0"
246 -dependencies = [
247 - "forget_build_hir",
248 - "forget_estree",
249 - "forget_hermes_parser",
250 - "forget_hir",
251 - "forget_optimization",
252 - "forget_semantic_analysis",
253 - "forget_ssa",
254 - "insta",
255 - "miette",
256 -]
257 -
258 -[[package]]
259 -name = "forget_hermes_parser"
260 -version = "0.1.0"
261 -dependencies = [
262 - "forget_diagnostics",
263 - "forget_estree",
264 - "forget_estree_codegen",
265 - "hermes",
266 - "insta",
267 - "juno_support",
268 - "serde_json",
269 -]
270 -
271 -[[package]]
272 -name = "forget_hir"
273 -version = "0.1.0"
274 -dependencies = [
275 - "forget_diagnostics",
276 - "forget_estree",
277 - "forget_semantic_analysis",
278 - "forget_utils",
279 - "indexmap",
280 - "serde",
281 - "thiserror",
282 -]
283 -
284 -[[package]]
285 -name = "forget_napi"
286 -version = "0.1.0"
287 -dependencies = [
288 - "forget_diagnostics",
289 - "forget_estree",
290 - "forget_hermes_parser",
291 - "forget_semantic_analysis",
292 - "napi",
293 - "napi-build",
294 - "napi-derive",
295 - "serde_json",
296 -]
297 -
298 -[[package]]
299 -name = "forget_optimization"
300 -version = "0.1.0"
301 -dependencies = [
302 - "forget_build_hir",
303 - "forget_diagnostics",
304 - "forget_estree",
305 - "forget_hir",
306 - "forget_ssa",
307 - "forget_utils",
308 - "indexmap",
309 - "miette",
310 - "thiserror",
311 -]
312 -
313 -[[package]]
314 -name = "forget_reactive_ir"
315 -version = "0.1.0"
316 -dependencies = [
317 - "forget_hir",
318 -]
319 -
320 -[[package]]
321 -name = "forget_semantic_analysis"
322 -version = "0.1.0"
323 -dependencies = [
324 - "forget_diagnostics",
325 - "forget_estree",
326 - "forget_hermes_parser",
327 - "forget_utils",
328 - "indexmap",
329 - "insta",
330 - "miette",
331 - "serde_json",
332 -]
333 -
334 -[[package]]
335 -name = "forget_ssa"
336 -version = "0.1.0"
337 -dependencies = [
338 - "forget_diagnostics",
339 - "forget_hir",
340 - "forget_utils",
341 - "indexmap",
342 - "miette",
343 - "thiserror",
344 -]
345 -
346 -[[package]]
347 -name = "forget_utils"
348 -version = "0.1.0"
349 -dependencies = [
350 - "stacker",
351 -]
352 -
198 [[package]]
199 name = "form_urlencoded"
200 version = "1.2.0"
@@ -738,6 +583,161 @@ dependencies = [
583 "proc-macro2",
584 ]
585
586 +[[package]]
587 +name = "react_build_hir"
588 +version = "0.1.0"
589 +dependencies = [
590 + "indexmap",
591 + "react_diagnostics",
592 + "react_estree",
593 + "react_hir",
594 + "react_semantic_analysis",
595 + "thiserror",
596 +]
597 +
598 +[[package]]
599 +name = "react_diagnostics"
600 +version = "0.1.0"
601 +dependencies = [
602 + "miette",
603 + "react_estree",
604 + "static_assertions",
605 + "thiserror",
606 +]
607 +
608 +[[package]]
609 +name = "react_estree"
610 +version = "0.1.0"
611 +dependencies = [
612 + "insta",
613 + "react_estree_codegen",
614 + "serde",
615 + "serde_json",
616 + "static_assertions",
617 +]
618 +
619 +[[package]]
620 +name = "react_estree_codegen"
621 +version = "0.1.0"
622 +dependencies = [
623 + "indexmap",
624 + "prettyplease",
625 + "quote",
626 + "serde",
627 + "serde_json",
628 + "syn 2.0.23",
629 +]
630 +
631 +[[package]]
632 +name = "react_fixtures"
633 +version = "0.1.0"
634 +dependencies = [
635 + "insta",
636 + "miette",
637 + "react_build_hir",
638 + "react_estree",
639 + "react_hermes_parser",
640 + "react_hir",
641 + "react_optimization",
642 + "react_semantic_analysis",
643 + "react_ssa",
644 +]
645 +
646 +[[package]]
647 +name = "react_hermes_parser"
648 +version = "0.1.0"
649 +dependencies = [
650 + "hermes",
651 + "insta",
652 + "juno_support",
653 + "react_diagnostics",
654 + "react_estree",
655 + "react_estree_codegen",
656 + "serde_json",
657 +]
658 +
659 +[[package]]
660 +name = "react_hir"
661 +version = "0.1.0"
662 +dependencies = [
663 + "indexmap",
664 + "react_diagnostics",
665 + "react_estree",
666 + "react_semantic_analysis",
667 + "react_utils",
668 + "serde",
669 + "thiserror",
670 +]
671 +
672 +[[package]]
673 +name = "react_napi"
674 +version = "0.1.0"
675 +dependencies = [
676 + "napi",
677 + "napi-build",
678 + "napi-derive",
679 + "react_diagnostics",
680 + "react_estree",
681 + "react_hermes_parser",
682 + "react_semantic_analysis",
683 + "serde_json",
684 +]
685 +
686 +[[package]]
687 +name = "react_optimization"
688 +version = "0.1.0"
689 +dependencies = [
690 + "indexmap",
691 + "miette",
692 + "react_build_hir",
693 + "react_diagnostics",
694 + "react_estree",
695 + "react_hir",
696 + "react_ssa",
697 + "react_utils",
698 + "thiserror",
699 +]
700 +
701 +[[package]]
702 +name = "react_reactive_ir"
703 +version = "0.1.0"
704 +dependencies = [
705 + "react_hir",
706 +]
707 +
708 +[[package]]
709 +name = "react_semantic_analysis"
710 +version = "0.1.0"
711 +dependencies = [
712 + "indexmap",
713 + "insta",
714 + "miette",
715 + "react_diagnostics",
716 + "react_estree",
717 + "react_hermes_parser",
718 + "react_utils",
719 + "serde_json",
720 +]
721 +
722 +[[package]]
723 +name = "react_ssa"
724 +version = "0.1.0"
725 +dependencies = [
726 + "indexmap",
727 + "miette",
728 + "react_diagnostics",
729 + "react_hir",
730 + "react_utils",
731 + "thiserror",
732 +]
733 +
734 +[[package]]
735 +name = "react_utils"
736 +version = "0.1.0"
737 +dependencies = [
738 + "stacker",
739 +]
740 +
741 [[package]]
742 name = "regex"
743 version = "1.8.4"
compiler/Cargo.toml
+12 -12
@@ -13,18 +13,18 @@ repository = "https://github.com/facebook/react-forget"
13
14 [workspace.dependencies]
15 # workspace crates
16 -forget_build_hir = { path = "crates/forget_build_hir" }
17 -forget_diagnostics = { path = "crates/forget_diagnostics" }
18 -forget_estree = { path = "crates/forget_estree" }
19 -forget_estree_codegen = { path = "crates/forget_estree_codegen" }
20 -forget_fixtures = { path = "crates/forget_fixtures" }
21 -forget_hermes_parser = { path = "crates/forget_hermes_parser" }
22 -forget_hir = { path = "crates/forget_hir" }
23 -forget_optimization = { path = "crates/forget_optimization" }
24 -forget_reactive_ir = { path = "crates/forget_reactive_ir" }
25 -forget_semantic_analysis = { path = "crates/forget_semantic_analysis" }
26 -forget_ssa = { path = "crates/forget_ssa" }
27 -forget_utils = { path = "crates/forget_utils" }
16 +react_build_hir = { path = "crates/react_build_hir" }
17 +react_diagnostics = { path = "crates/react_diagnostics" }
18 +react_estree = { path = "crates/react_estree" }
19 +react_estree_codegen = { path = "crates/react_estree_codegen" }
20 +react_fixtures = { path = "crates/react_fixtures" }
21 +react_hermes_parser = { path = "crates/react_hermes_parser" }
22 +react_hir = { path = "crates/react_hir" }
23 +react_optimization = { path = "crates/react_optimization" }
24 +react_reactive_ir = { path = "crates/react_reactive_ir" }
25 +react_semantic_analysis = { path = "crates/react_semantic_analysis" }
26 +react_ssa = { path = "crates/react_ssa" }
27 +react_utils = { path = "crates/react_utils" }
28
29 # dependencies
30 indexmap = { version = "2.0.0", features = ["serde"] }
compiler/README.md
+5 -5
@@ -62,7 +62,7 @@ new_dep = { version = "x.y.z" }
62 Then reference it from your crate as follows:
63
64 ```
65 -// crates/forget_foo/Cargo.toml
65 +// crates/react_foo/Cargo.toml
66 [dependencies]
67 ...
68 new_dep = { workspace = true }
@@ -77,7 +77,7 @@ passes depend on each other in the sense that they often must run in a certain o
77 so they can generally be split into crates of similar types of passes, so that those crates can compile in parallel.
78
79 As a rule of thumb, add crates at roughly the granularity of our existing top-level folds. If you have some one-off utility code that
80 -doesn't fit neatly in a crate, add it to `forget_utils` rather than add a one-off crate for it.
80 +doesn't fit neatly in a crate, add it to `react_utils` rather than add a one-off crate for it.
81
82 ## Running Tests
83
@@ -87,15 +87,15 @@ Run all tests with the following from the root directory:
87 cargo test
88 ```
89
90 -The majority of our tests will (should) live in the `forget_fixtures` crate, which is a test-only crate that runs compilation end-to-end with snapshot
90 +The majority of our tests will (should) live in the `react_fixtures` crate, which is a test-only crate that runs compilation end-to-end with snapshot
91 tests. To run just these tests use:
92
93 ```
94 # quiet version
95 -cargo test -p forget_fixtures
95 +cargo test -p react_fixtures
96
97 # without suppressing stdout/stderr output
98 -cargo test -p forget_fixtures -- --nocapture
98 +cargo test -p react_fixtures -- --nocapture
99 ```
100
101 Another hint is that VSCode will show a "Run test" option if you hover over a test in the source code, this lets you run a single test easily.
compiler/crates/forget_build_hir/README.md deleted
-3
@@ -1,3 +0,0 @@
1 -# Build-HIR
2 -
3 -This crate converts from `forget_estree` into Forget's HIR format as the first phase of compilation.
\ No newline at end of file
compiler/crates/forget_estree/README.md deleted
-17
@@ -1,17 +0,0 @@
1 -# forget_estree
2 -
3 -This crate is a Rust representation of the [ESTree format](https://github.com/estree/estree/tree/master) and
4 -popular extenions including JSX and (eventually) Flow and TypeScript.
5 -
6 -This crate is intended as the main interchange format with outside code. A typical integration with Forget
7 -will look as follows:
8 -
9 -1. Host Compiler parses into the host AST format.
10 -2. Host Compiler converts into `forget_estree`.
11 -3. Host Compiler invokes Forget to compile the input, which (conceptually)
12 - returns the resulting code in `forget_estree` format.
13 -4. Host Compiler convert back from `forget_estree` to its host AST format.
14 -
15 -Because Forget is intended to support JavaScript-based toolchains, `forget_estree` is designed to support
16 -accurate serialization to/from estree-compatible JSON. We may also support the Babel AST format
17 -(a variant of ESTree) as well, depending on demand.
\ No newline at end of file
compiler/crates/forget_estree/build.rs deleted
-13
@@ -1,13 +0,0 @@
1 -use forget_estree_codegen::estree;
2 -
3 -// Example custom build script.
4 -fn main() {
5 - // Re-run if the codegen files change
6 - println!("cargo:rerun-if-changed=../forget_estree_codegen/src/codegen.rs");
7 - println!("cargo:rerun-if-changed=../forget_estree_codegen/src/lib.rs");
8 - println!("cargo:rerun-if-changed=../forget_estree_codegen/src/ecmascript.json");
9 - println!("cargo:rerun-if-changed=../forget_estree_codegen");
10 -
11 - let src = estree();
12 - std::fs::write("src/generated.rs", src).unwrap();
13 -}
compiler/crates/forget_estree_codegen/README.md deleted
-4
@@ -1,4 +0,0 @@
1 -# forget_estree_codegen
2 -
3 -This crate is a build dependency for `forget_estree`, and contains codegen logic to produce Rust code to describe the ESTree format
4 -given a JSON schema.
\ No newline at end of file
compiler/crates/forget_hermes_parser/build.rs deleted
-13
@@ -1,13 +0,0 @@
1 -use forget_estree_codegen::estree_hermes;
2 -
3 -// Example custom build script.
4 -fn main() {
5 - // Re-run if the codegen files change
6 - println!("cargo:rerun-if-changed=../forget_estree_codegen/src/codegen.rs");
7 - println!("cargo:rerun-if-changed=../forget_estree_codegen/src/lib.rs");
8 - println!("cargo:rerun-if-changed=../forget_estree_codegen/src/ecmascript.json");
9 - println!("cargo:rerun-if-changed=../forget_estree_codegen");
10 -
11 - let src = estree_hermes();
12 - std::fs::write("src/generated.rs", src).unwrap();
13 -}
compiler/crates/forget_ssa/README.md deleted
-3
@@ -1,3 +0,0 @@
1 -# forget_ssa
2 -
3 -This crate handles conversion to/from SSA and normal form. This includes a pass to eliminate redundant phi nodes in SSA form.
\ No newline at end of file
compiler/crates/react_build_hir/Cargo.toml renamed
+5 -5
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_build_hir"
2 +name = "react_build_hir"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -13,9 +13,9 @@ repository.workspace = true
13 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
15 [dependencies]
16 -forget_hir = { workspace = true }
17 -forget_estree = { workspace = true}
16 +react_hir = { workspace = true }
17 +react_estree = { workspace = true}
18 indexmap = { workspace = true }
19 -forget_diagnostics = { workspace = true }
20 -forget_semantic_analysis = { workspace = true }
19 +react_diagnostics = { workspace = true }
20 +react_semantic_analysis = { workspace = true }
21 thiserror = { workspace = true }
compiler/crates/react_build_hir/README.md new
+3
@@ -0,0 +1,3 @@
1 +# Build-HIR
2 +
3 +This crate converts from `react_estree` into React Compiler's HIR format as the first phase of compilation.
\ No newline at end of file
compiler/crates/react_build_hir/src/build.rs renamed
+41 -41
@@ -1,12 +1,12 @@
1 use std::collections::HashSet;
2
3 -use forget_diagnostics::Diagnostic;
4 -use forget_estree::{
3 +use react_diagnostics::Diagnostic;
4 +use react_estree::{
5 AssignmentPropertyOrRestElement, AssignmentTarget, BlockStatement, Expression,
6 ExpressionOrSpread, ExpressionOrSuper, ForInit, Function, IntoFunction, JsValue, Pattern,
7 Statement, VariableDeclaration, VariableDeclarationKind,
8 };
9 -use forget_hir::{
9 +use react_hir::{
10 ArrayDestructureItem, BlockKind, BranchTerminal, Destructure, DestructurePattern, Environment,
11 ForTerminal, GotoKind, Identifier, IdentifierOperand, InstructionKind, InstructionValue,
12 JSXAttribute, JSXElement, LValue, LoadGlobal, LoadLocal, ObjectDestructureItem,
@@ -23,7 +23,7 @@ use crate::error::BuildHIRError;
23 ///
24 /// Failures generally include nonsensical input (`delete 1`) or syntax
25 /// that is not yet supported.
26 -pub fn build(env: &Environment, fun: &Function) -> Result<Box<forget_hir::Function>, Diagnostic> {
26 +pub fn build(env: &Environment, fun: &Function) -> Result<Box<react_hir::Function>, Diagnostic> {
27 let mut builder = Builder::new(env);
28
29 let mut params = Vec::with_capacity(fun.params.len());
@@ -48,10 +48,10 @@ pub fn build(env: &Environment, fun: &Function) -> Result<Box<forget_hir::Functi
48 }
49
50 match &fun.body {
51 - Some(forget_estree::FunctionBody::BlockStatement(body)) => {
51 + Some(react_estree::FunctionBody::BlockStatement(body)) => {
52 lower_block_statement(env, &mut builder, body)?
53 }
54 - Some(forget_estree::FunctionBody::Expression(body)) => {
54 + Some(react_estree::FunctionBody::Expression(body)) => {
55 lower_expression(env, &mut builder, body)?;
56 }
57 None => {
@@ -65,18 +65,18 @@ pub fn build(env: &Environment, fun: &Function) -> Result<Box<forget_hir::Functi
65 // In case the function did not explicitly return, terminate the final
66 // block with an explicit `return undefined`. If the function *did* return,
67 // this will be unreachable and get pruned later.
68 - let implicit_return_value = builder.push(InstructionValue::Primitive(forget_hir::Primitive {
68 + let implicit_return_value = builder.push(InstructionValue::Primitive(react_hir::Primitive {
69 value: JsValue::Undefined,
70 }));
71 builder.terminate(
72 - TerminalValue::Return(forget_hir::ReturnTerminal {
72 + TerminalValue::Return(react_hir::ReturnTerminal {
73 value: implicit_return_value,
74 }),
75 - forget_hir::BlockKind::Block,
75 + react_hir::BlockKind::Block,
76 );
77
78 let body = builder.build()?;
79 - Ok(Box::new(forget_hir::Function {
79 + Ok(Box::new(react_hir::Function {
80 id: fun.id.as_ref().map(|id| id.name.clone()),
81 body,
82 params,
@@ -113,7 +113,7 @@ fn lower_statement(
113 Statement::BreakStatement(stmt) => {
114 let block = builder.resolve_break(stmt.label.as_ref())?;
115 builder.terminate(
116 - TerminalValue::Goto(forget_hir::GotoTerminal {
116 + TerminalValue::Goto(react_hir::GotoTerminal {
117 block,
118 kind: GotoKind::Break,
119 }),
@@ -123,7 +123,7 @@ fn lower_statement(
123 Statement::ContinueStatement(stmt) => {
124 let block = builder.resolve_continue(stmt.label.as_ref())?;
125 builder.terminate(
126 - TerminalValue::Goto(forget_hir::GotoTerminal {
126 + TerminalValue::Goto(react_hir::GotoTerminal {
127 block,
128 kind: GotoKind::Continue,
129 }),
@@ -133,12 +133,12 @@ fn lower_statement(
133 Statement::ReturnStatement(stmt) => {
134 let value = match &stmt.argument {
135 Some(argument) => lower_expression(env, builder, argument)?,
136 - None => builder.push(InstructionValue::Primitive(forget_hir::Primitive {
136 + None => builder.push(InstructionValue::Primitive(react_hir::Primitive {
137 value: JsValue::Undefined,
138 })),
139 };
140 builder.terminate(
141 - TerminalValue::Return(forget_hir::ReturnTerminal { value }),
141 + TerminalValue::Return(react_hir::ReturnTerminal { value }),
142 BlockKind::Block,
143 );
144 }
@@ -158,7 +158,7 @@ fn lower_statement(
158
159 let consequent_block = builder.enter(BlockKind::Block, |builder| {
160 lower_statement(env, builder, &stmt.consequent, None)?;
161 - Ok(TerminalValue::Goto(forget_hir::GotoTerminal {
161 + Ok(TerminalValue::Goto(react_hir::GotoTerminal {
162 block: fallthrough_block.id,
163 kind: GotoKind::Break,
164 }))
@@ -168,14 +168,14 @@ fn lower_statement(
168 if let Some(alternate) = &stmt.alternate {
169 lower_statement(env, builder, alternate, None)?;
170 }
171 - Ok(TerminalValue::Goto(forget_hir::GotoTerminal {
171 + Ok(TerminalValue::Goto(react_hir::GotoTerminal {
172 block: fallthrough_block.id,
173 kind: GotoKind::Break,
174 }))
175 })?;
176
177 let test = lower_expression(env, builder, &stmt.test)?;
178 - let terminal = TerminalValue::If(forget_hir::IfTerminal {
178 + let terminal = TerminalValue::If(react_hir::IfTerminal {
179 test,
180 consequent: consequent_block,
181 alternate: alternate_block,
@@ -193,7 +193,7 @@ fn lower_statement(
193 let init_block = builder.enter(BlockKind::Loop, |builder| {
194 if let Some(ForInit::VariableDeclaration(decl)) = &stmt.init {
195 lower_variable_declaration(env, builder, decl)?;
196 - Ok(TerminalValue::Goto(forget_hir::GotoTerminal {
196 + Ok(TerminalValue::Goto(react_hir::GotoTerminal {
197 block: test_block.id,
198 kind: GotoKind::Break,
199 }))
@@ -211,7 +211,7 @@ fn lower_statement(
211 .map(|update| {
212 builder.enter(BlockKind::Loop, |builder| {
213 lower_expression(env, builder, update)?;
214 - Ok(TerminalValue::Goto(forget_hir::GotoTerminal {
214 + Ok(TerminalValue::Goto(react_hir::GotoTerminal {
215 block: test_block.id,
216 kind: GotoKind::Break,
217 }))
@@ -227,7 +227,7 @@ fn lower_statement(
227 };
228 builder.enter_loop(loop_, |builder| {
229 lower_statement(env, builder, &stmt.body, None)?;
230 - Ok(TerminalValue::Goto(forget_hir::GotoTerminal {
230 + Ok(TerminalValue::Goto(react_hir::GotoTerminal {
231 block: update_block.unwrap_or(test_block.id),
232 kind: GotoKind::Continue,
233 }))
@@ -287,7 +287,7 @@ fn lower_variable_declaration(
287 Pattern::Identifier(id) => {
288 let identifier = env.resolve_variable_declaration(id.as_ref(), &id.name);
289 if let Some(identifier) = identifier {
290 - builder.push(InstructionValue::DeclareLocal(forget_hir::DeclareLocal {
290 + builder.push(InstructionValue::DeclareLocal(react_hir::DeclareLocal {
291 lvalue: LValue {
292 identifier: IdentifierOperand {
293 identifier,
@@ -339,40 +339,40 @@ fn lower_expression(
339 })
340 }
341 }
342 - Expression::Literal(expr) => InstructionValue::Primitive(forget_hir::Primitive {
342 + Expression::Literal(expr) => InstructionValue::Primitive(react_hir::Primitive {
343 value: expr.value.clone(),
344 }),
345 - Expression::NumericLiteral(expr) => InstructionValue::Primitive(forget_hir::Primitive {
345 + Expression::NumericLiteral(expr) => InstructionValue::Primitive(react_hir::Primitive {
346 value: JsValue::Number(expr.value),
347 }),
348 - Expression::BooleanLiteral(expr) => InstructionValue::Primitive(forget_hir::Primitive {
348 + Expression::BooleanLiteral(expr) => InstructionValue::Primitive(react_hir::Primitive {
349 value: JsValue::Boolean(expr.value),
350 }),
351 - Expression::StringLiteral(expr) => InstructionValue::Primitive(forget_hir::Primitive {
351 + Expression::StringLiteral(expr) => InstructionValue::Primitive(react_hir::Primitive {
352 value: JsValue::String(expr.value.clone()),
353 }),
354 - Expression::NullLiteral(_expr) => InstructionValue::Primitive(forget_hir::Primitive {
354 + Expression::NullLiteral(_expr) => InstructionValue::Primitive(react_hir::Primitive {
355 value: JsValue::Null,
356 }),
357 Expression::ArrayExpression(expr) => {
358 let mut elements = Vec::with_capacity(expr.elements.len());
359 for expr in &expr.elements {
360 let element = match expr {
361 - Some(forget_estree::ExpressionOrSpread::SpreadElement(expr)) => Some(
361 + Some(react_estree::ExpressionOrSpread::SpreadElement(expr)) => Some(
362 PlaceOrSpread::Spread(lower_expression(env, builder, &expr.argument)?),
363 ),
364 - Some(forget_estree::ExpressionOrSpread::Expression(expr)) => {
364 + Some(react_estree::ExpressionOrSpread::Expression(expr)) => {
365 Some(PlaceOrSpread::Place(lower_expression(env, builder, expr)?))
366 }
367 None => None,
368 };
369 elements.push(element);
370 }
371 - InstructionValue::Array(forget_hir::Array { elements })
371 + InstructionValue::Array(react_hir::Array { elements })
372 }
373
374 Expression::AssignmentExpression(expr) => match expr.operator {
375 - forget_estree::AssignmentOperator::Equals => {
375 + react_estree::AssignmentOperator::Equals => {
376 let right = lower_expression(env, builder, &expr.right)?;
377 return lower_assignment(
378 env,
@@ -388,7 +388,7 @@ fn lower_expression(
388 Expression::BinaryExpression(expr) => {
389 let left = lower_expression(env, builder, &expr.left)?;
390 let right = lower_expression(env, builder, &expr.right)?;
391 - InstructionValue::Binary(forget_hir::Binary {
391 + InstructionValue::Binary(react_hir::Binary {
392 left,
393 operator: expr.operator,
394 right,
@@ -420,7 +420,7 @@ fn lower_expression(
420
421 let callee = lower_expression(env, builder, callee_expr)?;
422 let arguments = lower_arguments(env, builder, &expr.arguments)?;
423 - InstructionValue::Call(forget_hir::Call { callee, arguments })
423 + InstructionValue::Call(react_hir::Call { callee, arguments })
424 }
425
426 Expression::JSXElement(expr) => {
@@ -440,10 +440,10 @@ fn lower_arguments(
440 let mut arguments = Vec::with_capacity(args.len());
441 for arg in args {
442 let element = match arg {
443 - forget_estree::ExpressionOrSpread::SpreadElement(arg) => {
443 + react_estree::ExpressionOrSpread::SpreadElement(arg) => {
444 PlaceOrSpread::Spread(lower_expression(env, builder, &arg.argument)?)
445 }
446 - forget_estree::ExpressionOrSpread::Expression(arg) => {
446 + react_estree::ExpressionOrSpread::Expression(arg) => {
447 PlaceOrSpread::Place(lower_expression(env, builder, arg)?)
448 }
449 };
@@ -456,7 +456,7 @@ fn lower_function<T: IntoFunction>(
456 env: &Environment,
457 _builder: &mut Builder,
458 function: &T,
459 -) -> Result<forget_hir::FunctionExpression, Diagnostic> {
459 +) -> Result<react_hir::FunctionExpression, Diagnostic> {
460 let context_identifiers = get_context_identifiers(env, function);
461 let mut context = Vec::new();
462 let mut seen = HashSet::new();
@@ -473,7 +473,7 @@ fn lower_function<T: IntoFunction>(
473 }
474 let mut fun = build(env, function.function())?;
475 fun.context = context;
476 - Ok(forget_hir::FunctionExpression {
476 + Ok(react_hir::FunctionExpression {
477 // TODO: collect dependencies!
478 dependencies: Default::default(),
479 lowered_function: fun,
@@ -483,7 +483,7 @@ fn lower_function<T: IntoFunction>(
483 fn lower_jsx_element(
484 env: &Environment,
485 builder: &mut Builder,
486 - expr: &forget_estree::JSXElement,
486 + expr: &react_estree::JSXElement,
487 ) -> Result<JSXElement, Diagnostic> {
488 let props: Result<Vec<JSXAttribute>, Diagnostic> = expr
489 .opening_element
@@ -516,7 +516,7 @@ fn lower_jsx_element(
516 fn lower_jsx_attribute(
517 _env: &Environment,
518 _builder: &mut Builder,
519 - _attr: &forget_estree::JSXAttributeOrSpread,
519 + _attr: &react_estree::JSXAttributeOrSpread,
520 ) -> Result<JSXAttribute, Diagnostic> {
521 todo!("lower jsx attribute")
522 }
@@ -524,7 +524,7 @@ fn lower_jsx_attribute(
524 fn lower_jsx_child(
525 _env: &Environment,
526 _builder: &mut Builder,
527 - _child: &forget_estree::JSXChildItem,
527 + _child: &react_estree::JSXChildItem,
528 ) -> Result<IdentifierOperand, Diagnostic> {
529 todo!("lower jsx child")
530 }
@@ -555,7 +555,7 @@ fn lower_assignment_pattern(
555 Ok(match lvalue {
556 Pattern::Identifier(lvalue) => {
557 let identifier = lower_identifier_for_assignment(env, builder, kind, lvalue)?;
558 - builder.push(InstructionValue::StoreLocal(forget_hir::StoreLocal {
558 + builder.push(InstructionValue::StoreLocal(react_hir::StoreLocal {
559 lvalue: LValue { identifier, kind },
560 value,
561 }))
@@ -709,7 +709,7 @@ fn lower_identifier_for_assignment(
709 env: &Environment,
710 _builder: &mut Builder,
711 kind: InstructionKind,
712 - node: &forget_estree::Identifier,
712 + node: &react_estree::Identifier,
713 ) -> Result<IdentifierOperand, Diagnostic> {
714 match kind {
715 InstructionKind::Reassign => {
compiler/crates/react_build_hir/src/builder.rs renamed
+7 -7
@@ -1,8 +1,8 @@
1 use std::cell::RefCell;
2 use std::rc::Rc;
3
4 -use forget_diagnostics::Diagnostic;
5 -use forget_hir::{
4 +use react_diagnostics::Diagnostic;
5 +use react_hir::{
6 initialize_hir, BasicBlock, BlockId, BlockKind, Blocks, Environment, GotoKind, IdentifierData,
7 IdentifierOperand, InstrIx, Instruction, InstructionIdGenerator, InstructionValue, Terminal,
8 TerminalValue, Type, HIR,
@@ -191,7 +191,7 @@ impl<'e> Builder<'e> {
191 Err(error) => (
192 Err(error),
193 // TODO: add a `Terminal::Error` variant
194 - TerminalValue::Goto(forget_hir::GotoTerminal {
194 + TerminalValue::Goto(react_hir::GotoTerminal {
195 block: current.id,
196 kind: GotoKind::Break,
197 }),
@@ -233,8 +233,8 @@ impl<'e> Builder<'e> {
233 /// we synthesize a temporary identifier to store the possibly-missing value
234 /// into, and emit a later StoreLocal for the original identifier
235 #[allow(dead_code)]
236 - pub(crate) fn make_temporary(&self) -> forget_hir::Identifier {
237 - forget_hir::Identifier {
236 + pub(crate) fn make_temporary(&self) -> react_hir::Identifier {
237 + react_hir::Identifier {
238 id: self.environment.next_identifier_id(),
239 name: None,
240 data: Rc::new(RefCell::new(IdentifierData {
@@ -250,7 +250,7 @@ impl<'e> Builder<'e> {
250 /// provided but cannot be resolved.
251 pub(crate) fn resolve_break(
252 &self,
253 - label: Option<&forget_estree::Identifier>,
253 + label: Option<&react_estree::Identifier>,
254 ) -> Result<BlockId, Diagnostic> {
255 for scope in self.scopes.iter().rev() {
256 match (label, scope.label()) {
@@ -275,7 +275,7 @@ impl<'e> Builder<'e> {
275 /// provided but cannot be resolved.
276 pub(crate) fn resolve_continue(
277 &self,
278 - label: Option<&forget_estree::Identifier>,
278 + label: Option<&react_estree::Identifier>,
279 ) -> Result<BlockId, Diagnostic> {
280 for scope in self.scopes.iter().rev() {
281 match scope {
compiler/crates/react_build_hir/src/context.rs renamed
+3 -3
@@ -1,8 +1,8 @@
1 use std::collections::HashSet;
2
3 -use forget_estree::IntoFunction;
4 -use forget_hir::Environment;
5 -use forget_semantic_analysis::{DeclarationId, ScopeView};
3 +use react_estree::IntoFunction;
4 +use react_hir::Environment;
5 +use react_semantic_analysis::{DeclarationId, ScopeView};
6
7 pub(crate) fn get_context_identifiers<T: IntoFunction>(
8 env: &Environment,
compiler/crates/react_build_hir/src/error.rs renamed
compiler/crates/react_build_hir/src/lib.rs renamed
compiler/crates/react_diagnostics/Cargo.toml renamed
+4 -4
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_diagnostics"
2 +name = "react_diagnostics"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -15,9 +15,9 @@ repository.workspace = true
15 [dependencies]
16 # TODO: extract SourceRange into a separate crate so that
17 # we don't depend on full estree here
18 -forget_estree = { workspace = true }
19 -# TODO: consider extracting a separate forget_miette crate which does
20 -# the translation from forget_diagnostics::Diagnostic to miette::Diagnostic
18 +react_estree = { workspace = true }
19 +# TODO: consider extracting a separate react_miette crate which does
20 +# the translation from react_diagnostics::Diagnostic to miette::Diagnostic
21 miette = { workspace = true }
22 thiserror = { workspace = true }
23 static_assertions = { workspace = true }
\ No newline at end of file
compiler/crates/react_diagnostics/README.md renamed
+3 -3
@@ -1,10 +1,10 @@
1 -# forget_diagnostics
1 +# react_diagnostics
2
3 Types for representing compiler diagnostics. Includes a general-purpose representation
4 of diagnostics with related information which can be converted into `miette::Diagnostic` to exploit miette's pretty printing of errors.
5
6 Unlike miette, lsp_types, and other diagnostic libraries, the error severities match
7 -Forget's semantics. The intent is that a given Forget diagnostic may be displayed as
7 +React Compiler's semantics. The intent is that a given diagnostic may be displayed as
8 an error, warning, or not displayed at all depending on the context in which the
9 -compiler is being used. For example, an ESLint plugin powered by Forget may ignore
9 +compiler is being used. For example, an ESLint plugin powered by React Compiler may ignore
10 InvalidSyntax diagnostics, whereas the regular compiler may report them as errors.
compiler/crates/react_diagnostics/src/diagnostic.rs renamed
+2 -2
@@ -1,8 +1,8 @@
1 use std::error::Error;
2 use std::fmt::{Debug, Display, Write};
3
4 -use forget_estree::SourceRange;
4 use miette::SourceSpan;
5 +use react_estree::SourceRange;
6 use static_assertions::assert_impl_all;
7 use thiserror::Error;
8
@@ -64,7 +64,7 @@ pub enum DiagnosticSeverity {
64 /// - `location` is different from LSP in that it's a file + span instead of
65 /// just a span.
66 /// - Unused fields are omitted.
67 -/// - Severity is a custom enum that represents Forget-specific categories of error.
67 +/// - Severity is a custom enum that represents React-specific categories of error.
68 /// The translation to an LSP error/warning/etc depends on compiler settings and
69 /// invocation context.
70 #[derive(Debug)]
compiler/crates/react_diagnostics/src/lib.rs renamed
compiler/crates/react_estree/Cargo.toml renamed
+2 -2
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_estree"
2 +name = "react_estree"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -19,4 +19,4 @@ serde_json = { workspace = true }
19 static_assertions = { workspace = true }
20
21 [build-dependencies]
22 -forget_estree_codegen = { workspace = true }
\ No newline at end of file
22 +react_estree_codegen = { workspace = true }
\ No newline at end of file
compiler/crates/react_estree/README.md new
+17
@@ -0,0 +1,17 @@
1 +# react_estree
2 +
3 +This crate is a Rust representation of the [ESTree format](https://github.com/estree/estree/tree/master) and
4 +popular extenions including JSX and (eventually) Flow and TypeScript.
5 +
6 +This crate is intended as the main interchange format with outside code. A typical integration with React Compiler
7 +will look as follows:
8 +
9 +1. Host Compiler parses into the host AST format.
10 +2. Host Compiler converts into `react_estree`.
11 +3. Host Compiler invokes React Compiler to compile the input, which (conceptually)
12 + returns the resulting code in `react_estree` format.
13 +4. Host Compiler convert back from `react_estree` to its host AST format.
14 +
15 +Because React Compiler is intended to support JavaScript-based toolchains, `react_estree` is designed to support
16 +accurate serialization to/from estree-compatible JSON. We may also support the Babel AST format
17 +(a variant of ESTree) as well, depending on demand.
\ No newline at end of file
compiler/crates/react_estree/build.rs new
+13
@@ -0,0 +1,13 @@
1 +use react_estree_codegen::estree;
2 +
3 +// Example custom build script.
4 +fn main() {
5 + // Re-run if the codegen files change
6 + println!("cargo:rerun-if-changed=../react_estree_codegen/src/codegen.rs");
7 + println!("cargo:rerun-if-changed=../react_estree_codegen/src/lib.rs");
8 + println!("cargo:rerun-if-changed=../react_estree_codegen/src/ecmascript.json");
9 + println!("cargo:rerun-if-changed=../react_estree_codegen");
10 +
11 + let src = estree();
12 + std::fs::write("src/generated.rs", src).unwrap();
13 +}
compiler/crates/react_estree/src/binding.rs renamed
compiler/crates/react_estree/src/fixtures/for-statement.json renamed
compiler/crates/react_estree/src/fixtures/import.json renamed
compiler/crates/react_estree/src/fixtures/simple.json renamed
compiler/crates/react_estree/src/fixtures/test.json renamed
compiler/crates/react_estree/src/generated.rs renamed
compiler/crates/react_estree/src/generated_extensions.rs renamed
compiler/crates/react_estree/src/js_value.rs renamed
compiler/crates/react_estree/src/lib.rs renamed
compiler/crates/react_estree/src/range.rs renamed
compiler/crates/react_estree/src/snapshots/forget_estree__tests__fixtures@for-statement.json.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_estree/src/lib.rs
2 +source: crates/react_estree/src/lib.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 -input_file: crates/forget_estree/src/fixtures/for-statement.json
4 +input_file: crates/react_estree/src/fixtures/for-statement.json
5 ---
6 Input:
7 {
compiler/crates/react_estree/src/snapshots/forget_estree__tests__fixtures@import.json.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_estree/src/lib.rs
2 +source: crates/react_estree/src/lib.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 -input_file: crates/forget_estree/src/fixtures/import.json
4 +input_file: crates/react_estree/src/fixtures/import.json
5 ---
6 Input:
7 {
compiler/crates/react_estree/src/snapshots/forget_estree__tests__fixtures@simple.json.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_estree/src/lib.rs
2 +source: crates/react_estree/src/lib.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 -input_file: crates/forget_estree/src/fixtures/simple.json
4 +input_file: crates/react_estree/src/fixtures/simple.json
5 ---
6 Input:
7 {
compiler/crates/react_estree/src/snapshots/forget_estree__tests__fixtures@test.json.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_estree/src/lib.rs
2 +source: crates/react_estree/src/lib.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 -input_file: crates/forget_estree/src/fixtures/test.json
4 +input_file: crates/react_estree/src/fixtures/test.json
5 ---
6 Input:
7 {
compiler/crates/react_estree/src/snapshots/react_estree__tests__fixtures@for-statement.json.snap new
+1058
@@ -0,0 +1,1058 @@
1 +---
2 +source: crates/react_estree/src/lib.rs
3 +expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 +input_file: crates/react_estree/src/fixtures/for-statement.json
5 +---
6 +Input:
7 +{
8 + "type": "Program",
9 + "loc": {
10 + "source": null,
11 + "start": {
12 + "line": 1,
13 + "column": 0
14 + },
15 + "end": {
16 + "line": 7,
17 + "column": 1
18 + }
19 + },
20 + "body": [
21 + {
22 + "type": "FunctionDeclaration",
23 + "loc": {
24 + "source": null,
25 + "start": {
26 + "line": 1,
27 + "column": 0
28 + },
29 + "end": {
30 + "line": 7,
31 + "column": 1
32 + }
33 + },
34 + "id": {
35 + "type": "Identifier",
36 + "loc": {
37 + "source": null,
38 + "start": {
39 + "line": 1,
40 + "column": 9
41 + },
42 + "end": {
43 + "line": 1,
44 + "column": 18
45 + }
46 + },
47 + "name": "Component",
48 + "typeAnnotation": null,
49 + "optional": false,
50 + "range": [
51 + 9,
52 + 18
53 + ]
54 + },
55 + "params": [
56 + {
57 + "type": "Identifier",
58 + "loc": {
59 + "source": null,
60 + "start": {
61 + "line": 1,
62 + "column": 19
63 + },
64 + "end": {
65 + "line": 1,
66 + "column": 24
67 + }
68 + },
69 + "name": "props",
70 + "typeAnnotation": null,
71 + "optional": false,
72 + "range": [
73 + 19,
74 + 24
75 + ]
76 + }
77 + ],
78 + "body": {
79 + "type": "BlockStatement",
80 + "loc": {
81 + "source": null,
82 + "start": {
83 + "line": 1,
84 + "column": 26
85 + },
86 + "end": {
87 + "line": 7,
88 + "column": 1
89 + }
90 + },
91 + "body": [
92 + {
93 + "type": "VariableDeclaration",
94 + "loc": {
95 + "source": null,
96 + "start": {
97 + "line": 2,
98 + "column": 2
99 + },
100 + "end": {
101 + "line": 2,
102 + "column": 12
103 + }
104 + },
105 + "kind": "let",
106 + "declarations": [
107 + {
108 + "type": "VariableDeclarator",
109 + "loc": {
110 + "source": null,
111 + "start": {
112 + "line": 2,
113 + "column": 6
114 + },
115 + "end": {
116 + "line": 2,
117 + "column": 11
118 + }
119 + },
120 + "init": {
121 + "type": "Literal",
122 + "loc": {
123 + "source": null,
124 + "start": {
125 + "line": 2,
126 + "column": 10
127 + },
128 + "end": {
129 + "line": 2,
130 + "column": 11
131 + }
132 + },
133 + "value": 0,
134 + "range": [
135 + 38,
136 + 39
137 + ],
138 + "raw": "0"
139 + },
140 + "id": {
141 + "type": "Identifier",
142 + "loc": {
143 + "source": null,
144 + "start": {
145 + "line": 2,
146 + "column": 6
147 + },
148 + "end": {
149 + "line": 2,
150 + "column": 7
151 + }
152 + },
153 + "name": "x",
154 + "typeAnnotation": null,
155 + "optional": false,
156 + "range": [
157 + 34,
158 + 35
159 + ]
160 + },
161 + "range": [
162 + 34,
163 + 39
164 + ]
165 + }
166 + ],
167 + "range": [
168 + 30,
169 + 40
170 + ]
171 + },
172 + {
173 + "type": "ForStatement",
174 + "loc": {
175 + "source": null,
176 + "start": {
177 + "line": 3,
178 + "column": 2
179 + },
180 + "end": {
181 + "line": 5,
182 + "column": 3
183 + }
184 + },
185 + "init": {
186 + "type": "VariableDeclaration",
187 + "loc": {
188 + "source": null,
189 + "start": {
190 + "line": 3,
191 + "column": 7
192 + },
193 + "end": {
194 + "line": 3,
195 + "column": 16
196 + }
197 + },
198 + "kind": "let",
199 + "declarations": [
200 + {
201 + "type": "VariableDeclarator",
202 + "loc": {
203 + "source": null,
204 + "start": {
205 + "line": 3,
206 + "column": 11
207 + },
208 + "end": {
209 + "line": 3,
210 + "column": 16
211 + }
212 + },
213 + "init": {
214 + "type": "Literal",
215 + "loc": {
216 + "source": null,
217 + "start": {
218 + "line": 3,
219 + "column": 15
220 + },
221 + "end": {
222 + "line": 3,
223 + "column": 16
224 + }
225 + },
226 + "value": 0,
227 + "range": [
228 + 56,
229 + 57
230 + ],
231 + "raw": "0"
232 + },
233 + "id": {
234 + "type": "Identifier",
235 + "loc": {
236 + "source": null,
237 + "start": {
238 + "line": 3,
239 + "column": 11
240 + },
241 + "end": {
242 + "line": 3,
243 + "column": 12
244 + }
245 + },
246 + "name": "i",
247 + "typeAnnotation": null,
248 + "optional": false,
249 + "range": [
250 + 52,
251 + 53
252 + ]
253 + },
254 + "range": [
255 + 52,
256 + 57
257 + ]
258 + }
259 + ],
260 + "range": [
261 + 48,
262 + 57
263 + ]
264 + },
265 + "test": {
266 + "type": "BinaryExpression",
267 + "loc": {
268 + "source": null,
269 + "start": {
270 + "line": 3,
271 + "column": 18
272 + },
273 + "end": {
274 + "line": 3,
275 + "column": 24
276 + }
277 + },
278 + "left": {
279 + "type": "Identifier",
280 + "loc": {
281 + "source": null,
282 + "start": {
283 + "line": 3,
284 + "column": 18
285 + },
286 + "end": {
287 + "line": 3,
288 + "column": 19
289 + }
290 + },
291 + "name": "i",
292 + "typeAnnotation": null,
293 + "optional": false,
294 + "range": [
295 + 59,
296 + 60
297 + ]
298 + },
299 + "right": {
300 + "type": "Literal",
301 + "loc": {
302 + "source": null,
303 + "start": {
304 + "line": 3,
305 + "column": 22
306 + },
307 + "end": {
308 + "line": 3,
309 + "column": 24
310 + }
311 + },
312 + "value": 10,
313 + "range": [
314 + 63,
315 + 65
316 + ],
317 + "raw": "10"
318 + },
319 + "operator": "<",
320 + "range": [
321 + 59,
322 + 65
323 + ]
324 + },
325 + "update": {
326 + "type": "UpdateExpression",
327 + "loc": {
328 + "source": null,
329 + "start": {
330 + "line": 3,
331 + "column": 26
332 + },
333 + "end": {
334 + "line": 3,
335 + "column": 29
336 + }
337 + },
338 + "operator": "++",
339 + "argument": {
340 + "type": "Identifier",
341 + "loc": {
342 + "source": null,
343 + "start": {
344 + "line": 3,
345 + "column": 26
346 + },
347 + "end": {
348 + "line": 3,
349 + "column": 27
350 + }
351 + },
352 + "name": "i",
353 + "typeAnnotation": null,
354 + "optional": false,
355 + "range": [
356 + 67,
357 + 68
358 + ]
359 + },
360 + "prefix": false,
361 + "range": [
362 + 67,
363 + 70
364 + ]
365 + },
366 + "body": {
367 + "type": "BlockStatement",
368 + "loc": {
369 + "source": null,
370 + "start": {
371 + "line": 3,
372 + "column": 31
373 + },
374 + "end": {
375 + "line": 5,
376 + "column": 3
377 + }
378 + },
379 + "body": [
380 + {
381 + "type": "ExpressionStatement",
382 + "loc": {
383 + "source": null,
384 + "start": {
385 + "line": 4,
386 + "column": 4
387 + },
388 + "end": {
389 + "line": 4,
390 + "column": 11
391 + }
392 + },
393 + "expression": {
394 + "type": "AssignmentExpression",
395 + "loc": {
396 + "source": null,
397 + "start": {
398 + "line": 4,
399 + "column": 4
400 + },
401 + "end": {
402 + "line": 4,
403 + "column": 10
404 + }
405 + },
406 + "operator": "+=",
407 + "left": {
408 + "type": "Identifier",
409 + "loc": {
410 + "source": null,
411 + "start": {
412 + "line": 4,
413 + "column": 4
414 + },
415 + "end": {
416 + "line": 4,
417 + "column": 5
418 + }
419 + },
420 + "name": "x",
421 + "typeAnnotation": null,
422 + "optional": false,
423 + "range": [
424 + 78,
425 + 79
426 + ]
427 + },
428 + "right": {
429 + "type": "Identifier",
430 + "loc": {
431 + "source": null,
432 + "start": {
433 + "line": 4,
434 + "column": 9
435 + },
436 + "end": {
437 + "line": 4,
438 + "column": 10
439 + }
440 + },
441 + "name": "i",
442 + "typeAnnotation": null,
443 + "optional": false,
444 + "range": [
445 + 83,
446 + 84
447 + ]
448 + },
449 + "range": [
450 + 78,
451 + 84
452 + ]
453 + },
454 + "directive": null,
455 + "range": [
456 + 78,
457 + 85
458 + ]
459 + }
460 + ],
461 + "range": [
462 + 72,
463 + 89
464 + ]
465 + },
466 + "range": [
467 + 43,
468 + 89
469 + ]
470 + },
471 + {
472 + "type": "ReturnStatement",
473 + "loc": {
474 + "source": null,
475 + "start": {
476 + "line": 6,
477 + "column": 2
478 + },
479 + "end": {
480 + "line": 6,
481 + "column": 11
482 + }
483 + },
484 + "argument": {
485 + "type": "Identifier",
486 + "loc": {
487 + "source": null,
488 + "start": {
489 + "line": 6,
490 + "column": 9
491 + },
492 + "end": {
493 + "line": 6,
494 + "column": 10
495 + }
496 + },
497 + "name": "x",
498 + "typeAnnotation": null,
499 + "optional": false,
500 + "range": [
501 + 99,
502 + 100
503 + ]
504 + },
505 + "range": [
506 + 92,
507 + 101
508 + ]
509 + }
510 + ],
511 + "range": [
512 + 26,
513 + 103
514 + ]
515 + },
516 + "typeParameters": null,
517 + "returnType": null,
518 + "predicate": null,
519 + "generator": false,
520 + "async": false,
521 + "range": [
522 + 0,
523 + 103
524 + ]
525 + }
526 + ],
527 + "comments": [],
528 + "interpreter": null,
529 + "range": [
530 + 0,
531 + 103
532 + ],
533 + "sourceType": "script"
534 + }
535 +
536 +Output:
537 +{
538 + "type": "Program",
539 + "body": [
540 + {
541 + "type": "FunctionDeclaration",
542 + "id": {
543 + "type": "Identifier",
544 + "name": "Component",
545 + "typeAnnotation": null,
546 + "loc": {
547 + "source": null,
548 + "start": {
549 + "line": 1,
550 + "column": 9
551 + },
552 + "end": {
553 + "line": 1,
554 + "column": 18
555 + }
556 + },
557 + "range": [
558 + 9,
559 + 18
560 + ]
561 + },
562 + "params": [
563 + {
564 + "type": "Identifier",
565 + "name": "props",
566 + "typeAnnotation": null,
567 + "loc": {
568 + "source": null,
569 + "start": {
570 + "line": 1,
571 + "column": 19
572 + },
573 + "end": {
574 + "line": 1,
575 + "column": 24
576 + }
577 + },
578 + "range": [
579 + 19,
580 + 24
581 + ]
582 + }
583 + ],
584 + "body": {
585 + "type": "BlockStatement",
586 + "body": [
587 + {
588 + "type": "VariableDeclaration",
589 + "kind": "let",
590 + "declarations": [
591 + {
592 + "type": "VariableDeclarator",
593 + "id": {
594 + "type": "Identifier",
595 + "name": "x",
596 + "typeAnnotation": null,
597 + "loc": {
598 + "source": null,
599 + "start": {
600 + "line": 2,
601 + "column": 6
602 + },
603 + "end": {
604 + "line": 2,
605 + "column": 7
606 + }
607 + },
608 + "range": [
609 + 34,
610 + 35
611 + ]
612 + },
613 + "init": {
614 + "type": "Literal",
615 + "value": 0.0,
616 + "raw": "0",
617 + "regex": null,
618 + "bigint": null,
619 + "loc": {
620 + "source": null,
621 + "start": {
622 + "line": 2,
623 + "column": 10
624 + },
625 + "end": {
626 + "line": 2,
627 + "column": 11
628 + }
629 + },
630 + "range": [
631 + 38,
632 + 39
633 + ]
634 + },
635 + "loc": {
636 + "source": null,
637 + "start": {
638 + "line": 2,
639 + "column": 6
640 + },
641 + "end": {
642 + "line": 2,
643 + "column": 11
644 + }
645 + },
646 + "range": [
647 + 34,
648 + 39
649 + ]
650 + }
651 + ],
652 + "loc": {
653 + "source": null,
654 + "start": {
655 + "line": 2,
656 + "column": 2
657 + },
658 + "end": {
659 + "line": 2,
660 + "column": 12
661 + }
662 + },
663 + "range": [
664 + 30,
665 + 40
666 + ]
667 + },
668 + {
669 + "type": "ForStatement",
670 + "init": {
671 + "type": "VariableDeclaration",
672 + "kind": "let",
673 + "declarations": [
674 + {
675 + "type": "VariableDeclarator",
676 + "id": {
677 + "type": "Identifier",
678 + "name": "i",
679 + "typeAnnotation": null,
680 + "loc": {
681 + "source": null,
682 + "start": {
683 + "line": 3,
684 + "column": 11
685 + },
686 + "end": {
687 + "line": 3,
688 + "column": 12
689 + }
690 + },
691 + "range": [
692 + 52,
693 + 53
694 + ]
695 + },
696 + "init": {
697 + "type": "Literal",
698 + "value": 0.0,
699 + "raw": "0",
700 + "regex": null,
701 + "bigint": null,
702 + "loc": {
703 + "source": null,
704 + "start": {
705 + "line": 3,
706 + "column": 15
707 + },
708 + "end": {
709 + "line": 3,
710 + "column": 16
711 + }
712 + },
713 + "range": [
714 + 56,
715 + 57
716 + ]
717 + },
718 + "loc": {
719 + "source": null,
720 + "start": {
721 + "line": 3,
722 + "column": 11
723 + },
724 + "end": {
725 + "line": 3,
726 + "column": 16
727 + }
728 + },
729 + "range": [
730 + 52,
731 + 57
732 + ]
733 + }
734 + ],
735 + "loc": {
736 + "source": null,
737 + "start": {
738 + "line": 3,
739 + "column": 7
740 + },
741 + "end": {
742 + "line": 3,
743 + "column": 16
744 + }
745 + },
746 + "range": [
747 + 48,
748 + 57
749 + ]
750 + },
751 + "test": {
752 + "type": "BinaryExpression",
753 + "left": {
754 + "type": "Identifier",
755 + "name": "i",
756 + "typeAnnotation": null,
757 + "loc": {
758 + "source": null,
759 + "start": {
760 + "line": 3,
761 + "column": 18
762 + },
763 + "end": {
764 + "line": 3,
765 + "column": 19
766 + }
767 + },
768 + "range": [
769 + 59,
770 + 60
771 + ]
772 + },
773 + "operator": "<",
774 + "right": {
775 + "type": "Literal",
776 + "value": 10.0,
777 + "raw": "10",
778 + "regex": null,
779 + "bigint": null,
780 + "loc": {
781 + "source": null,
782 + "start": {
783 + "line": 3,
784 + "column": 22
785 + },
786 + "end": {
787 + "line": 3,
788 + "column": 24
789 + }
790 + },
791 + "range": [
792 + 63,
793 + 65
794 + ]
795 + },
796 + "loc": {
797 + "source": null,
798 + "start": {
799 + "line": 3,
800 + "column": 18
801 + },
802 + "end": {
803 + "line": 3,
804 + "column": 24
805 + }
806 + },
807 + "range": [
808 + 59,
809 + 65
810 + ]
811 + },
812 + "update": {
813 + "type": "UpdateExpression",
814 + "operator": "++",
815 + "argument": {
816 + "type": "Identifier",
817 + "name": "i",
818 + "typeAnnotation": null,
819 + "loc": {
820 + "source": null,
821 + "start": {
822 + "line": 3,
823 + "column": 26
824 + },
825 + "end": {
826 + "line": 3,
827 + "column": 27
828 + }
829 + },
830 + "range": [
831 + 67,
832 + 68
833 + ]
834 + },
835 + "prefix": false,
836 + "loc": {
837 + "source": null,
838 + "start": {
839 + "line": 3,
840 + "column": 26
841 + },
842 + "end": {
843 + "line": 3,
844 + "column": 29
845 + }
846 + },
847 + "range": [
848 + 67,
849 + 70
850 + ]
851 + },
852 + "body": {
853 + "type": "BlockStatement",
854 + "body": [
855 + {
856 + "type": "ExpressionStatement",
857 + "expression": {
858 + "type": "AssignmentExpression",
859 + "operator": "+=",
860 + "left": {
861 + "type": "Identifier",
862 + "name": "x",
863 + "typeAnnotation": null,
864 + "loc": {
865 + "source": null,
866 + "start": {
867 + "line": 4,
868 + "column": 4
869 + },
870 + "end": {
871 + "line": 4,
872 + "column": 5
873 + }
874 + },
875 + "range": [
876 + 78,
877 + 79
878 + ]
879 + },
880 + "right": {
881 + "type": "Identifier",
882 + "name": "i",
883 + "typeAnnotation": null,
884 + "loc": {
885 + "source": null,
886 + "start": {
887 + "line": 4,
888 + "column": 9
889 + },
890 + "end": {
891 + "line": 4,
892 + "column": 10
893 + }
894 + },
895 + "range": [
896 + 83,
897 + 84
898 + ]
899 + },
900 + "loc": {
901 + "source": null,
902 + "start": {
903 + "line": 4,
904 + "column": 4
905 + },
906 + "end": {
907 + "line": 4,
908 + "column": 10
909 + }
910 + },
911 + "range": [
912 + 78,
913 + 84
914 + ]
915 + },
916 + "directive": null,
917 + "loc": {
918 + "source": null,
919 + "start": {
920 + "line": 4,
921 + "column": 4
922 + },
923 + "end": {
924 + "line": 4,
925 + "column": 11
926 + }
927 + },
928 + "range": [
929 + 78,
930 + 85
931 + ]
932 + }
933 + ],
934 + "loc": {
935 + "source": null,
936 + "start": {
937 + "line": 3,
938 + "column": 31
939 + },
940 + "end": {
941 + "line": 5,
942 + "column": 3
943 + }
944 + },
945 + "range": [
946 + 72,
947 + 89
948 + ]
949 + },
950 + "loc": {
951 + "source": null,
952 + "start": {
953 + "line": 3,
954 + "column": 2
955 + },
956 + "end": {
957 + "line": 5,
958 + "column": 3
959 + }
960 + },
961 + "range": [
962 + 43,
963 + 89
964 + ]
965 + },
966 + {
967 + "type": "ReturnStatement",
968 + "argument": {
969 + "type": "Identifier",
970 + "name": "x",
971 + "typeAnnotation": null,
972 + "loc": {
973 + "source": null,
974 + "start": {
975 + "line": 6,
976 + "column": 9
977 + },
978 + "end": {
979 + "line": 6,
980 + "column": 10
981 + }
982 + },
983 + "range": [
984 + 99,
985 + 100
986 + ]
987 + },
988 + "loc": {
989 + "source": null,
990 + "start": {
991 + "line": 6,
992 + "column": 2
993 + },
994 + "end": {
995 + "line": 6,
996 + "column": 11
997 + }
998 + },
999 + "range": [
1000 + 92,
1001 + 101
1002 + ]
1003 + }
1004 + ],
1005 + "loc": {
1006 + "source": null,
1007 + "start": {
1008 + "line": 1,
1009 + "column": 26
1010 + },
1011 + "end": {
1012 + "line": 7,
1013 + "column": 1
1014 + }
1015 + },
1016 + "range": [
1017 + 26,
1018 + 103
1019 + ]
1020 + },
1021 + "generator": false,
1022 + "async": false,
1023 + "loc": null,
1024 + "range": null,
1025 + "loc": {
1026 + "source": null,
1027 + "start": {
1028 + "line": 1,
1029 + "column": 0
1030 + },
1031 + "end": {
1032 + "line": 7,
1033 + "column": 1
1034 + }
1035 + },
1036 + "range": [
1037 + 0,
1038 + 103
1039 + ]
1040 + }
1041 + ],
1042 + "sourceType": "script",
1043 + "loc": {
1044 + "source": null,
1045 + "start": {
1046 + "line": 1,
1047 + "column": 0
1048 + },
1049 + "end": {
1050 + "line": 7,
1051 + "column": 1
1052 + }
1053 + },
1054 + "range": [
1055 + 0,
1056 + 103
1057 + ]
1058 +}
compiler/crates/react_estree/src/snapshots/react_estree__tests__fixtures@import.json.snap new
+213
@@ -0,0 +1,213 @@
1 +---
2 +source: crates/react_estree/src/lib.rs
3 +expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 +input_file: crates/react_estree/src/fixtures/import.json
5 +---
6 +Input:
7 +{
8 + "type": "Program",
9 + "loc": {
10 + "source": null,
11 + "start": {
12 + "line": 1,
13 + "column": 0
14 + },
15 + "end": {
16 + "line": 1,
17 + "column": 26
18 + }
19 + },
20 + "body": [
21 + {
22 + "type": "ImportDeclaration",
23 + "loc": {
24 + "source": null,
25 + "start": {
26 + "line": 1,
27 + "column": 0
28 + },
29 + "end": {
30 + "line": 1,
31 + "column": 26
32 + }
33 + },
34 + "specifiers": [
35 + {
36 + "type": "ImportDefaultSpecifier",
37 + "loc": {
38 + "source": null,
39 + "start": {
40 + "line": 1,
41 + "column": 7
42 + },
43 + "end": {
44 + "line": 1,
45 + "column": 12
46 + }
47 + },
48 + "local": {
49 + "type": "Identifier",
50 + "loc": {
51 + "source": null,
52 + "start": {
53 + "line": 1,
54 + "column": 7
55 + },
56 + "end": {
57 + "line": 1,
58 + "column": 12
59 + }
60 + },
61 + "name": "React",
62 + "typeAnnotation": null,
63 + "optional": false,
64 + "range": [
65 + 7,
66 + 12
67 + ]
68 + },
69 + "range": [
70 + 7,
71 + 12
72 + ]
73 + }
74 + ],
75 + "source": {
76 + "type": "Literal",
77 + "loc": {
78 + "source": null,
79 + "start": {
80 + "line": 1,
81 + "column": 18
82 + },
83 + "end": {
84 + "line": 1,
85 + "column": 25
86 + }
87 + },
88 + "value": "react",
89 + "range": [
90 + 18,
91 + 25
92 + ],
93 + "raw": "'react'"
94 + },
95 + "attributes": [],
96 + "importKind": "value",
97 + "range": [
98 + 0,
99 + 26
100 + ]
101 + }
102 + ],
103 + "comments": [],
104 + "interpreter": null,
105 + "range": [
106 + 0,
107 + 26
108 + ],
109 + "sourceType": "module"
110 + }
111 +
112 +Output:
113 +{
114 + "type": "Program",
115 + "body": [
116 + {
117 + "type": "ImportDeclaration",
118 + "specifiers": [
119 + {
120 + "type": "ImportDefaultSpecifier",
121 + "local": {
122 + "type": "Identifier",
123 + "name": "React",
124 + "typeAnnotation": null,
125 + "loc": {
126 + "source": null,
127 + "start": {
128 + "line": 1,
129 + "column": 7
130 + },
131 + "end": {
132 + "line": 1,
133 + "column": 12
134 + }
135 + },
136 + "range": [
137 + 7,
138 + 12
139 + ]
140 + },
141 + "loc": {
142 + "source": null,
143 + "start": {
144 + "line": 1,
145 + "column": 7
146 + },
147 + "end": {
148 + "line": 1,
149 + "column": 12
150 + }
151 + },
152 + "range": [
153 + 7,
154 + 12
155 + ]
156 + }
157 + ],
158 + "source": {
159 + "type": "Literal",
160 + "value": "react",
161 + "raw": "'react'",
162 + "regex": null,
163 + "bigint": null,
164 + "loc": {
165 + "source": null,
166 + "start": {
167 + "line": 1,
168 + "column": 18
169 + },
170 + "end": {
171 + "line": 1,
172 + "column": 25
173 + }
174 + },
175 + "range": [
176 + 18,
177 + 25
178 + ]
179 + },
180 + "loc": {
181 + "source": null,
182 + "start": {
183 + "line": 1,
184 + "column": 0
185 + },
186 + "end": {
187 + "line": 1,
188 + "column": 26
189 + }
190 + },
191 + "range": [
192 + 0,
193 + 26
194 + ]
195 + }
196 + ],
197 + "sourceType": "module",
198 + "loc": {
199 + "source": null,
200 + "start": {
201 + "line": 1,
202 + "column": 0
203 + },
204 + "end": {
205 + "line": 1,
206 + "column": 26
207 + }
208 + },
209 + "range": [
210 + 0,
211 + 26
212 + ]
213 +}
compiler/crates/react_estree/src/snapshots/react_estree__tests__fixtures@simple.json.snap new
+379
@@ -0,0 +1,379 @@
1 +---
2 +source: crates/react_estree/src/lib.rs
3 +expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 +input_file: crates/react_estree/src/fixtures/simple.json
5 +---
6 +Input:
7 +{
8 + "type": "Program",
9 + "loc": {
10 + "source": null,
11 + "start": {
12 + "line": 1,
13 + "column": 0
14 + },
15 + "end": {
16 + "line": 3,
17 + "column": 1
18 + }
19 + },
20 + "range": [
21 + 0,
22 + 51
23 + ],
24 + "body": [
25 + {
26 + "type": "FunctionDeclaration",
27 + "loc": {
28 + "source": null,
29 + "start": {
30 + "line": 1,
31 + "column": 0
32 + },
33 + "end": {
34 + "line": 3,
35 + "column": 1
36 + }
37 + },
38 + "range": [
39 + 0,
40 + 51
41 + ],
42 + "id": {
43 + "type": "Identifier",
44 + "loc": {
45 + "source": null,
46 + "start": {
47 + "line": 1,
48 + "column": 9
49 + },
50 + "end": {
51 + "line": 1,
52 + "column": 18
53 + }
54 + },
55 + "range": [
56 + 9,
57 + 18
58 + ],
59 + "name": "Component",
60 + "typeAnnotation": null,
61 + "optional": false
62 + },
63 + "params": [
64 + {
65 + "type": "Identifier",
66 + "loc": {
67 + "source": null,
68 + "start": {
69 + "line": 1,
70 + "column": 19
71 + },
72 + "end": {
73 + "line": 1,
74 + "column": 24
75 + }
76 + },
77 + "range": [
78 + 19,
79 + 24
80 + ],
81 + "name": "props",
82 + "typeAnnotation": null,
83 + "optional": false
84 + }
85 + ],
86 + "body": {
87 + "type": "BlockStatement",
88 + "loc": {
89 + "source": null,
90 + "start": {
91 + "line": 1,
92 + "column": 26
93 + },
94 + "end": {
95 + "line": 3,
96 + "column": 1
97 + }
98 + },
99 + "range": [
100 + 26,
101 + 51
102 + ],
103 + "body": [
104 + {
105 + "type": "ReturnStatement",
106 + "loc": {
107 + "source": null,
108 + "start": {
109 + "line": 2,
110 + "column": 2
111 + },
112 + "end": {
113 + "line": 2,
114 + "column": 21
115 + }
116 + },
117 + "range": [
118 + 30,
119 + 49
120 + ],
121 + "argument": {
122 + "type": "MemberExpression",
123 + "loc": {
124 + "source": null,
125 + "start": {
126 + "line": 2,
127 + "column": 9
128 + },
129 + "end": {
130 + "line": 2,
131 + "column": 20
132 + }
133 + },
134 + "range": [
135 + 37,
136 + 48
137 + ],
138 + "object": {
139 + "type": "Identifier",
140 + "loc": {
141 + "source": null,
142 + "start": {
143 + "line": 2,
144 + "column": 9
145 + },
146 + "end": {
147 + "line": 2,
148 + "column": 14
149 + }
150 + },
151 + "range": [
152 + 37,
153 + 42
154 + ],
155 + "name": "props",
156 + "typeAnnotation": null,
157 + "optional": false
158 + },
159 + "property": {
160 + "type": "Identifier",
161 + "loc": {
162 + "source": null,
163 + "start": {
164 + "line": 2,
165 + "column": 15
166 + },
167 + "end": {
168 + "line": 2,
169 + "column": 20
170 + }
171 + },
172 + "range": [
173 + 43,
174 + 48
175 + ],
176 + "name": "value",
177 + "typeAnnotation": null,
178 + "optional": false
179 + },
180 + "computed": false
181 + }
182 + }
183 + ]
184 + },
185 + "async": false,
186 + "generator": false,
187 + "predicate": null,
188 + "expression": false,
189 + "returnType": null,
190 + "typeParameters": null
191 + }
192 + ],
193 + "comments": [],
194 + "errors": []
195 + }
196 +
197 +Output:
198 +{
199 + "type": "Program",
200 + "body": [
201 + {
202 + "type": "FunctionDeclaration",
203 + "id": {
204 + "type": "Identifier",
205 + "name": "Component",
206 + "typeAnnotation": null,
207 + "loc": {
208 + "source": null,
209 + "start": {
210 + "line": 1,
211 + "column": 9
212 + },
213 + "end": {
214 + "line": 1,
215 + "column": 18
216 + }
217 + },
218 + "range": [
219 + 9,
220 + 18
221 + ]
222 + },
223 + "params": [
224 + {
225 + "type": "Identifier",
226 + "name": "props",
227 + "typeAnnotation": null,
228 + "loc": {
229 + "source": null,
230 + "start": {
231 + "line": 1,
232 + "column": 19
233 + },
234 + "end": {
235 + "line": 1,
236 + "column": 24
237 + }
238 + },
239 + "range": [
240 + 19,
241 + 24
242 + ]
243 + }
244 + ],
245 + "body": {
246 + "type": "BlockStatement",
247 + "body": [
248 + {
249 + "type": "ReturnStatement",
250 + "argument": {
251 + "type": "MemberExpression",
252 + "object": {
253 + "type": "Identifier",
254 + "name": "props",
255 + "typeAnnotation": null,
256 + "loc": {
257 + "source": null,
258 + "start": {
259 + "line": 2,
260 + "column": 9
261 + },
262 + "end": {
263 + "line": 2,
264 + "column": 14
265 + }
266 + },
267 + "range": [
268 + 37,
269 + 42
270 + ]
271 + },
272 + "property": {
273 + "type": "Identifier",
274 + "name": "value",
275 + "typeAnnotation": null,
276 + "loc": {
277 + "source": null,
278 + "start": {
279 + "line": 2,
280 + "column": 15
281 + },
282 + "end": {
283 + "line": 2,
284 + "column": 20
285 + }
286 + },
287 + "range": [
288 + 43,
289 + 48
290 + ]
291 + },
292 + "computed": false,
293 + "loc": {
294 + "source": null,
295 + "start": {
296 + "line": 2,
297 + "column": 9
298 + },
299 + "end": {
300 + "line": 2,
301 + "column": 20
302 + }
303 + },
304 + "range": [
305 + 37,
306 + 48
307 + ]
308 + },
309 + "loc": {
310 + "source": null,
311 + "start": {
312 + "line": 2,
313 + "column": 2
314 + },
315 + "end": {
316 + "line": 2,
317 + "column": 21
318 + }
319 + },
320 + "range": [
321 + 30,
322 + 49
323 + ]
324 + }
325 + ],
326 + "loc": {
327 + "source": null,
328 + "start": {
329 + "line": 1,
330 + "column": 26
331 + },
332 + "end": {
333 + "line": 3,
334 + "column": 1
335 + }
336 + },
337 + "range": [
338 + 26,
339 + 51
340 + ]
341 + },
342 + "generator": false,
343 + "async": false,
344 + "loc": null,
345 + "range": null,
346 + "loc": {
347 + "source": null,
348 + "start": {
349 + "line": 1,
350 + "column": 0
351 + },
352 + "end": {
353 + "line": 3,
354 + "column": 1
355 + }
356 + },
357 + "range": [
358 + 0,
359 + 51
360 + ]
361 + }
362 + ],
363 + "sourceType": "module",
364 + "loc": {
365 + "source": null,
366 + "start": {
367 + "line": 1,
368 + "column": 0
369 + },
370 + "end": {
371 + "line": 3,
372 + "column": 1
373 + }
374 + },
375 + "range": [
376 + 0,
377 + 51
378 + ]
379 +}
compiler/crates/react_estree/src/snapshots/react_estree__tests__fixtures@test.json.snap new
+708
@@ -0,0 +1,708 @@
1 +---
2 +source: crates/react_estree/src/lib.rs
3 +expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
4 +input_file: crates/react_estree/src/fixtures/test.json
5 +---
6 +Input:
7 +{
8 + "type": "Program",
9 + "loc": {
10 + "source": null,
11 + "start": {
12 + "line": 2,
13 + "column": 0
14 + },
15 + "end": {
16 + "line": 4,
17 + "column": 1
18 + }
19 + },
20 + "body": [
21 + {
22 + "type": "FunctionDeclaration",
23 + "loc": {
24 + "source": null,
25 + "start": {
26 + "line": 2,
27 + "column": 0
28 + },
29 + "end": {
30 + "line": 4,
31 + "column": 1
32 + }
33 + },
34 + "id": {
35 + "type": "Identifier",
36 + "loc": {
37 + "source": null,
38 + "start": {
39 + "line": 2,
40 + "column": 9
41 + },
42 + "end": {
43 + "line": 2,
44 + "column": 12
45 + }
46 + },
47 + "name": "foo",
48 + "typeAnnotation": null,
49 + "optional": false,
50 + "range": [
51 + 10,
52 + 13
53 + ]
54 + },
55 + "params": [],
56 + "body": {
57 + "type": "BlockStatement",
58 + "loc": {
59 + "source": null,
60 + "start": {
61 + "line": 2,
62 + "column": 15
63 + },
64 + "end": {
65 + "line": 4,
66 + "column": 1
67 + }
68 + },
69 + "body": [
70 + {
71 + "type": "ReturnStatement",
72 + "loc": {
73 + "source": null,
74 + "start": {
75 + "line": 3,
76 + "column": 2
77 + },
78 + "end": {
79 + "line": 3,
80 + "column": 36
81 + }
82 + },
83 + "argument": {
84 + "type": "JSXElement",
85 + "loc": {
86 + "source": null,
87 + "start": {
88 + "line": 3,
89 + "column": 9
90 + },
91 + "end": {
92 + "line": 3,
93 + "column": 36
94 + }
95 + },
96 + "openingElement": {
97 + "type": "JSXOpeningElement",
98 + "loc": {
99 + "source": null,
100 + "start": {
101 + "line": 3,
102 + "column": 9
103 + },
104 + "end": {
105 + "line": 3,
106 + "column": 26
107 + }
108 + },
109 + "name": {
110 + "type": "JSXMemberExpression",
111 + "loc": {
112 + "source": null,
113 + "start": {
114 + "line": 3,
115 + "column": 10
116 + },
117 + "end": {
118 + "line": 3,
119 + "column": 17
120 + }
121 + },
122 + "object": {
123 + "type": "JSXIdentifier",
124 + "loc": {
125 + "source": null,
126 + "start": {
127 + "line": 3,
128 + "column": 10
129 + },
130 + "end": {
131 + "line": 3,
132 + "column": 13
133 + }
134 + },
135 + "name": "Foo",
136 + "range": [
137 + 28,
138 + 31
139 + ]
140 + },
141 + "property": {
142 + "type": "JSXIdentifier",
143 + "loc": {
144 + "source": null,
145 + "start": {
146 + "line": 3,
147 + "column": 14
148 + },
149 + "end": {
150 + "line": 3,
151 + "column": 17
152 + }
153 + },
154 + "name": "Bar",
155 + "range": [
156 + 32,
157 + 35
158 + ]
159 + },
160 + "range": [
161 + 28,
162 + 35
163 + ]
164 + },
165 + "attributes": [
166 + {
167 + "type": "JSXAttribute",
168 + "loc": {
169 + "source": null,
170 + "start": {
171 + "line": 3,
172 + "column": 18
173 + },
174 + "end": {
175 + "line": 3,
176 + "column": 24
177 + }
178 + },
179 + "name": {
180 + "type": "JSXIdentifier",
181 + "loc": {
182 + "source": null,
183 + "start": {
184 + "line": 3,
185 + "column": 18
186 + },
187 + "end": {
188 + "line": 3,
189 + "column": 19
190 + }
191 + },
192 + "name": "a",
193 + "range": [
194 + 36,
195 + 37
196 + ]
197 + },
198 + "value": {
199 + "type": "JSXExpressionContainer",
200 + "loc": {
201 + "source": null,
202 + "start": {
203 + "line": 3,
204 + "column": 20
205 + },
206 + "end": {
207 + "line": 3,
208 + "column": 24
209 + }
210 + },
211 + "expression": {
212 + "type": "Literal",
213 + "loc": {
214 + "source": null,
215 + "start": {
216 + "line": 3,
217 + "column": 21
218 + },
219 + "end": {
220 + "line": 3,
221 + "column": 23
222 + }
223 + },
224 + "value": 10,
225 + "range": [
226 + 39,
227 + 41
228 + ],
229 + "raw": "10"
230 + },
231 + "range": [
232 + 38,
233 + 42
234 + ]
235 + },
236 + "range": [
237 + 36,
238 + 42
239 + ]
240 + }
241 + ],
242 + "selfClosing": false,
243 + "range": [
244 + 27,
245 + 44
246 + ]
247 + },
248 + "children": [],
249 + "closingElement": {
250 + "type": "JSXClosingElement",
251 + "loc": {
252 + "source": null,
253 + "start": {
254 + "line": 3,
255 + "column": 26
256 + },
257 + "end": {
258 + "line": 3,
259 + "column": 36
260 + }
261 + },
262 + "name": {
263 + "type": "JSXMemberExpression",
264 + "loc": {
265 + "source": null,
266 + "start": {
267 + "line": 3,
268 + "column": 28
269 + },
270 + "end": {
271 + "line": 3,
272 + "column": 35
273 + }
274 + },
275 + "object": {
276 + "type": "JSXIdentifier",
277 + "loc": {
278 + "source": null,
279 + "start": {
280 + "line": 3,
281 + "column": 28
282 + },
283 + "end": {
284 + "line": 3,
285 + "column": 31
286 + }
287 + },
288 + "name": "Foo",
289 + "range": [
290 + 46,
291 + 49
292 + ]
293 + },
294 + "property": {
295 + "type": "JSXIdentifier",
296 + "loc": {
297 + "source": null,
298 + "start": {
299 + "line": 3,
300 + "column": 32
301 + },
302 + "end": {
303 + "line": 3,
304 + "column": 35
305 + }
306 + },
307 + "name": "Bar",
308 + "range": [
309 + 50,
310 + 53
311 + ]
312 + },
313 + "range": [
314 + 46,
315 + 53
316 + ]
317 + },
318 + "range": [
319 + 44,
320 + 54
321 + ]
322 + },
323 + "range": [
324 + 27,
325 + 54
326 + ]
327 + },
328 + "range": [
329 + 20,
330 + 54
331 + ]
332 + }
333 + ],
334 + "range": [
335 + 16,
336 + 56
337 + ]
338 + },
339 + "typeParameters": null,
340 + "returnType": null,
341 + "predicate": null,
342 + "generator": false,
343 + "async": false,
344 + "range": [
345 + 1,
346 + 56
347 + ]
348 + }
349 + ],
350 + "comments": [],
351 + "interpreter": null,
352 + "range": [
353 + 1,
354 + 56
355 + ],
356 + "sourceType": "script"
357 + }
358 +
359 +Output:
360 +{
361 + "type": "Program",
362 + "body": [
363 + {
364 + "type": "FunctionDeclaration",
365 + "id": {
366 + "type": "Identifier",
367 + "name": "foo",
368 + "typeAnnotation": null,
369 + "loc": {
370 + "source": null,
371 + "start": {
372 + "line": 2,
373 + "column": 9
374 + },
375 + "end": {
376 + "line": 2,
377 + "column": 12
378 + }
379 + },
380 + "range": [
381 + 10,
382 + 13
383 + ]
384 + },
385 + "params": [],
386 + "body": {
387 + "type": "BlockStatement",
388 + "body": [
389 + {
390 + "type": "ReturnStatement",
391 + "argument": {
392 + "type": "JSXElement",
393 + "openingElement": {
394 + "type": "JSXOpeningElement",
395 + "name": {
396 + "type": "JSXMemberExpression",
397 + "object": {
398 + "type": "JSXIdentifier",
399 + "name": "Foo",
400 + "loc": {
401 + "source": null,
402 + "start": {
403 + "line": 3,
404 + "column": 10
405 + },
406 + "end": {
407 + "line": 3,
408 + "column": 13
409 + }
410 + },
411 + "range": [
412 + 28,
413 + 31
414 + ]
415 + },
416 + "property": {
417 + "type": "JSXIdentifier",
418 + "name": "Bar",
419 + "loc": {
420 + "source": null,
421 + "start": {
422 + "line": 3,
423 + "column": 14
424 + },
425 + "end": {
426 + "line": 3,
427 + "column": 17
428 + }
429 + },
430 + "range": [
431 + 32,
432 + 35
433 + ]
434 + },
435 + "loc": {
436 + "source": null,
437 + "start": {
438 + "line": 3,
439 + "column": 10
440 + },
441 + "end": {
442 + "line": 3,
443 + "column": 17
444 + }
445 + },
446 + "range": [
447 + 28,
448 + 35
449 + ]
450 + },
451 + "attributes": [
452 + {
453 + "type": "JSXAttribute",
454 + "name": {
455 + "type": "JSXIdentifier",
456 + "name": "a",
457 + "loc": {
458 + "source": null,
459 + "start": {
460 + "line": 3,
461 + "column": 18
462 + },
463 + "end": {
464 + "line": 3,
465 + "column": 19
466 + }
467 + },
468 + "range": [
469 + 36,
470 + 37
471 + ]
472 + },
473 + "value": {
474 + "type": "JSXExpressionContainer",
475 + "expression": {
476 + "type": "Literal",
477 + "value": 10.0,
478 + "raw": "10",
479 + "regex": null,
480 + "bigint": null,
481 + "loc": {
482 + "source": null,
483 + "start": {
484 + "line": 3,
485 + "column": 21
486 + },
487 + "end": {
488 + "line": 3,
489 + "column": 23
490 + }
491 + },
492 + "range": [
493 + 39,
494 + 41
495 + ]
496 + },
497 + "loc": {
498 + "source": null,
499 + "start": {
500 + "line": 3,
501 + "column": 20
502 + },
503 + "end": {
504 + "line": 3,
505 + "column": 24
506 + }
507 + },
508 + "range": [
509 + 38,
510 + 42
511 + ]
512 + },
513 + "loc": {
514 + "source": null,
515 + "start": {
516 + "line": 3,
517 + "column": 18
518 + },
519 + "end": {
520 + "line": 3,
521 + "column": 24
522 + }
523 + },
524 + "range": [
525 + 36,
526 + 42
527 + ]
528 + }
529 + ],
530 + "selfClosing": false,
531 + "loc": {
532 + "source": null,
533 + "start": {
534 + "line": 3,
535 + "column": 9
536 + },
537 + "end": {
538 + "line": 3,
539 + "column": 26
540 + }
541 + },
542 + "range": [
543 + 27,
544 + 44
545 + ]
546 + },
547 + "children": [],
548 + "closingElement": {
549 + "type": "JSXClosingElement",
550 + "name": {
551 + "type": "JSXMemberExpression",
552 + "object": {
553 + "type": "JSXIdentifier",
554 + "name": "Foo",
555 + "loc": {
556 + "source": null,
557 + "start": {
558 + "line": 3,
559 + "column": 28
560 + },
561 + "end": {
562 + "line": 3,
563 + "column": 31
564 + }
565 + },
566 + "range": [
567 + 46,
568 + 49
569 + ]
570 + },
571 + "property": {
572 + "type": "JSXIdentifier",
573 + "name": "Bar",
574 + "loc": {
575 + "source": null,
576 + "start": {
577 + "line": 3,
578 + "column": 32
579 + },
580 + "end": {
581 + "line": 3,
582 + "column": 35
583 + }
584 + },
585 + "range": [
586 + 50,
587 + 53
588 + ]
589 + },
590 + "loc": {
591 + "source": null,
592 + "start": {
593 + "line": 3,
594 + "column": 28
595 + },
596 + "end": {
597 + "line": 3,
598 + "column": 35
599 + }
600 + },
601 + "range": [
602 + 46,
603 + 53
604 + ]
605 + },
606 + "loc": {
607 + "source": null,
608 + "start": {
609 + "line": 3,
610 + "column": 26
611 + },
612 + "end": {
613 + "line": 3,
614 + "column": 36
615 + }
616 + },
617 + "range": [
618 + 44,
619 + 54
620 + ]
621 + },
622 + "loc": {
623 + "source": null,
624 + "start": {
625 + "line": 3,
626 + "column": 9
627 + },
628 + "end": {
629 + "line": 3,
630 + "column": 36
631 + }
632 + },
633 + "range": [
634 + 27,
635 + 54
636 + ]
637 + },
638 + "loc": {
639 + "source": null,
640 + "start": {
641 + "line": 3,
642 + "column": 2
643 + },
644 + "end": {
645 + "line": 3,
646 + "column": 36
647 + }
648 + },
649 + "range": [
650 + 20,
651 + 54
652 + ]
653 + }
654 + ],
655 + "loc": {
656 + "source": null,
657 + "start": {
658 + "line": 2,
659 + "column": 15
660 + },
661 + "end": {
662 + "line": 4,
663 + "column": 1
664 + }
665 + },
666 + "range": [
667 + 16,
668 + 56
669 + ]
670 + },
671 + "generator": false,
672 + "async": false,
673 + "loc": null,
674 + "range": null,
675 + "loc": {
676 + "source": null,
677 + "start": {
678 + "line": 2,
679 + "column": 0
680 + },
681 + "end": {
682 + "line": 4,
683 + "column": 1
684 + }
685 + },
686 + "range": [
687 + 1,
688 + 56
689 + ]
690 + }
691 + ],
692 + "sourceType": "script",
693 + "loc": {
694 + "source": null,
695 + "start": {
696 + "line": 2,
697 + "column": 0
698 + },
699 + "end": {
700 + "line": 4,
701 + "column": 1
702 + }
703 + },
704 + "range": [
705 + 1,
706 + 56
707 + ]
708 +}
compiler/crates/react_estree/src/visit.rs renamed
compiler/crates/react_estree_codegen/Cargo.toml renamed
+1 -1
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_estree_codegen"
2 +name = "react_estree_codegen"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
compiler/crates/react_estree_codegen/README.md new
+4
@@ -0,0 +1,4 @@
1 +# react_estree_codegen
2 +
3 +This crate is a build dependency for `react_estree`, and contains codegen logic to produce Rust code to describe the ESTree format
4 +given a JSON schema.
\ No newline at end of file
compiler/crates/react_estree_codegen/src/codegen.rs renamed
+1 -1
@@ -140,7 +140,7 @@ impl Grammar {
140 #![allow(unused_variables)]
141 #![allow(clippy::enum_variant_names)]
142
143 - use forget_estree::*;
143 + use react_estree::*;
144 use hermes::parser::{NodePtr, NodeKind, NodeLabel };
145 use hermes::utf::{utf8_with_surrogates_to_string};
146 use crate::generated_extension::*;
compiler/crates/react_estree_codegen/src/ecmascript.json renamed
compiler/crates/react_estree_codegen/src/lib.rs renamed
compiler/crates/react_fixtures/Cargo.toml renamed
+8 -8
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_fixtures"
2 +name = "react_fixtures"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -14,11 +14,11 @@ repository.workspace = true
14
15 [dev-dependencies]
16 insta = { workspace = true }
17 -forget_estree = { workspace = true }
18 -forget_hermes_parser = { workspace = true }
19 -forget_hir = { workspace = true }
20 -forget_optimization = { workspace = true }
21 -forget_semantic_analysis = { workspace = true }
22 -forget_ssa = { workspace = true }
23 -forget_build_hir = { workspace = true }
17 +react_estree = { workspace = true }
18 +react_hermes_parser = { workspace = true }
19 +react_hir = { workspace = true }
20 +react_optimization = { workspace = true }
21 +react_semantic_analysis = { workspace = true }
22 +react_ssa = { workspace = true }
23 +react_build_hir = { workspace = true }
24 miette = { workspace = true, features = ["backtrace", "fancy"] }
compiler/crates/react_fixtures/README.md renamed
compiler/crates/react_fixtures/src/lib.rs renamed
compiler/crates/react_fixtures/tests/fixtures/constant-propagation-constant-if-condition.js renamed
compiler/crates/react_fixtures/tests/fixtures/constant-propagation.js renamed
compiler/crates/react_fixtures/tests/fixtures/destructure-array.js renamed
compiler/crates/react_fixtures/tests/fixtures/destructure-object.js renamed
compiler/crates/react_fixtures/tests/fixtures/error.assign-to-global.js renamed
compiler/crates/react_fixtures/tests/fixtures/for-statement.js renamed
compiler/crates/react_fixtures/tests/fixtures/function-expressions.js renamed
compiler/crates/react_fixtures/tests/fixtures/identifiers.js renamed
compiler/crates/react_fixtures/tests/fixtures/if-statement.js renamed
compiler/crates/react_fixtures/tests/fixtures/simple-function.js renamed
compiler/crates/react_fixtures/tests/fixtures/simple-ssa.js renamed
compiler/crates/react_fixtures/tests/fixtures/simple.js renamed
compiler/crates/react_fixtures/tests/fixtures/ssa-reassign-if.js renamed
compiler/crates/react_fixtures/tests/fixtures/use-memo.js renamed
compiler/crates/react_fixtures/tests/fixtures_test.rs renamed
+7 -7
@@ -1,15 +1,15 @@
1 use std::env;
2 use std::fmt::Write;
3
4 -use forget_build_hir::build;
5 -use forget_estree::{ModuleItem, Statement};
6 -use forget_hermes_parser::parse;
7 -use forget_hir::{inline_use_memo, Environment, Features, Print, Registry};
8 -use forget_optimization::constant_propagation;
9 -use forget_semantic_analysis::analyze;
10 -use forget_ssa::{eliminate_redundant_phis, enter_ssa};
4 use insta::{assert_snapshot, glob};
5 use miette::{NamedSource, Report};
6 +use react_build_hir::build;
7 +use react_estree::{ModuleItem, Statement};
8 +use react_hermes_parser::parse;
9 +use react_hir::{inline_use_memo, Environment, Features, Print, Registry};
10 +use react_optimization::constant_propagation;
11 +use react_semantic_analysis::analyze;
12 +use react_ssa::{eliminate_redundant_phis, enter_ssa};
13
14 #[test]
15 fn fixtures() {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@constant-propagation-constant-if-condition.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/constant-propagation-constant-if-condition.js
4 +input_file: crates/react_fixtures/tests/fixtures/constant-propagation-constant-if-condition.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@constant-propagation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/constant-propagation.js
4 +input_file: crates/react_fixtures/tests/fixtures/constant-propagation.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@destructure-array.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/destructure-array.js
4 +input_file: crates/react_fixtures/tests/fixtures/destructure-array.js
5 ---
6 Input:
7 function Component(a, b) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@destructure-object.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/destructure-object.js
4 +input_file: crates/react_fixtures/tests/fixtures/destructure-object.js
5 ---
6 Input:
7 function Component(a, b) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@error.assign-to-global.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/error.assign-to-global.js
4 +input_file: crates/react_fixtures/tests/fixtures/error.assign-to-global.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@for-statement.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/for-statement.js
4 +input_file: crates/react_fixtures/tests/fixtures/for-statement.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@function-expressions.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/function-expressions.js
4 +input_file: crates/react_fixtures/tests/fixtures/function-expressions.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@identifiers.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/identifiers.js
4 +input_file: crates/react_fixtures/tests/fixtures/identifiers.js
5 ---
6 Input:
7 // import React from "react";
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@if-statement.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/if-statement.js
4 +input_file: crates/react_fixtures/tests/fixtures/if-statement.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@simple-function.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/simple-function.js
4 +input_file: crates/react_fixtures/tests/fixtures/simple-function.js
5 ---
6 Input:
7 function Component(a) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@simple-ssa.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/simple-ssa.js
4 +input_file: crates/react_fixtures/tests/fixtures/simple-ssa.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/simple.js
4 +input_file: crates/react_fixtures/tests/fixtures/simple.js
5 ---
6 Input:
7 function test() {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@ssa-reassign-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/ssa-reassign-if.js
4 +input_file: crates/react_fixtures/tests/fixtures/ssa-reassign-if.js
5 ---
6 Input:
7 function Component(a, b) {
compiler/crates/react_fixtures/tests/snapshots/fixtures_test__fixtures@use-memo.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_fixtures/tests/fixtures_test.rs
2 +source: crates/react_fixtures/tests/fixtures_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_fixtures/tests/fixtures/use-memo.js
4 +input_file: crates/react_fixtures/tests/fixtures/use-memo.js
5 ---
6 Input:
7 import { useMemo } from "react";
compiler/crates/react_hermes_parser/Cargo.toml renamed
+4 -4
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_hermes_parser"
2 +name = "react_hermes_parser"
3 version = "0.1.0"
4 authors.workspace = true
5 description.workspace = true
@@ -13,11 +13,11 @@ repository.workspace = true
13
14 [dependencies]
15 insta = { workspace = true }
16 -forget_diagnostics = { workspace = true }
17 -forget_estree = { workspace = true }
16 +react_diagnostics = { workspace = true }
17 +react_estree = { workspace = true }
18 hermes = { workspace = true }
19 juno_support = { workspace = true }
20 serde_json = { workspace = true }
21
22 [build-dependencies]
23 -forget_estree_codegen = { workspace = true }
\ No newline at end of file
23 +react_estree_codegen = { workspace = true }
\ No newline at end of file
compiler/crates/react_hermes_parser/README.md renamed
+2 -2
@@ -1,3 +1,3 @@
1 -# forget_hermes_parser
1 +# react_hermes_parser
2
3 -Wrapper around the Hermes parser that exposes parse results as a `forget_estree` AST.
\ No newline at end of file
3 +Wrapper around the Hermes parser that exposes parse results as a `react_estree` AST.
\ No newline at end of file
compiler/crates/react_hermes_parser/build.rs new
+13
@@ -0,0 +1,13 @@
1 +use react_estree_codegen::estree_hermes;
2 +
3 +// Example custom build script.
4 +fn main() {
5 + // Re-run if the codegen files change
6 + println!("cargo:rerun-if-changed=../react_estree_codegen/src/codegen.rs");
7 + println!("cargo:rerun-if-changed=../react_estree_codegen/src/lib.rs");
8 + println!("cargo:rerun-if-changed=../react_estree_codegen/src/ecmascript.json");
9 + println!("cargo:rerun-if-changed=../react_estree_codegen");
10 +
11 + let src = estree_hermes();
12 + std::fs::write("src/generated.rs", src).unwrap();
13 +}
compiler/crates/react_hermes_parser/src/generated.rs renamed
+1 -1
@@ -3,7 +3,7 @@
3 #![allow(dead_code)]
4 #![allow(unused_variables)]
5 #![allow(clippy::enum_variant_names)]
6 -use forget_estree::*;
6 +use react_estree::*;
7 use hermes::parser::{NodePtr, NodeKind, NodeLabel};
8 use hermes::utf::utf8_with_surrogates_to_string;
9 use crate::generated_extension::*;
compiler/crates/react_hermes_parser/src/generated_extension.rs renamed
+6 -6
@@ -1,11 +1,5 @@
1 use std::num::NonZeroU32;
2
3 -use forget_estree::{
4 - ArrowFunctionExpression, AssignmentProperty, Class, ClassBody, ClassDeclaration,
5 - ClassExpression, Expression, ExpressionOrSpread, Function, FunctionBody, FunctionDeclaration,
6 - FunctionExpression, Identifier, Number, Pattern, SourceRange, TemplateElement,
7 - TemplateElementValue,
8 -};
3 use hermes::parser::{
4 hermes_get_ArrowFunctionExpression_async, hermes_get_ArrowFunctionExpression_body,
5 hermes_get_ArrowFunctionExpression_expression, hermes_get_ArrowFunctionExpression_id,
@@ -24,6 +18,12 @@ use hermes::parser::{
18 };
19 use hermes::utf::utf8_with_surrogates_to_string;
20 use juno_support::NullTerminatedBuf;
21 +use react_estree::{
22 + ArrowFunctionExpression, AssignmentProperty, Class, ClassBody, ClassDeclaration,
23 + ClassExpression, Expression, ExpressionOrSpread, Function, FunctionBody, FunctionDeclaration,
24 + FunctionExpression, Identifier, Number, Pattern, SourceRange, TemplateElement,
25 + TemplateElementValue,
26 +};
27
28 pub struct Context {
29 start: usize,
compiler/crates/react_hermes_parser/src/lib.rs renamed
+2 -2
@@ -1,12 +1,12 @@
1 mod generated;
2 mod generated_extension;
3
4 -use forget_diagnostics::Diagnostic;
5 -use forget_estree::Program;
4 use generated_extension::{Context, FromHermes};
5 use hermes::parser::{HermesParser, ParserDialect, ParserFlags};
6 use hermes::utf::utf8_with_surrogates_to_string;
7 use juno_support::NullTerminatedBuf;
8 +use react_diagnostics::Diagnostic;
9 +use react_estree::Program;
10
11 pub fn parse(source: &str, _file: &str) -> Result<Program, Vec<Diagnostic>> {
12 let buf = NullTerminatedBuf::from_str_check(source);
compiler/crates/react_hermes_parser/tests/fixtures/alias-capture-in-method-receiver-and-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/alias-capture-in-method-receiver.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/alias-computed-load.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/alias-nested-member-path-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/alias-nested-member-path.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/alias-while.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/allocating-primitive-as-dep-nested-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/allocating-primitive-as-dep.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/allow-passing-refs-as-props.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-access-assignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-at-closure.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-at-effect.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-at-mutate-after-capture.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-expression-spread.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-join.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-map-frozen-array.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-map-mutable-array-mutating-lambda.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-pattern-params.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-properties.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-property-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/array-push-effect.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/arrow-function-expr-gating-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/assignment-expression-computed.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/assignment-expression-nested-path.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/assignment-in-nested-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/assignment-variations-complex-lvalue-array.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/assignment-variations-complex-lvalue.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/assignment-variations.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/await-side-effecting-promise.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/await.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/babel-existing-react-import.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/babel-existing-react-kitchensink-import.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/bug.useMemo-deps-array-not-cleared.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/bug_object-pattern.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/builtin-jsx-tag-lowered-between-mutations.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/call-args-assignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/call-args-destructuring-assignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/call-spread.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/call-with-independently-memoizable-arg.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capture-indirect-mutate-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capture-param-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capture_mutate-across-fns.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-arrow-function-1.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-fun-alias-captured-mutate-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-fun-alias-captured-mutate-arr-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-alias-captured-mutate-arr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-alias-captured-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-alias-computed-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-alias-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-alias-receiver-computed-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-alias-receiver-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-mutate-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-mutate-3.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-mutate-nested.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-func-simple-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-1.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-3.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-4.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-capture-ref-before-rename.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-conditional-capture-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-decl.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-member-expr-arguments.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-member-expr-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-renamed-ref.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-runs-inference.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-shadow-captured.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-skip-computed-path.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-within-block.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-member-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-nested-member-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-nested-member-expr-in-nested-func.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-nested-member-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-reference-changes-type.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-variable-in-nested-block.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/capturing-variable-in-nested-function.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/chained-assignment-context-variable.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/chained-assignment-expressions.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/codegen-emit-imports-same-source.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/codegen-emit-make-read-only.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/codegen-instrument-forget-gating-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/codegen-instrument-forget-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/complex-while.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/component.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/computed-call-evaluation-order.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/computed-call-spread.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/computed-load-primitive-as-dependency.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/computed-store-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/concise-arrow-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/cond-deps-conditional-member-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/conditional-break-labeled.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/conditional-break.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/conditional-on-mutable.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/conditional-set-state-in-render.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/console-readonly.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/const-propagation-into-function-expression-global.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/const-propagation-into-function-expression-primitive.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/constant-computed.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/constant-propagation-for.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/constant-propagation-into-function-expressions.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/constant-propagation-phi.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/constant-propagation-while.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/constant-propagation.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/constructor.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/context-variable-reassigned-outside-of-lambda.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/controlled-input.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/dce-loop.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/debugger-memoized.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/debugger.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/declare-reassign-variable-in-closure.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/declare-reassign-variable-in-function-declaration.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/delete-computed-property.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/delete-property.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/dependencies-outputs.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/dependencies.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructure-capture-global.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructure-direct-reassignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-array-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-array-param-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-assignment-array-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-assignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-mixed-scope-and-local-variables-with-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-mixed-scope-declarations-and-locals.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-object-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-object-param-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring-property-inference.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/destructuring.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/disable-jsx-memoization.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/do-while-break.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/do-while-compound-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/do-while-conditional-break.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/do-while-continue.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/do-while-early-unconditional-break.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/do-while-simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/dominator.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/early-return.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error._todo.computed-lval-in-destructure.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error._todo.multi-arrow-expr-export-default-gating-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.babel-existing-react-namespace-import.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.bug-validate-no-set-state-not-all-mutable-range-extensions-are-bad.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.call-args-destructuring-asignment-complex.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.codegen-error-on-conflicting-imports.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.hoisted-function-declaration.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.hooks-with-React-namespace.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-access-ref-during-render.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-array-push-frozen.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-assign-hook-to-local.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-capture-func-passed-to-jsx.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-computed-store-to-frozen-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-delete-computed-property-of-frozen-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-delete-property-of-frozen-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-destructure-assignment-to-global.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-destructure-to-local-global-variables.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-freeze-conditionally-mutable-lambda.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-freeze-mutable-lambda-mutate-local.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-freeze-mutable-lambda-reassign-local.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-function-expression-mutates-immutable-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-mutate-after-aliased-freeze.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-mutate-after-freeze.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-pass-hook-as-call-arg.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-pass-hook-as-prop.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-pass-ref-to-function.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-property-store-to-frozen-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-ref-in-callback-invoked-during-render.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-ref-value-as-props.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-set-and-read-ref-during-render.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-sketchy-code-use-forget.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-ternary-with-hook-values.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-unconditional-set-state-in-render.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-use-ref-added-to-dep-without-type-info.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-useMemo-async-callback.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-useMemo-callback-args.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.mutate-captured-arg-separately.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.mutate-global-increment-op-invalid-react.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.reassignment-to-global.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.todo-kitchensink.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.todo-unconditional-set-state-lambda.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.todo.destructure-assignment-to-context-var.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.useMemo-callback-generator.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/error.while-with-assignment-in-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-destructured-rest-element.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-jsx-child.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-logical.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-allocating-dependency.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-allocating-nested-dependency.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-primitive-dependency.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-not-conditional-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-not-if-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-not-switch-case.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/escape-analysis-not-switch-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/expression-with-assignment-dynamic.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/expression-with-assignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/extend-scopes-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/fbt-call-complex-param-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/fbt-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/fbt-params-complex-param-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/fbt-params.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/fbt-template-string-same-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-empty-update-with-continue.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-empty-update.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-logical.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-of-break.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-of-conditional-break.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-of-continue.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-of-destructure.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-of-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-of-mutate.tsx renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-of-simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/for-return.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/frozen-after-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/function-declaration-reassign.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/function-declaration-redeclare.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/function-declaration-simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/function-expression-captures-value-later-frozen-jsx.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/function-expression-maybe-mutates-hook-return-value.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/function-expression-with-store-to-parameter.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/function-param-assignment-pattern.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/gating-test-export-default-function.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/gating-test-export-function-and-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/gating-test-export-function.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/gating-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/global-jsx-tag-lowered-between-mutations.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/globals-Boolean.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/globals-Number.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/globals-String.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/holey-array-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/holey-array-pattern-dce-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/holey-array-pattern-dce.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/holey-array.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/hook-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/hook-inside-logical-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/hooks-freeze-arguments.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/hooks-freeze-possibly-mutable-arguments.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/immutable-hooks.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/inadvertent-mutability-readonly-class.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/inadvertent-mutability-readonly-lambda.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/independent-across-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/independent.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/independently-memoize-object-property.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/infer-computed-delete.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/infer-global-object.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/infer-phi-primitive.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/infer-property-delete.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/infer-types-through-type-cast.flow.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/inner-memo-value-not-promoted-to-outer-scope-dynamic.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/inner-memo-value-not-promoted-to-outer-scope-static.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/interdependent-across-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/interdependent.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/inverted-if-else.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/inverted-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/issue852.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/issue933-disjoint-set-infinite-loop.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-empty-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-fragment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-member-expression-tag-grouping.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-member-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-namespaced-name.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-spread.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-tag-evaluation-order-non-global.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/jsx-tag-evaluation-order.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/lambda-capture-returned-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/lambda-mutate-shadowed-object.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/lambda-mutated-non-reactive-to-reactive.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/lambda-mutated-ref-non-reactive.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/lambda-reassign-primitive.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/lambda-reassign-shadowed-primitive.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/lambda-with-fbt.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/logical-expression-object.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/logical-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/method-call-computed.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/method-call-fn-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/method-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/multi-arrow-expr-export-gating-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/multi-arrow-expr-gating-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/mutable-lifetime-loops.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/mutable-lifetime-with-aliasing.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/mutable-liverange-loop.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/nested-function-shadowed-identifiers.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/nested-optional-member-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/nested-scopes-hook-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/new-spread.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/nonoptional-load-from-optional-memberexpr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/obj-literal-cached-in-if-else.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/obj-literal-mutated-after-if-else.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/obj-mutated-after-if-else-with-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/obj-mutated-after-if-else.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/obj-mutated-after-nested-if-else-with-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/object-computed-access-assignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/object-expression-string-literal-key.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/object-literal-spread-element.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/object-pattern-params.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/object-properties.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-call-chained.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-call-logical.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-call-simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-call-with-independently-memoizable-arg.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-call-with-optional-property-load.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-computed-load-static.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-computed-member-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-member-expression-call-as-property.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-member-expression-chain.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-member-expression-with-optional-member-expr-as-property.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-member-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-method-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-receiver-method-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/optional-receiver-optional-method.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/overlapping-scopes-interleaved-by-terminal.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/overlapping-scopes-interleaved.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/overlapping-scopes-shadowed.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/overlapping-scopes-shadowing-within-block.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/overlapping-scopes-while.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/overlapping-scopes-within-block.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/primitive-alias-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/primitive-as-dep-nested-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/primitive-as-dep.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/prop-capturing-function-1.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/property-assignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/property-call-evaluation-order.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/property-call-spread.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reactive-dependencies-non-optional-properties-inside-optional-chain.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reactive-scope-grouping.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reactive-scopes-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reactive-scopes.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reactivity-analysis-interleaved-reactivity.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reactivity-analysis-reactive-via-mutation-of-computed-load.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reactivity-analysis-reactive-via-mutation-of-property-load.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reassign-object-in-context.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reassign-primitive-in-context.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reassigned-phi-in-returned-function-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reassignment-conditional.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reassignment-separate-scopes.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reassignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/recursive-function-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-condexpr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-ifelse.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-nested-ifelse-missing.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-nested-ifelse.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch-missing-case.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch-missing-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-no-uncond.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-promote-uncond.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-subpath-order1.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-subpath-order2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-superpath-order1.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-superpath-order2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-memberexpr-join.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-dependencies-optional-member-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-deps-cond-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-deps-join-uncond-scopes-cond-deps.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-nonoverlap-descendant.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-nonoverlap-direct.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-overlap-descendant.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-overlap-direct.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order1.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order3.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-current-aliased-no-added-to-dep.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-current-aliased-not-added-to-dep-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-current-field-not-added-to-dep.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-current-not-added-to-dep-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-current-not-added-to-dep.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-current-optional-field-no-added-to-dep.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-current-write-not-added-to-dep.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ref-in-effect.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/regexp-literal.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/remove-memoization-kitchen-sink.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/repro-reassign-to-variable-without-mutable-range.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/repro-scope-missing-mutable-range.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/repro.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/return-conditional.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/return-undefined.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/reverse-postorder.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/same-variable-as-dep-and-redeclare-maybe-frozen.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/same-variable-as-dep-and-redeclare.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/sequence-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/sequentially-constant-progagatable-if-test-conditions.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/simple-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/simple-function-1.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/simple-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/sketchy-code-exhaustive-deps.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/sketchy-code-rules-of-hooks.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-arrayexpression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-call-jsx-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-call-jsx.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-cascading-eliminated-phis.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-complex-multiple-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-complex-single-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-for-of.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-for-trivial-update.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-for.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-if-else.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-leave-case.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-multiple-phis.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-nested-loops-no-reassign.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-nested-partial-phi.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-nested-partial-reassignment.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-newexpression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-non-empty-initializer.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-objectexpression-phi.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-objectexpression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-alias-alias-mutate-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-alias-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-alias-mutate-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-alias-mutate-inside-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-alias-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-mutate-2.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-mutate-alias.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property-mutate.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-property.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-reassign-in-rval.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-reassign.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary-destruction-with-mutation.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary-destruction.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary-with-mutation.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-unconditional-ternary-with-mutation.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-unconditional-ternary.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-unconditional-with-mutation.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-via-destructuring-with-mutation.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-via-destructuring.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming-with-mutation.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-renaming.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-return.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-shadowing.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-sibling-phis.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-simple-phi.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-single-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-switch.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-throw.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-while-no-reassign.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ssa-while.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/store-via-call.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/store-via-new.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/switch-global-propertyload-case-test.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/switch-non-final-default.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/switch-with-fallthrough.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/switch.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/tagged-template-in-hook.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/tagged-template-literal.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/template-literal.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/temporary-accessed-outside-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/temporary-at-start-of-value-block.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/temporary-property-load-accessed-outside-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ternary-assignment-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/ternary-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/timers.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/todo-function-expression-captures-value-later-frozen.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/todo.unnecessary-lambda-memoization.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/transitive-alias-fields.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/trivial.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-args-test-binary-operator.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-binary-operator.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-cast-expression.flow.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-field-load.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-test-field-load-binary-op.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-test-field-store.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-test-polymorphic.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-test-primitive.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/type-test-return-type-inference.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unary-expr.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unconditional-break-label.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/uninitialized-declaration-in-reactive-scope.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unknown-hooks-do-not-assert.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-array-middle-element.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-array-rest-element.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-conditional.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-logical-assigned-to-variable.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-logical.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-object-element-with-rest.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-object-element.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-optional-method-assigned-to-variable.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/unused-ternary-assigned-to-variable.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/update-expression.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/use-callback-simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useEffect-arg-memoized.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useEffect-nested-lambdas.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-if-else-multiple-return.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-independently-memoizeable.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-inlining-block-return.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-inverted-if.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-labeled-statement-unconditional-return.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-logical.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-multiple-if-else.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-named-function.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-nested-ifs.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-return-empty.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-simple.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-switch-no-fallthrough.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/useMemo-switch-return.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/while-break.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/while-conditional-continue.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/while-logical.js renamed
compiler/crates/react_hermes_parser/tests/fixtures/while-property.js renamed
compiler/crates/react_hermes_parser/tests/parser_test.rs renamed
+2 -2
@@ -1,8 +1,8 @@
1 use std::env;
2
3 -use forget_estree::SourceType;
4 -use forget_hermes_parser::parse;
3 use insta::{assert_snapshot, glob};
4 +use react_estree::SourceType;
5 +use react_hermes_parser::parse;
6
7 #[test]
8 fn fixtures() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@alias-capture-in-method-receiver-and-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/alias-capture-in-method-receiver-and-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/alias-capture-in-method-receiver-and-mutate.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@alias-capture-in-method-receiver.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/alias-capture-in-method-receiver.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/alias-capture-in-method-receiver.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@alias-computed-load.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/alias-computed-load.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/alias-computed-load.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@alias-nested-member-path-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/alias-nested-member-path-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/alias-nested-member-path-mutate.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@alias-nested-member-path.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/alias-nested-member-path.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/alias-nested-member-path.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@alias-while.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/alias-while.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/alias-while.js
5 ---
6 Input:
7 function foo(cond) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@allocating-primitive-as-dep-nested-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/allocating-primitive-as-dep-nested-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/allocating-primitive-as-dep-nested-scope.js
5 ---
6 Input:
7 // bar(props.b) is an allocating expression that produces a primitive, which means
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@allocating-primitive-as-dep.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/allocating-primitive-as-dep.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/allocating-primitive-as-dep.js
5 ---
6 Input:
7 // bar(props.b) is an allocating expression that produces a primitive, which means
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@allow-passing-refs-as-props.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/allow-passing-refs-as-props.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/allow-passing-refs-as-props.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-access-assignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-access-assignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-access-assignment.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-at-closure.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-at-closure.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-at-closure.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-at-effect.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-at-effect.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-at-effect.js
5 ---
6 Input:
7 // arrayInstance.at should have the following effects:
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-at-mutate-after-capture.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-at-mutate-after-capture.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-at-mutate-after-capture.js
5 ---
6 Input:
7 // x's mutable range should extend to `mutate(y)`
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-expression-spread.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-expression-spread.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-expression-spread.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-join.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-join.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-join.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-map-frozen-array.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-map-frozen-array.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-map-frozen-array.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-map-mutable-array-mutating-lambda.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-map-mutable-array-mutating-lambda.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-map-mutable-array-mutating-lambda.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-pattern-params.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-pattern-params.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-pattern-params.js
5 ---
6 Input:
7 function component([a, b]) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-properties.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-properties.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-properties.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-property-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-property-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-property-call.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@array-push-effect.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/array-push-effect.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/array-push-effect.js
5 ---
6 Input:
7 // arrayInstance.push should have the following effects:
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@arrow-function-expr-gating-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/arrow-function-expr-gating-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/arrow-function-expr-gating-test.js
5 ---
6 Input:
7 // @gating
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@assignment-expression-computed.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/assignment-expression-computed.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/assignment-expression-computed.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@assignment-expression-nested-path.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/assignment-expression-nested-path.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/assignment-expression-nested-path.js
5 ---
6 Input:
7 function g(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@assignment-in-nested-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/assignment-in-nested-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/assignment-in-nested-if.js
5 ---
6 Input:
7 function useBar(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@assignment-variations-complex-lvalue-array.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/assignment-variations-complex-lvalue-array.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/assignment-variations-complex-lvalue-array.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@assignment-variations-complex-lvalue.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/assignment-variations-complex-lvalue.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/assignment-variations-complex-lvalue.js
5 ---
6 Input:
7 function g() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@assignment-variations.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/assignment-variations.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/assignment-variations.js
5 ---
6 Input:
7 function f() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@await-side-effecting-promise.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/await-side-effecting-promise.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/await-side-effecting-promise.js
5 ---
6 Input:
7 async function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@await.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/await.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/await.js
5 ---
6 Input:
7 async function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@babel-existing-react-import.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/babel-existing-react-import.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/babel-existing-react-import.js
5 ---
6 Input:
7 import { useState, useMemo } from "react";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@babel-existing-react-kitchensink-import.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/babel-existing-react-kitchensink-import.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/babel-existing-react-kitchensink-import.js
5 ---
6 Input:
7 import * as React from "react";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@bug.useMemo-deps-array-not-cleared.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/bug.useMemo-deps-array-not-cleared.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/bug.useMemo-deps-array-not-cleared.js
5 ---
6 Input:
7 function App({ text, hasDeps }) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@bug_object-pattern.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/bug_object-pattern.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/bug_object-pattern.js
5 ---
6 Input:
7 function component(t) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@builtin-jsx-tag-lowered-between-mutations.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/builtin-jsx-tag-lowered-between-mutations.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/builtin-jsx-tag-lowered-between-mutations.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@call-args-assignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/call-args-assignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/call-args-assignment.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@call-args-destructuring-assignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/call-args-destructuring-assignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/call-args-destructuring-assignment.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@call-spread.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/call-spread.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/call-spread.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@call-with-independently-memoizable-arg.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/call-with-independently-memoizable-arg.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/call-with-independently-memoizable-arg.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/call.js
5 ---
6 Input:
7 function foo() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capture-indirect-mutate-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capture-indirect-mutate-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capture-indirect-mutate-alias.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capture-param-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capture-param-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capture-param-mutate.js
5 ---
6 Input:
7 function getNativeLogFunction(level) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capture_mutate-across-fns.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capture_mutate-across-fns.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capture_mutate-across-fns.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-arrow-function-1.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-arrow-function-1.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-arrow-function-1.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-fun-alias-captured-mutate-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-fun-alias-captured-mutate-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-fun-alias-captured-mutate-2.js
5 ---
6 Input:
7 function component(foo, bar) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-fun-alias-captured-mutate-arr-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-fun-alias-captured-mutate-arr-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-fun-alias-captured-mutate-arr-2.js
5 ---
6 Input:
7 function component(foo, bar) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-alias-captured-mutate-arr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-alias-captured-mutate-arr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-alias-captured-mutate-arr.js
5 ---
6 Input:
7 function component(foo, bar) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-alias-captured-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-alias-captured-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-alias-captured-mutate.js
5 ---
6 Input:
7 function component(foo, bar) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-alias-computed-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-alias-computed-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-alias-computed-mutate.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-alias-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-alias-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-alias-mutate.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-alias-receiver-computed-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-alias-receiver-computed-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-alias-receiver-computed-mutate.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-alias-receiver-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-alias-receiver-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-alias-receiver-mutate.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-mutate-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-mutate-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-mutate-2.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-mutate-3.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-mutate-3.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-mutate-3.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-mutate-nested.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-mutate-nested.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-mutate-nested.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-mutate.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-func-simple-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-func-simple-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-func-simple-alias.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-1.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-1.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-1.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-alias-computed-load-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-2.js
5 ---
6 Input:
7 function bar(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-alias-computed-load-3.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-3.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-3.js
5 ---
6 Input:
7 function bar(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-alias-computed-load-4.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-4.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load-4.js
5 ---
6 Input:
7 function bar(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-alias-computed-load.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-alias-computed-load.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-alias-computed-load.js
5 ---
6 Input:
7 function bar(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-capture-ref-before-rename.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-capture-ref-before-rename.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-capture-ref-before-rename.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-conditional-capture-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-conditional-capture-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-conditional-capture-mutate.js
5 ---
6 Input:
7 // @debug
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-decl.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-decl.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-decl.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-member-expr-arguments.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-member-expr-arguments.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-member-expr-arguments.js
5 ---
6 Input:
7 function Foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-member-expr-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-member-expr-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-member-expr-call.js
5 ---
6 Input:
7 function component({ mutator }) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-renamed-ref.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-renamed-ref.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-renamed-ref.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-runs-inference.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-runs-inference.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-runs-inference.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-shadow-captured.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-shadow-captured.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-shadow-captured.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-skip-computed-path.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-skip-computed-path.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-skip-computed-path.js
5 ---
6 Input:
7 function StoreLandingUnseenGiftModalContainer(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-function-within-block.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-function-within-block.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-function-within-block.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-member-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-member-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-member-expr.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-nested-member-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-nested-member-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-nested-member-call.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-nested-member-expr-in-nested-func.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-nested-member-expr-in-nested-func.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-nested-member-expr-in-nested-func.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-nested-member-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-nested-member-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-nested-member-expr.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-reference-changes-type.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-reference-changes-type.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-reference-changes-type.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-variable-in-nested-block.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-variable-in-nested-block.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-variable-in-nested-block.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@capturing-variable-in-nested-function.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/capturing-variable-in-nested-function.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/capturing-variable-in-nested-function.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@chained-assignment-context-variable.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/chained-assignment-context-variable.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/chained-assignment-context-variable.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@chained-assignment-expressions.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/chained-assignment-expressions.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/chained-assignment-expressions.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@codegen-emit-imports-same-source.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/codegen-emit-imports-same-source.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/codegen-emit-imports-same-source.js
5 ---
6 Input:
7 // @enableEmitFreeze @instrumentForget
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@codegen-emit-make-read-only.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/codegen-emit-make-read-only.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/codegen-emit-make-read-only.js
5 ---
6 Input:
7 // @enableEmitFreeze true
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@codegen-instrument-forget-gating-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/codegen-instrument-forget-gating-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/codegen-instrument-forget-gating-test.js
5 ---
6 Input:
7 // @instrumentForget @compilationMode(annotation) @gating
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@codegen-instrument-forget-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/codegen-instrument-forget-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/codegen-instrument-forget-test.js
5 ---
6 Input:
7 // @instrumentForget @compilationMode(annotation)
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@complex-while.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/complex-while.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/complex-while.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@component.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/component.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/component.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@computed-call-evaluation-order.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/computed-call-evaluation-order.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/computed-call-evaluation-order.js
5 ---
6 Input:
7 // Should print A, B, arg, original
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@computed-call-spread.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/computed-call-spread.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/computed-call-spread.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@computed-load-primitive-as-dependency.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/computed-load-primitive-as-dependency.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/computed-load-primitive-as-dependency.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@computed-store-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/computed-store-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/computed-store-alias.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@concise-arrow-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/concise-arrow-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/concise-arrow-expr.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@cond-deps-conditional-member-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/cond-deps-conditional-member-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/cond-deps-conditional-member-expr.js
5 ---
6 Input:
7 // To preserve the nullthrows behavior and reactive deps of this code,
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@conditional-break-labeled.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/conditional-break-labeled.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/conditional-break-labeled.js
5 ---
6 Input:
7 /**
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@conditional-break.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/conditional-break.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/conditional-break.js
5 ---
6 Input:
7 /**
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@conditional-on-mutable.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/conditional-on-mutable.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/conditional-on-mutable.js
5 ---
6 Input:
7 function ComponentA(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@conditional-set-state-in-render.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/conditional-set-state-in-render.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/conditional-set-state-in-render.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@console-readonly.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/console-readonly.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/console-readonly.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@const-propagation-into-function-expression-global.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/const-propagation-into-function-expression-global.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/const-propagation-into-function-expression-global.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@const-propagation-into-function-expression-primitive.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/const-propagation-into-function-expression-primitive.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/const-propagation-into-function-expression-primitive.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@constant-computed.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/constant-computed.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/constant-computed.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@constant-propagation-for.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/constant-propagation-for.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/constant-propagation-for.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@constant-propagation-into-function-expressions.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/constant-propagation-into-function-expressions.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/constant-propagation-into-function-expressions.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@constant-propagation-phi.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/constant-propagation-phi.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/constant-propagation-phi.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@constant-propagation-while.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/constant-propagation-while.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/constant-propagation-while.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@constant-propagation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/constant-propagation.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/constant-propagation.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@constructor.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/constructor.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/constructor.js
5 ---
6 Input:
7 function Foo() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@context-variable-reassigned-outside-of-lambda.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/context-variable-reassigned-outside-of-lambda.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/context-variable-reassigned-outside-of-lambda.js
5 ---
6 Input:
7 // @debug
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@controlled-input.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/controlled-input.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/controlled-input.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@dce-loop.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/dce-loop.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/dce-loop.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@debugger-memoized.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/debugger-memoized.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/debugger-memoized.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@debugger.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/debugger.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/debugger.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@declare-reassign-variable-in-closure.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/declare-reassign-variable-in-closure.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/declare-reassign-variable-in-closure.js
5 ---
6 Input:
7 function Component(p) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@declare-reassign-variable-in-function-declaration.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/declare-reassign-variable-in-function-declaration.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/declare-reassign-variable-in-function-declaration.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@delete-computed-property.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/delete-computed-property.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/delete-computed-property.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@delete-property.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/delete-property.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/delete-property.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@dependencies-outputs.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/dependencies-outputs.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/dependencies-outputs.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@dependencies.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/dependencies.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/dependencies.js
5 ---
6 Input:
7 function foo(x, y, z) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructure-capture-global.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructure-capture-global.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructure-capture-global.js
5 ---
6 Input:
7 let someGlobal = {};
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructure-direct-reassignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructure-direct-reassignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructure-direct-reassignment.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-array-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-array-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-array-default.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-array-param-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-array-param-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-array-param-default.js
5 ---
6 Input:
7 function Component([a = 2]) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-assignment-array-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-assignment-array-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-assignment-array-default.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-assignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-assignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-assignment.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-mixed-scope-and-local-variables-with-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-mixed-scope-and-local-variables-with-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-mixed-scope-and-local-variables-with-default.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-mixed-scope-declarations-and-locals.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-mixed-scope-declarations-and-locals.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-mixed-scope-declarations-and-locals.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-object-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-object-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-object-default.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-object-param-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-object-param-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-object-param-default.js
5 ---
6 Input:
7 function Component({ a = 2 }) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring-property-inference.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring-property-inference.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring-property-inference.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@destructuring.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/destructuring.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/destructuring.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@disable-jsx-memoization.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/disable-jsx-memoization.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/disable-jsx-memoization.js
5 ---
6 Input:
7 // @memoizeJsxElements false
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@do-while-break.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/do-while-break.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/do-while-break.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@do-while-compound-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/do-while-compound-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/do-while-compound-test.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@do-while-conditional-break.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/do-while-conditional-break.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/do-while-conditional-break.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@do-while-continue.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/do-while-continue.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/do-while-continue.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@do-while-early-unconditional-break.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/do-while-early-unconditional-break.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/do-while-early-unconditional-break.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@do-while-simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/do-while-simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/do-while-simple.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@dominator.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/dominator.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/dominator.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@early-return.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/early-return.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/early-return.js
5 ---
6 Input:
7 function MyApp(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error._todo.computed-lval-in-destructure.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error._todo.computed-lval-in-destructure.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error._todo.computed-lval-in-destructure.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error._todo.multi-arrow-expr-export-default-gating-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error._todo.multi-arrow-expr-export-default-gating-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error._todo.multi-arrow-expr-export-default-gating-test.js
5 ---
6 Input:
7 // @gating
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.babel-existing-react-namespace-import.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.babel-existing-react-namespace-import.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.babel-existing-react-namespace-import.js
5 ---
6 Input:
7 import * as React from "react";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.bug-validate-no-set-state-not-all-mutable-range-extensions-are-bad.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.bug-validate-no-set-state-not-all-mutable-range-extensions-are-bad.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.bug-validate-no-set-state-not-all-mutable-range-extensions-are-bad.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.call-args-destructuring-asignment-complex.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.call-args-destructuring-asignment-complex.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.call-args-destructuring-asignment-complex.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.codegen-error-on-conflicting-imports.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.codegen-error-on-conflicting-imports.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.codegen-error-on-conflicting-imports.js
5 ---
6 Input:
7 // @enableEmitFreeze @instrumentForget
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.hoisted-function-declaration.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.hoisted-function-declaration.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.hoisted-function-declaration.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.hooks-with-React-namespace.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.hooks-with-React-namespace.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.hooks-with-React-namespace.js
5 ---
6 Input:
7 function Foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-access-ref-during-render.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-access-ref-during-render.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-access-ref-during-render.js
5 ---
6 Input:
7 // @debug
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-array-push-frozen.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-array-push-frozen.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-array-push-frozen.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-assign-hook-to-local.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-assign-hook-to-local.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-assign-hook-to-local.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-capture-func-passed-to-jsx.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-capture-func-passed-to-jsx.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-capture-func-passed-to-jsx.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-computed-store-to-frozen-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-computed-store-to-frozen-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-computed-store-to-frozen-value.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-delete-computed-property-of-frozen-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-delete-computed-property-of-frozen-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-delete-computed-property-of-frozen-value.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-delete-property-of-frozen-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-delete-property-of-frozen-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-delete-property-of-frozen-value.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-destructure-assignment-to-global.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-destructure-assignment-to-global.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-destructure-assignment-to-global.js
5 ---
6 Input:
7 function useFoo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-destructure-to-local-global-variables.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-destructure-to-local-global-variables.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-destructure-to-local-global-variables.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-freeze-conditionally-mutable-lambda.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-freeze-conditionally-mutable-lambda.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-freeze-conditionally-mutable-lambda.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-freeze-mutable-lambda-mutate-local.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-freeze-mutable-lambda-mutate-local.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-freeze-mutable-lambda-mutate-local.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-freeze-mutable-lambda-reassign-local.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-freeze-mutable-lambda-reassign-local.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-freeze-mutable-lambda-reassign-local.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-function-expression-mutates-immutable-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-function-expression-mutates-immutable-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-function-expression-mutates-immutable-value.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-mutate-after-aliased-freeze.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-mutate-after-aliased-freeze.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-mutate-after-aliased-freeze.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-mutate-after-freeze.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-mutate-after-freeze.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-mutate-after-freeze.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-pass-hook-as-call-arg.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-pass-hook-as-call-arg.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-pass-hook-as-call-arg.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-pass-hook-as-prop.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-pass-hook-as-prop.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-pass-hook-as-prop.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-pass-ref-to-function.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-pass-ref-to-function.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-pass-ref-to-function.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-property-store-to-frozen-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-property-store-to-frozen-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-property-store-to-frozen-value.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-ref-in-callback-invoked-during-render.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-ref-in-callback-invoked-during-render.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-ref-in-callback-invoked-during-render.js
5 ---
6 Input:
7 // @debug
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-ref-value-as-props.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-ref-value-as-props.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-ref-value-as-props.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-set-and-read-ref-during-render.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-set-and-read-ref-during-render.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-set-and-read-ref-during-render.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-sketchy-code-use-forget.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-sketchy-code-use-forget.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-sketchy-code-use-forget.js
5 ---
6 Input:
7 /* eslint-disable react-hooks/rules-of-hooks */
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-ternary-with-hook-values.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-ternary-with-hook-values.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-ternary-with-hook-values.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-unconditional-set-state-in-render.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-unconditional-set-state-in-render.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-unconditional-set-state-in-render.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-use-ref-added-to-dep-without-type-info.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-use-ref-added-to-dep-without-type-info.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-use-ref-added-to-dep-without-type-info.js
5 ---
6 Input:
7 function Foo({ a }) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-useMemo-async-callback.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-useMemo-async-callback.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-useMemo-async-callback.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.invalid-useMemo-callback-args.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.invalid-useMemo-callback-args.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.invalid-useMemo-callback-args.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.mutate-captured-arg-separately.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.mutate-captured-arg-separately.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.mutate-captured-arg-separately.js
5 ---
6 Input:
7 // Let's not support identifiers defined after use for now.
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.mutate-global-increment-op-invalid-react.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.mutate-global-increment-op-invalid-react.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.mutate-global-increment-op-invalid-react.js
5 ---
6 Input:
7 let renderCount = 0;
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.reassignment-to-global.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.reassignment-to-global.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.reassignment-to-global.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.todo-kitchensink.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.todo-kitchensink.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.todo-kitchensink.js
5 ---
6 Input:
7 function foo([a, b], { c, d, e = "e" }, f = "f", ...args) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.todo-unconditional-set-state-lambda.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.todo-unconditional-set-state-lambda.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.todo-unconditional-set-state-lambda.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.todo.destructure-assignment-to-context-var.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.todo.destructure-assignment-to-context-var.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.todo.destructure-assignment-to-context-var.js
5 ---
6 Input:
7 function useFoo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.useMemo-callback-generator.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.useMemo-callback-generator.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.useMemo-callback-generator.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@error.while-with-assignment-in-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/error.while-with-assignment-in-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/error.while-with-assignment-in-test.js
5 ---
6 Input:
7 function f(reader) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-destructured-rest-element.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-destructured-rest-element.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-destructured-rest-element.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-jsx-child.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-jsx-child.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-jsx-child.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-logical.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-logical.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-logical.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-non-escaping-interleaved-allocating-dependency.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-allocating-dependency.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-allocating-dependency.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-non-escaping-interleaved-allocating-nested-dependency.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-allocating-nested-dependency.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-allocating-nested-dependency.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-non-escaping-interleaved-primitive-dependency.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-primitive-dependency.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-non-escaping-interleaved-primitive-dependency.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-not-conditional-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-not-conditional-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-not-conditional-test.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-not-if-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-not-if-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-not-if-test.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-not-switch-case.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-not-switch-case.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-not-switch-case.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@escape-analysis-not-switch-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/escape-analysis-not-switch-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/escape-analysis-not-switch-test.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@expression-with-assignment-dynamic.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/expression-with-assignment-dynamic.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/expression-with-assignment-dynamic.js
5 ---
6 Input:
7 function f(y) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@expression-with-assignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/expression-with-assignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/expression-with-assignment.js
5 ---
6 Input:
7 function f() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@extend-scopes-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/extend-scopes-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/extend-scopes-if.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@fbt-call-complex-param-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/fbt-call-complex-param-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/fbt-call-complex-param-value.js
5 ---
6 Input:
7 import fbt from "fbt";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@fbt-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/fbt-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/fbt-call.js
5 ---
6 Input:
7 import fbt from "fbt";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@fbt-params-complex-param-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/fbt-params-complex-param-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/fbt-params-complex-param-value.js
5 ---
6 Input:
7 import fbt from "fbt";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@fbt-params.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/fbt-params.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/fbt-params.js
5 ---
6 Input:
7 import fbt from "fbt";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@fbt-template-string-same-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/fbt-template-string-same-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/fbt-template-string-same-scope.js
5 ---
6 Input:
7 import fbt from "fbt";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-empty-update-with-continue.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-empty-update-with-continue.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-empty-update-with-continue.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-empty-update.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-empty-update.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-empty-update.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-logical.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-logical.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-logical.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-of-break.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-of-break.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-of-break.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-of-conditional-break.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-of-conditional-break.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-of-conditional-break.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-of-continue.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-of-continue.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-of-continue.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-of-destructure.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-of-destructure.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-of-destructure.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-of-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-of-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-of-mutate.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-of-simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-of-simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-of-simple.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@for-return.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/for-return.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/for-return.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@frozen-after-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/frozen-after-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/frozen-after-alias.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@function-declaration-reassign.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/function-declaration-reassign.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/function-declaration-reassign.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@function-declaration-redeclare.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/function-declaration-redeclare.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/function-declaration-redeclare.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@function-declaration-simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/function-declaration-simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/function-declaration-simple.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@function-expression-captures-value-later-frozen-jsx.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/function-expression-captures-value-later-frozen-jsx.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/function-expression-captures-value-later-frozen-jsx.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@function-expression-maybe-mutates-hook-return-value.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/function-expression-maybe-mutates-hook-return-value.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/function-expression-maybe-mutates-hook-return-value.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@function-expression-with-store-to-parameter.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/function-expression-with-store-to-parameter.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/function-expression-with-store-to-parameter.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@function-param-assignment-pattern.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/function-param-assignment-pattern.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/function-param-assignment-pattern.js
5 ---
6 Input:
7 function Component(x = "default", y = [{}]) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@gating-test-export-default-function.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/gating-test-export-default-function.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/gating-test-export-default-function.js
5 ---
6 Input:
7 // @gating @compilationMode(annotation)
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@gating-test-export-function-and-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/gating-test-export-function-and-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/gating-test-export-function-and-default.js
5 ---
6 Input:
7 // @gating @compilationMode(annotation)
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@gating-test-export-function.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/gating-test-export-function.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/gating-test-export-function.js
5 ---
6 Input:
7 // @gating @compilationMode(annotation)
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@gating-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/gating-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/gating-test.js
5 ---
6 Input:
7 // @gating @compilationMode(annotation)
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@global-jsx-tag-lowered-between-mutations.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/global-jsx-tag-lowered-between-mutations.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/global-jsx-tag-lowered-between-mutations.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@globals-Boolean.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/globals-Boolean.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/globals-Boolean.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@globals-Number.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/globals-Number.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/globals-Number.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@globals-String.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/globals-String.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/globals-String.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@holey-array-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/holey-array-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/holey-array-expr.js
5 ---
6 Input:
7 function t(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@holey-array-pattern-dce-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/holey-array-pattern-dce-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/holey-array-pattern-dce-2.js
5 ---
6 Input:
7 function t(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@holey-array-pattern-dce.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/holey-array-pattern-dce.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/holey-array-pattern-dce.js
5 ---
6 Input:
7 function t(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@holey-array.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/holey-array.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/holey-array.js
5 ---
6 Input:
7 function t(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@hook-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/hook-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/hook-call.js
5 ---
6 Input:
7 function useFreeze() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@hook-inside-logical-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/hook-inside-logical-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/hook-inside-logical-expression.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@hooks-freeze-arguments.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/hooks-freeze-arguments.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/hooks-freeze-arguments.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@hooks-freeze-possibly-mutable-arguments.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/hooks-freeze-possibly-mutable-arguments.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/hooks-freeze-possibly-mutable-arguments.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@immutable-hooks.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/immutable-hooks.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/immutable-hooks.js
5 ---
6 Input:
7 // @enableAssumeHooksFollowRulesOfReact true
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@inadvertent-mutability-readonly-class.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/inadvertent-mutability-readonly-class.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/inadvertent-mutability-readonly-class.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@inadvertent-mutability-readonly-lambda.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/inadvertent-mutability-readonly-lambda.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/inadvertent-mutability-readonly-lambda.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@independent-across-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/independent-across-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/independent-across-if.js
5 ---
6 Input:
7 function compute() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@independent.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/independent.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/independent.js
5 ---
6 Input:
7 /**
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@independently-memoize-object-property.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/independently-memoize-object-property.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/independently-memoize-object-property.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@infer-computed-delete.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/infer-computed-delete.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/infer-computed-delete.js
5 ---
6 Input:
7 // @debug
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@infer-global-object.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/infer-global-object.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/infer-global-object.js
5 ---
6 Input:
7 // Check that we correctly resolve type and effect lookups on the javascript
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@infer-phi-primitive.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/infer-phi-primitive.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/infer-phi-primitive.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@infer-property-delete.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/infer-property-delete.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/infer-property-delete.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@infer-types-through-type-cast.flow.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/infer-types-through-type-cast.flow.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/infer-types-through-type-cast.flow.js
5 ---
6 Input:
7 // @flow
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@inner-memo-value-not-promoted-to-outer-scope-dynamic.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/inner-memo-value-not-promoted-to-outer-scope-dynamic.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/inner-memo-value-not-promoted-to-outer-scope-dynamic.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@inner-memo-value-not-promoted-to-outer-scope-static.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/inner-memo-value-not-promoted-to-outer-scope-static.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/inner-memo-value-not-promoted-to-outer-scope-static.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@interdependent-across-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/interdependent-across-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/interdependent-across-if.js
5 ---
6 Input:
7 function compute() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@interdependent.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/interdependent.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/interdependent.js
5 ---
6 Input:
7 /**
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@inverted-if-else.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/inverted-if-else.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/inverted-if-else.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@inverted-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/inverted-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/inverted-if.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@issue852.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/issue852.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/issue852.js
5 ---
6 Input:
7 function Component(c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@issue933-disjoint-set-infinite-loop.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/issue933-disjoint-set-infinite-loop.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/issue933-disjoint-set-infinite-loop.js
5 ---
6 Input:
7 // This caused an infinite loop in the compiler
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-empty-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-empty-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-empty-expression.js
5 ---
6 Input:
7 export function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-fragment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-fragment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-fragment.js
5 ---
6 Input:
7 function Foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-member-expression-tag-grouping.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-member-expression-tag-grouping.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-member-expression-tag-grouping.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-member-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-member-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-member-expression.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-namespaced-name.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-namespaced-name.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-namespaced-name.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-spread.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-spread.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-spread.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-tag-evaluation-order-non-global.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-tag-evaluation-order-non-global.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-tag-evaluation-order-non-global.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@jsx-tag-evaluation-order.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/jsx-tag-evaluation-order.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/jsx-tag-evaluation-order.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@lambda-capture-returned-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/lambda-capture-returned-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/lambda-capture-returned-alias.js
5 ---
6 Input:
7 // Here, element should not be memoized independently of aliasedElement, since
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@lambda-mutate-shadowed-object.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/lambda-mutate-shadowed-object.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/lambda-mutate-shadowed-object.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@lambda-mutated-non-reactive-to-reactive.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/lambda-mutated-non-reactive-to-reactive.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/lambda-mutated-non-reactive-to-reactive.js
5 ---
6 Input:
7 function f(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@lambda-mutated-ref-non-reactive.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/lambda-mutated-ref-non-reactive.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/lambda-mutated-ref-non-reactive.js
5 ---
6 Input:
7 function f(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@lambda-reassign-primitive.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/lambda-reassign-primitive.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/lambda-reassign-primitive.js
5 ---
6 Input:
7 // writing to primitives is not a 'mutate' or 'store' to context references,
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@lambda-reassign-shadowed-primitive.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/lambda-reassign-shadowed-primitive.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/lambda-reassign-shadowed-primitive.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@lambda-with-fbt.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/lambda-with-fbt.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/lambda-with-fbt.js
5 ---
6 Input:
7 import { fbt } from "fbt";
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@logical-expression-object.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/logical-expression-object.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/logical-expression-object.js
5 ---
6 Input:
7 function component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@logical-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/logical-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/logical-expression.js
5 ---
6 Input:
7 function component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@method-call-computed.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/method-call-computed.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/method-call-computed.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@method-call-fn-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/method-call-fn-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/method-call-fn-call.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@method-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/method-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/method-call.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@multi-arrow-expr-export-gating-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/multi-arrow-expr-export-gating-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/multi-arrow-expr-export-gating-test.js
5 ---
6 Input:
7 // @gating
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@multi-arrow-expr-gating-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/multi-arrow-expr-gating-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/multi-arrow-expr-gating-test.js
5 ---
6 Input:
7 // @gating
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@mutable-lifetime-loops.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/mutable-lifetime-loops.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/mutable-lifetime-loops.js
5 ---
6 Input:
7 function mutate(x, y) {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@mutable-lifetime-with-aliasing.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/mutable-lifetime-with-aliasing.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/mutable-lifetime-with-aliasing.js
5 ---
6 Input:
7 function mutate(x, y) {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@mutable-liverange-loop.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/mutable-liverange-loop.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/mutable-liverange-loop.js
5 ---
6 Input:
7 function mutate() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@nested-function-shadowed-identifiers.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/nested-function-shadowed-identifiers.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/nested-function-shadowed-identifiers.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@nested-optional-member-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/nested-optional-member-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/nested-optional-member-expr.js
5 ---
6 Input:
7 // We should codegen nested optional properties correctly
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@nested-scopes-hook-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/nested-scopes-hook-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/nested-scopes-hook-call.js
5 ---
6 Input:
7 function component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@new-spread.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/new-spread.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/new-spread.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@nonoptional-load-from-optional-memberexpr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/nonoptional-load-from-optional-memberexpr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/nonoptional-load-from-optional-memberexpr.js
5 ---
6 Input:
7 // Note that `a?.b.c` is semantically different from `(a?.b).c`
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@obj-literal-cached-in-if-else.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/obj-literal-cached-in-if-else.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/obj-literal-cached-in-if-else.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@obj-literal-mutated-after-if-else.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/obj-literal-mutated-after-if-else.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/obj-literal-mutated-after-if-else.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@obj-mutated-after-if-else-with-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/obj-mutated-after-if-else-with-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/obj-mutated-after-if-else-with-alias.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@obj-mutated-after-if-else.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/obj-mutated-after-if-else.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/obj-mutated-after-if-else.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@obj-mutated-after-nested-if-else-with-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/obj-mutated-after-nested-if-else-with-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/obj-mutated-after-nested-if-else-with-alias.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@object-computed-access-assignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/object-computed-access-assignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/object-computed-access-assignment.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@object-expression-string-literal-key.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/object-expression-string-literal-key.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/object-expression-string-literal-key.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@object-literal-spread-element.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/object-literal-spread-element.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/object-literal-spread-element.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@object-pattern-params.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/object-pattern-params.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/object-pattern-params.js
5 ---
6 Input:
7 function component({ a, b }) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@object-properties.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/object-properties.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/object-properties.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-call-chained.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-call-chained.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-call-chained.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-call-logical.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-call-logical.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-call-logical.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-call-simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-call-simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-call-simple.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-call-with-independently-memoizable-arg.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-call-with-independently-memoizable-arg.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-call-with-independently-memoizable-arg.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-call-with-optional-property-load.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-call-with-optional-property-load.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-call-with-optional-property-load.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-call.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-computed-load-static.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-computed-load-static.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-computed-load-static.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-computed-member-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-computed-member-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-computed-member-expression.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-member-expression-call-as-property.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-member-expression-call-as-property.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-member-expression-call-as-property.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-member-expression-chain.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-member-expression-chain.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-member-expression-chain.js
5 ---
6 Input:
7 // Note that `a?.b.c` is semantically different from `(a?.b).c`
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-member-expression-with-optional-member-expr-as-property.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-member-expression-with-optional-member-expr-as-property.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-member-expression-with-optional-member-expr-as-property.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-member-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-member-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-member-expression.js
5 ---
6 Input:
7 function Foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-method-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-method-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-method-call.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-receiver-method-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-receiver-method-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-receiver-method-call.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@optional-receiver-optional-method.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/optional-receiver-optional-method.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/optional-receiver-optional-method.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@overlapping-scopes-interleaved-by-terminal.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/overlapping-scopes-interleaved-by-terminal.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/overlapping-scopes-interleaved-by-terminal.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@overlapping-scopes-interleaved.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/overlapping-scopes-interleaved.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/overlapping-scopes-interleaved.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@overlapping-scopes-shadowed.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/overlapping-scopes-shadowed.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/overlapping-scopes-shadowed.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@overlapping-scopes-shadowing-within-block.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/overlapping-scopes-shadowing-within-block.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/overlapping-scopes-shadowing-within-block.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@overlapping-scopes-while.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/overlapping-scopes-while.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/overlapping-scopes-while.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@overlapping-scopes-within-block.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/overlapping-scopes-within-block.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/overlapping-scopes-within-block.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@primitive-alias-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/primitive-alias-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/primitive-alias-mutate.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@primitive-as-dep-nested-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/primitive-as-dep-nested-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/primitive-as-dep-nested-scope.js
5 ---
6 Input:
7 // props.b + 1 is an non-allocating expression, which means Forget can
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@primitive-as-dep.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/primitive-as-dep.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/primitive-as-dep.js
5 ---
6 Input:
7 // props.b + 1 is an non-allocating expression, which means Forget can
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@prop-capturing-function-1.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/prop-capturing-function-1.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/prop-capturing-function-1.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@property-assignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/property-assignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/property-assignment.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@property-call-evaluation-order.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/property-call-evaluation-order.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/property-call-evaluation-order.js
5 ---
6 Input:
7 // Should print A, arg, original
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@property-call-spread.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/property-call-spread.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/property-call-spread.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reactive-dependencies-non-optional-properties-inside-optional-chain.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reactive-dependencies-non-optional-properties-inside-optional-chain.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reactive-dependencies-non-optional-properties-inside-optional-chain.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reactive-scope-grouping.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reactive-scope-grouping.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reactive-scope-grouping.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reactive-scopes-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reactive-scopes-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reactive-scopes-if.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reactive-scopes.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reactive-scopes.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reactive-scopes.js
5 ---
6 Input:
7 function f(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reactivity-analysis-interleaved-reactivity.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reactivity-analysis-interleaved-reactivity.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reactivity-analysis-interleaved-reactivity.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reactivity-analysis-reactive-via-mutation-of-computed-load.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reactivity-analysis-reactive-via-mutation-of-computed-load.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reactivity-analysis-reactive-via-mutation-of-computed-load.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reactivity-analysis-reactive-via-mutation-of-property-load.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reactivity-analysis-reactive-via-mutation-of-property-load.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reactivity-analysis-reactive-via-mutation-of-property-load.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reassign-object-in-context.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reassign-object-in-context.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reassign-object-in-context.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reassign-primitive-in-context.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reassign-primitive-in-context.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reassign-primitive-in-context.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reassigned-phi-in-returned-function-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reassigned-phi-in-returned-function-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reassigned-phi-in-returned-function-expression.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reassignment-conditional.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reassignment-conditional.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reassignment-conditional.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reassignment-separate-scopes.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reassignment-separate-scopes.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reassignment-separate-scopes.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reassignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reassignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reassignment.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@recursive-function-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/recursive-function-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/recursive-function-expr.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-cfg-condexpr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-condexpr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-condexpr.js
5 ---
6 Input:
7 // props.a.b should be added as a unconditional dependency to the reactive
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-cfg-ifelse.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-ifelse.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-ifelse.js
5 ---
6 Input:
7 // props.a.b should be added as a unconditional dependency to the reactive
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-cfg-nested-ifelse-missing.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-nested-ifelse-missing.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-nested-ifelse-missing.js
5 ---
6 Input:
7 // props.a.b should NOT be added as a unconditional dependency to the reactive
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-cfg-nested-ifelse.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-nested-ifelse.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-nested-ifelse.js
5 ---
6 Input:
7 // props.a.b should be added as a unconditional dependency to the reactive
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-cfg-switch-missing-case.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch-missing-case.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch-missing-case.js
5 ---
6 Input:
7 // props.a.b should NOT be added as a unconditional dependency to the reactive
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-cfg-switch-missing-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch-missing-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch-missing-default.js
5 ---
6 Input:
7 // props.a.b should NOT be added as a unconditional dependency to the reactive
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-cfg-switch.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-cfg-switch.js
5 ---
6 Input:
7 // props.a.b should be added as a unconditional dependency to the reactive
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-no-uncond.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-no-uncond.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-no-uncond.js
5 ---
6 Input:
7 // When an object's properties are only read conditionally, we should
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-promote-uncond.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-promote-uncond.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-promote-uncond.js
5 ---
6 Input:
7 // When a conditional dependency `props.a.b.c` has no unconditional dependency
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-subpath-order1.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-subpath-order1.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-subpath-order1.js
5 ---
6 Input:
7 // When a conditional dependency `props.a` is a subpath of an unconditional
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-subpath-order2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-subpath-order2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-subpath-order2.js
5 ---
6 Input:
7 // When a conditional dependency `props.a` is a subpath of an unconditional
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-superpath-order1.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-superpath-order1.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-superpath-order1.js
5 ---
6 Input:
7 // When an unconditional dependency `props.a` is the subpath of a conditional
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-deps-superpath-order2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-superpath-order2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-deps-superpath-order2.js
5 ---
6 Input:
7 // When an unconditional dependency `props.a` is the subpath of a conditional
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-cond-memberexpr-join.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-cond-memberexpr-join.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-cond-memberexpr-join.js
5 ---
6 Input:
7 // To preserve the nullthrows behavior and reactive deps of this code,
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-dependencies-optional-member-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-dependencies-optional-member-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-dependencies-optional-member-expression.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-deps-cond-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-deps-cond-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-deps-cond-scope.js
5 ---
6 Input:
7 // Some reactive scopes are created within a conditional. If a child scope
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-deps-join-uncond-scopes-cond-deps.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-deps-join-uncond-scopes-cond-deps.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-deps-join-uncond-scopes-cond-deps.js
5 ---
6 Input:
7 // This tests an optimization, NOT a correctness property.
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-uncond-deps-nonoverlap-descendant.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-nonoverlap-descendant.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-nonoverlap-descendant.js
5 ---
6 Input:
7 // Test that we can track non-overlapping dependencies separately.
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-uncond-deps-nonoverlap-direct.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-nonoverlap-direct.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-nonoverlap-direct.js
5 ---
6 Input:
7 // Test that we can track non-overlapping dependencies separately.
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-uncond-deps-overlap-descendant.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-overlap-descendant.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-overlap-descendant.js
5 ---
6 Input:
7 // Test that we correctly track a subpath if the subpath itself is accessed as
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-uncond-deps-overlap-direct.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-overlap-direct.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-overlap-direct.js
5 ---
6 Input:
7 // Test that we correctly track a subpath if the subpath itself is accessed as
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-uncond-deps-subpath-order1.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order1.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order1.js
5 ---
6 Input:
7 // Determine that we only need to track p.a here
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-uncond-deps-subpath-order2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order2.js
5 ---
6 Input:
7 // Determine that we only need to track p.a here
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reduce-reactive-uncond-deps-subpath-order3.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order3.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reduce-reactive-uncond-deps-subpath-order3.js
5 ---
6 Input:
7 // Determine that we only need to track p.a here
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-current-aliased-no-added-to-dep.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-current-aliased-no-added-to-dep.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-current-aliased-no-added-to-dep.js
5 ---
6 Input:
7 // @validateRefAccessDuringRender false
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-current-aliased-not-added-to-dep-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-current-aliased-not-added-to-dep-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-current-aliased-not-added-to-dep-2.js
5 ---
6 Input:
7 // @validateRefAccessDuringRender false
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-current-field-not-added-to-dep.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-current-field-not-added-to-dep.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-current-field-not-added-to-dep.js
5 ---
6 Input:
7 // @validateRefAccessDuringRender false
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-current-not-added-to-dep-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-current-not-added-to-dep-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-current-not-added-to-dep-2.js
5 ---
6 Input:
7 // @validateRefAccessDuringRender false
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-current-not-added-to-dep.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-current-not-added-to-dep.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-current-not-added-to-dep.js
5 ---
6 Input:
7 function VideoTab() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-current-optional-field-no-added-to-dep.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-current-optional-field-no-added-to-dep.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-current-optional-field-no-added-to-dep.js
5 ---
6 Input:
7 function VideoTab() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-current-write-not-added-to-dep.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-current-write-not-added-to-dep.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-current-write-not-added-to-dep.js
5 ---
6 Input:
7 function VideoTab() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ref-in-effect.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ref-in-effect.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ref-in-effect.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@regexp-literal.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/regexp-literal.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/regexp-literal.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@remove-memoization-kitchen-sink.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/remove-memoization-kitchen-sink.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/remove-memoization-kitchen-sink.js
5 ---
6 Input:
7 // @disableAllMemoization true
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@repro-reassign-to-variable-without-mutable-range.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/repro-reassign-to-variable-without-mutable-range.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/repro-reassign-to-variable-without-mutable-range.js
5 ---
6 Input:
7 // @debug
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@repro-scope-missing-mutable-range.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/repro-scope-missing-mutable-range.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/repro-scope-missing-mutable-range.js
5 ---
6 Input:
7 function HomeDiscoStoreItemTileRating(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@repro.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/repro.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/repro.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@return-conditional.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/return-conditional.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/return-conditional.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@return-undefined.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/return-undefined.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/return-undefined.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@reverse-postorder.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/reverse-postorder.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/reverse-postorder.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@same-variable-as-dep-and-redeclare-maybe-frozen.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/same-variable-as-dep-and-redeclare-maybe-frozen.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/same-variable-as-dep-and-redeclare-maybe-frozen.js
5 ---
6 Input:
7 // note: comments are for the ideal scopes, not what is currently
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@same-variable-as-dep-and-redeclare.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/same-variable-as-dep-and-redeclare.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/same-variable-as-dep-and-redeclare.js
5 ---
6 Input:
7 // note: comments are for the ideal scopes, not what is currently
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@sequence-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/sequence-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/sequence-expression.js
5 ---
6 Input:
7 function sequence(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@sequentially-constant-progagatable-if-test-conditions.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/sequentially-constant-progagatable-if-test-conditions.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/sequentially-constant-progagatable-if-test-conditions.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@simple-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/simple-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/simple-alias.js
5 ---
6 Input:
7 function mutate() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@simple-function-1.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/simple-function-1.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/simple-function-1.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@simple-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/simple-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/simple-scope.js
5 ---
6 Input:
7 function foo(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/simple.js
5 ---
6 Input:
7 export default function foo(x, y) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@sketchy-code-exhaustive-deps.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/sketchy-code-exhaustive-deps.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/sketchy-code-exhaustive-deps.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@sketchy-code-rules-of-hooks.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/sketchy-code-rules-of-hooks.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/sketchy-code-rules-of-hooks.js
5 ---
6 Input:
7 /* eslint-disable react-hooks/rules-of-hooks */
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-arrayexpression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-arrayexpression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-arrayexpression.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-call-jsx-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-call-jsx-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-call-jsx-2.js
5 ---
6 Input:
7 // @Pass runMutableRangeAnalysis
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-call-jsx.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-call-jsx.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-call-jsx.js
5 ---
6 Input:
7 function foo() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-cascading-eliminated-phis.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-cascading-eliminated-phis.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-cascading-eliminated-phis.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-complex-multiple-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-complex-multiple-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-complex-multiple-if.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-complex-single-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-complex-single-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-complex-single-if.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-for-of.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-for-of.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-for-of.js
5 ---
6 Input:
7 function foo(cond) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-for-trivial-update.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-for-trivial-update.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-for-trivial-update.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-for.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-for.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-for.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-if-else.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-if-else.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-if-else.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-leave-case.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-leave-case.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-leave-case.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-multiple-phis.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-multiple-phis.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-multiple-phis.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-nested-loops-no-reassign.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-nested-loops-no-reassign.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-nested-loops-no-reassign.js
5 ---
6 Input:
7 // @xonly
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-nested-partial-phi.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-nested-partial-phi.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-nested-partial-phi.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-nested-partial-reassignment.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-nested-partial-reassignment.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-nested-partial-reassignment.js
5 ---
6 Input:
7 function foo(a, b, c, d, e) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-newexpression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-newexpression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-newexpression.js
5 ---
6 Input:
7 function Foo() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-non-empty-initializer.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-non-empty-initializer.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-non-empty-initializer.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-objectexpression-phi.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-objectexpression-phi.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-objectexpression-phi.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-objectexpression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-objectexpression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-objectexpression.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-alias-alias-mutate-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-alias-alias-mutate-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-alias-alias-mutate-if.js
5 ---
6 Input:
7 function foo(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-alias-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-alias-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-alias-if.js
5 ---
6 Input:
7 function foo(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-alias-mutate-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-alias-mutate-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-alias-mutate-if.js
5 ---
6 Input:
7 function foo(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-alias-mutate-inside-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-alias-mutate-inside-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-alias-mutate-inside-if.js
5 ---
6 Input:
7 function foo(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-alias-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-alias-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-alias-mutate.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-call.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-mutate-2.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-mutate-2.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-mutate-2.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-mutate-alias.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-mutate-alias.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-mutate-alias.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property-mutate.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property-mutate.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property-mutate.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-property.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-property.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-property.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-reassign-in-rval.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-reassign-in-rval.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-reassign-in-rval.js
5 ---
6 Input:
7 // Forget should call the original x (x = foo()) to compute result
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-reassign.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-reassign.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-reassign.js
5 ---
6 Input:
7 function foo(a, b, c) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-ternary-destruction-with-mutation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-ternary-destruction-with-mutation.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary-destruction-with-mutation.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-ternary-destruction.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-ternary-destruction.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary-destruction.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-ternary-with-mutation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-ternary-with-mutation.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary-with-mutation.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-ternary.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-ternary.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-ternary.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-unconditional-ternary-with-mutation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-unconditional-ternary-with-mutation.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-unconditional-ternary-with-mutation.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-unconditional-ternary.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-unconditional-ternary.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-unconditional-ternary.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-unconditional-with-mutation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-unconditional-with-mutation.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-unconditional-with-mutation.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-via-destructuring-with-mutation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-via-destructuring-with-mutation.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-via-destructuring-with-mutation.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-via-destructuring.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-via-destructuring.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-via-destructuring.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming-with-mutation.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming-with-mutation.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming-with-mutation.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-renaming.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-renaming.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-renaming.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-return.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-return.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-return.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-shadowing.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-shadowing.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-shadowing.js
5 ---
6 Input:
7 function log() {}
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-sibling-phis.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-sibling-phis.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-sibling-phis.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-simple-phi.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-simple-phi.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-simple-phi.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-simple.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-single-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-single-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-single-if.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-switch.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-switch.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-switch.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-throw.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-throw.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-throw.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-while-no-reassign.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-while-no-reassign.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-while-no-reassign.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ssa-while.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ssa-while.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ssa-while.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@store-via-call.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/store-via-call.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/store-via-call.js
5 ---
6 Input:
7 function foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@store-via-new.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/store-via-new.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/store-via-new.js
5 ---
6 Input:
7 function Foo() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@switch-global-propertyload-case-test.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/switch-global-propertyload-case-test.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/switch-global-propertyload-case-test.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@switch-non-final-default.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/switch-non-final-default.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/switch-non-final-default.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@switch-with-fallthrough.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/switch-with-fallthrough.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/switch-with-fallthrough.js
5 ---
6 Input:
7 function foo(x) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@switch.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/switch.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/switch.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@tagged-template-in-hook.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/tagged-template-in-hook.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/tagged-template-in-hook.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@tagged-template-literal.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/tagged-template-literal.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/tagged-template-literal.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@template-literal.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/template-literal.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/template-literal.js
5 ---
6 Input:
7 function componentA(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@temporary-accessed-outside-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/temporary-accessed-outside-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/temporary-accessed-outside-scope.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@temporary-at-start-of-value-block.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/temporary-at-start-of-value-block.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/temporary-at-start-of-value-block.js
5 ---
6 Input:
7 function component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@temporary-property-load-accessed-outside-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/temporary-property-load-accessed-outside-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/temporary-property-load-accessed-outside-scope.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ternary-assignment-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ternary-assignment-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ternary-assignment-expression.js
5 ---
6 Input:
7 function ternary(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@ternary-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/ternary-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/ternary-expression.js
5 ---
6 Input:
7 function ternary(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@timers.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/timers.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/timers.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@todo-function-expression-captures-value-later-frozen.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/todo-function-expression-captures-value-later-frozen.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/todo-function-expression-captures-value-later-frozen.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@todo.unnecessary-lambda-memoization.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/todo.unnecessary-lambda-memoization.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/todo.unnecessary-lambda-memoization.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@transitive-alias-fields.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/transitive-alias-fields.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/transitive-alias-fields.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@trivial.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/trivial.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/trivial.js
5 ---
6 Input:
7 function foo(x) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-args-test-binary-operator.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-args-test-binary-operator.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-args-test-binary-operator.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-binary-operator.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-binary-operator.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-binary-operator.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-cast-expression.flow.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-cast-expression.flow.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-cast-expression.flow.js
5 ---
6 Input:
7 // @flow
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-field-load.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-field-load.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-field-load.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-test-field-load-binary-op.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-test-field-load-binary-op.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-test-field-load-binary-op.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-test-field-store.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-test-field-store.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-test-field-store.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-test-polymorphic.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-test-polymorphic.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-test-polymorphic.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-test-primitive.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-test-primitive.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-test-primitive.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@type-test-return-type-inference.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/type-test-return-type-inference.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/type-test-return-type-inference.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unary-expr.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unary-expr.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unary-expr.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unconditional-break-label.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unconditional-break-label.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unconditional-break-label.js
5 ---
6 Input:
7 function foo(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@uninitialized-declaration-in-reactive-scope.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/uninitialized-declaration-in-reactive-scope.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/uninitialized-declaration-in-reactive-scope.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unknown-hooks-do-not-assert.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unknown-hooks-do-not-assert.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unknown-hooks-do-not-assert.js
5 ---
6 Input:
7 // Forget currently bails out when it detects a potential mutation (Effect.Mutate)
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-array-middle-element.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-array-middle-element.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-array-middle-element.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-array-rest-element.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-array-rest-element.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-array-rest-element.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-conditional.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-conditional.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-conditional.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-logical-assigned-to-variable.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-logical-assigned-to-variable.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-logical-assigned-to-variable.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-logical.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-logical.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-logical.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-object-element-with-rest.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-object-element-with-rest.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-object-element-with-rest.js
5 ---
6 Input:
7 function Foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-object-element.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-object-element.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-object-element.js
5 ---
6 Input:
7 function Foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-optional-method-assigned-to-variable.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-optional-method-assigned-to-variable.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-optional-method-assigned-to-variable.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@unused-ternary-assigned-to-variable.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/unused-ternary-assigned-to-variable.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/unused-ternary-assigned-to-variable.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@update-expression.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/update-expression.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/update-expression.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@use-callback-simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/use-callback-simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/use-callback-simple.js
5 ---
6 Input:
7 function component() {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useEffect-arg-memoized.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useEffect-arg-memoized.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useEffect-arg-memoized.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useEffect-nested-lambdas.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useEffect-nested-lambdas.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useEffect-nested-lambdas.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-if-else-multiple-return.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-if-else-multiple-return.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-if-else-multiple-return.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-independently-memoizeable.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-independently-memoizeable.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-independently-memoizeable.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-inlining-block-return.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-inlining-block-return.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-inlining-block-return.js
5 ---
6 Input:
7 function component(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-inverted-if.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-inverted-if.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-inverted-if.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-labeled-statement-unconditional-return.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-labeled-statement-unconditional-return.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-labeled-statement-unconditional-return.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-logical.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-logical.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-logical.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-multiple-if-else.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-multiple-if-else.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-multiple-if-else.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-named-function.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-named-function.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-named-function.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-nested-ifs.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-nested-ifs.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-nested-ifs.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-return-empty.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-return-empty.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-return-empty.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-simple.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-simple.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-simple.js
5 ---
6 Input:
7 function component(a) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-switch-no-fallthrough.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-switch-no-fallthrough.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-switch-no-fallthrough.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@useMemo-switch-return.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/useMemo-switch-return.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/useMemo-switch-return.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@while-break.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/while-break.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/while-break.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@while-conditional-continue.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/while-conditional-continue.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/while-conditional-continue.js
5 ---
6 Input:
7 function foo(a, b, c, d) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@while-logical.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/while-logical.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/while-logical.js
5 ---
6 Input:
7 function foo(props) {
compiler/crates/react_hermes_parser/tests/snapshots/parser_test__fixtures@while-property.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_hermes_parser/tests/parser_test.rs
2 +source: crates/react_hermes_parser/tests/parser_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{output}\")"
4 -input_file: crates/forget_hermes_parser/tests/fixtures/while-property.js
4 +input_file: crates/react_hermes_parser/tests/fixtures/while-property.js
5 ---
6 Input:
7 function foo(a, b) {
compiler/crates/react_hir/Cargo.toml renamed
+5 -5
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_hir"
2 +name = "react_hir"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -13,10 +13,10 @@ repository.workspace = true
13 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
15 [dependencies]
16 -forget_estree = { workspace = true }
16 +react_estree = { workspace = true }
17 indexmap = { workspace = true }
18 serde = { workspace = true }
19 -forget_utils = { workspace = true }
20 -forget_diagnostics = { workspace = true }
21 -forget_semantic_analysis = { workspace = true }
19 +react_utils = { workspace = true }
20 +react_diagnostics = { workspace = true }
21 +react_semantic_analysis = { workspace = true }
22 thiserror = { workspace = true }
compiler/crates/react_hir/README.md renamed
+7 -7
@@ -1,21 +1,21 @@
1 # HIR
2
3 -This crate defines the High-level Intermediate Representation (HIR) used by Forget.
3 +This crate defines the High-level Intermediate Representation (HIR) used by React Compiler.
4
5 -While the name is inspired by Rust Compiler's HIR, Forget's HIR is actually quite different.
5 +While the name is inspired by Rust Compiler's HIR, React Compiler's HIR is actually quite different.
6 Rust's HIR is effectively a compact AST, effectively a slightly more canonical form than the
7 concrete syntax tree produced by the parser.
8
9 -Forget has two goals that are in tension:
9 +React Compiler has two goals that are in tension:
10
11 -1. Forget needs a detailed understanding of the control-flow semantics and performs sophisticated
11 +1. React Compiler needs a detailed understanding of the control-flow semantics and performs sophisticated
12 data-flow and semantic analysis, all of which benefit from more traditional control-flow graph
13 representation with flat instruction sequences.
14 -2. At the same time, Forget needs to output code in the original language, and ideally should
14 +2. At the same time, React Compiler needs to output code in the original language, and ideally should
15 produce code that is as similar as possible (for comprehension) and compact (to avoid increasing
16 bandwidth costs and time to download).
17
18 -To satisfy both goals, Forget's HIR uses a hybrid of a traditional intermediate representation and
18 +To satisfy both goals, React Compiler's HIR uses a hybrid of a traditional intermediate representation and
19 an AST:
20
21 1. The HIR is a control-flow graph, with one or more basic blocks each of which contains zero or more
@@ -28,5 +28,5 @@ an AST:
28 JavaScript, such as "ternary", "logical", "optional", "sequence", etc. Notably, these terminals contain
29 named fields with links to successors (eg "for" has fields for the init, test, update, and body blocks)
30 but also for the "fallthrough" block, ie the block to the code that comes "after" all the logic of
31 - the terminal. This fallthrough allows Forget to retain the shape of the AST and recover it later in
31 + the terminal. This fallthrough allows React Compiler to retain the shape of the AST and recover it later in
32 compilation.
\ No newline at end of file
compiler/crates/react_hir/src/basic_block.rs renamed
compiler/crates/react_hir/src/environment.rs renamed
+2 -2
@@ -2,8 +2,8 @@ use std::cell::{Cell, RefCell};
2 use std::collections::HashMap;
3 use std::rc::Rc;
4
5 -use forget_estree::ESTreeNode;
6 -use forget_semantic_analysis::{DeclarationId, ScopeManager, ScopeView};
5 +use react_estree::ESTreeNode;
6 +use react_semantic_analysis::{DeclarationId, ScopeManager, ScopeView};
7
8 use crate::{
9 BlockId, Features, Identifier, IdentifierData, IdentifierId, MutableRange, Registry, Type,
compiler/crates/react_hir/src/features.rs renamed
compiler/crates/react_hir/src/function.rs renamed
+1 -1
@@ -1,5 +1,5 @@
1 -use forget_diagnostics::Diagnostic;
1 use indexmap::IndexMap;
2 +use react_diagnostics::Diagnostic;
3
4 use crate::{BasicBlock, BlockId, FunctionExpression, IdentifierOperand, InstrIx, Instruction};
5
compiler/crates/react_hir/src/id_types.rs renamed
compiler/crates/react_hir/src/initialize.rs renamed
+1 -1
@@ -1,6 +1,6 @@
1 use std::collections::HashSet;
2
3 -use forget_diagnostics::{invariant, Diagnostic};
3 +use react_diagnostics::{invariant, Diagnostic};
4 use thiserror::Error;
5
6 use crate::{
compiler/crates/react_hir/src/inline_use_memo.rs renamed
+1 -1
@@ -2,7 +2,7 @@ use std::cell::RefCell;
2 use std::collections::{HashMap, HashSet};
3 use std::rc::Rc;
4
5 -use forget_diagnostics::Diagnostic;
5 +use react_diagnostics::Diagnostic;
6
7 use crate::{
8 initialize_hir, BasicBlock, BlockRewriter, BlockRewriterAction, DeclareLocal, Environment,
compiler/crates/react_hir/src/instruction.rs renamed
+1 -1
@@ -2,7 +2,7 @@ use std::cell::RefCell;
2 use std::fmt::Display;
3 use std::rc::Rc;
4
5 -use forget_estree::{BinaryOperator, JsValue};
5 +use react_estree::{BinaryOperator, JsValue};
6
7 use crate::{Function, IdentifierId, InstructionId, ScopeId, Type};
8
compiler/crates/react_hir/src/lib.rs renamed
compiler/crates/react_hir/src/merge_consecutive_blocks.rs renamed
+1 -1
@@ -1,6 +1,6 @@
1 use std::collections::HashMap;
2
3 -use forget_diagnostics::{invariant, Diagnostic};
3 +use react_diagnostics::{invariant, Diagnostic};
4 use thiserror::Error;
5
6 use crate::{
compiler/crates/react_hir/src/print.rs renamed
+2 -2
@@ -1,7 +1,7 @@
1 use std::fmt::{Result, Write};
2
3 -use forget_estree::JsValue;
4 -use forget_utils::ensure_sufficient_stack;
3 +use react_estree::JsValue;
4 +use react_utils::ensure_sufficient_stack;
5
6 use crate::{
7 ArrayDestructureItem, BasicBlock, DestructurePattern, Function, Identifier, IdentifierOperand,
compiler/crates/react_hir/src/registry.rs renamed
compiler/crates/react_hir/src/terminal.rs renamed
compiler/crates/react_hir/src/types.rs renamed
compiler/crates/react_napi/Cargo.toml renamed
+5 -5
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_napi"
2 +name = "react_napi"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -14,10 +14,10 @@ repository.workspace = true
14 crate-type = ["cdylib"]
15
16 [dependencies]
17 -forget_diagnostics = { workspace = true }
18 -forget_hermes_parser = { workspace = true }
19 -forget_estree = { workspace = true }
20 -forget_semantic_analysis = { workspace = true }
17 +react_diagnostics = { workspace = true }
18 +react_hermes_parser = { workspace = true }
19 +react_estree = { workspace = true }
20 +react_semantic_analysis = { workspace = true }
21 napi = { version = "2.13.3", features = ["serde-json", "async"] }
22 napi-derive = { version = "2.12" }
23 serde_json = { workspace = true }
compiler/crates/react_napi/README.md renamed
+2 -2
@@ -1,6 +1,6 @@
1 -# forget_napi
1 +# react_napi
2
3 -This crate uses [napi-rs](https://napi.rs/) to expose Forget's analysis to JavaScript via the [Node-API](https://nodejs.org/api/n-api.html#node-api).
3 +This crate uses [napi-rs](https://napi.rs/) to expose React Compiler's analysis to JavaScript via the [Node-API](https://nodejs.org/api/n-api.html#node-api).
4
5 ## Build
6
compiler/crates/react_napi/build.rs renamed
compiler/crates/react_napi/package.json renamed
compiler/crates/react_napi/src/lib.rs renamed
+3 -3
@@ -1,6 +1,6 @@
1 -use forget_diagnostics::Diagnostic;
2 -use forget_semantic_analysis::{analyze, AnalyzeOptions};
1 use napi_derive::napi;
2 +use react_diagnostics::Diagnostic;
3 +use react_semantic_analysis::{analyze, AnalyzeOptions};
4
5 pub const GLOBALS: &[&str] = &[
6 "AggregateError",
@@ -75,7 +75,7 @@ pub const GLOBALS: &[&str] = &[
75
76 #[napi]
77 pub fn parse(source: String, options: ParseOptions) -> ParseResult {
78 - let program = match forget_hermes_parser::parse(&source, &options.file) {
78 + let program = match react_hermes_parser::parse(&source, &options.file) {
79 Ok(program) => program,
80 Err(diagnostics) => {
81 return ParseResult {
compiler/crates/react_napi/yarn.lock renamed
compiler/crates/react_optimization/Cargo.toml renamed
+7 -7
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_optimization"
2 +name = "react_optimization"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -13,12 +13,12 @@ repository.workspace = true
13 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
15 [dependencies]
16 -forget_estree = { workspace = true }
17 -forget_hir = { workspace = true }
18 -forget_ssa = { workspace = true }
19 -forget_build_hir = { workspace = true }
20 -forget_utils = { workspace = true }
21 -forget_diagnostics = { workspace = true }
16 +react_estree = { workspace = true }
17 +react_hir = { workspace = true }
18 +react_ssa = { workspace = true }
19 +react_build_hir = { workspace = true }
20 +react_utils = { workspace = true }
21 +react_diagnostics = { workspace = true }
22 indexmap = { workspace = true }
23 miette = { workspace = true }
24 thiserror = { workspace = true }
\ No newline at end of file
compiler/crates/react_optimization/README.md renamed
+1 -1
@@ -1,3 +1,3 @@
1 -# forget_optimization
1 +# react_optimization
2
3 Compiler passes that apply various optimizations to improve the performance and/or size of the program.
\ No newline at end of file
compiler/crates/react_optimization/src/constant_propagation.rs renamed
+4 -4
@@ -1,12 +1,12 @@
1 use std::collections::HashMap;
2
3 -use forget_diagnostics::Diagnostic;
4 -use forget_estree::{BinaryOperator, JsValue};
5 -use forget_hir::{
3 +use react_diagnostics::Diagnostic;
4 +use react_estree::{BinaryOperator, JsValue};
5 +use react_hir::{
6 initialize_hir, merge_consecutive_blocks, BlockKind, Environment, Function, GotoKind,
7 GotoTerminal, IdentifierId, InstructionValue, LoadGlobal, Primitive, TerminalValue,
8 };
9 -use forget_ssa::eliminate_redundant_phis;
9 +use react_ssa::eliminate_redundant_phis;
10
11 pub fn constant_propagation(env: &Environment, fun: &mut Function) -> Result<(), Diagnostic> {
12 let mut constants = Constants::default();
compiler/crates/react_optimization/src/lib.rs renamed
compiler/crates/react_reactive_ir/Cargo.toml renamed
+2 -2
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_reactive_ir"
2 +name = "react_reactive_ir"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -13,4 +13,4 @@ repository.workspace = true
13 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
15 [dependencies]
16 -forget_hir = { workspace = true }
\ No newline at end of file
16 +react_hir = { workspace = true }
\ No newline at end of file
compiler/crates/react_reactive_ir/README.md renamed
+1 -1
@@ -1,4 +1,4 @@
1 -# forget_reactive_ir
1 +# react_reactive_ir
2
3 The Reactive IR is an intermediate representation used to encode reactivity information, used for later stages of analysis focused on memoization/reactivity.
4
compiler/crates/react_reactive_ir/src/lib.rs renamed
+1 -1
@@ -1,4 +1,4 @@
1 -use forget_hir::{IdentifierOperand, Instruction, InstructionId, ReactiveScope};
1 +use react_hir::{IdentifierOperand, Instruction, InstructionId, ReactiveScope};
2
3 #[derive(Debug)]
4 pub struct ReactiveFunction {
compiler/crates/react_semantic_analysis/Cargo.toml renamed
+5 -5
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_semantic_analysis"
2 +name = "react_semantic_analysis"
3 version = "0.1.0"
4 authors.workspace = true
5 description.workspace = true
@@ -12,13 +12,13 @@ repository.workspace = true
12 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13
14 [dependencies]
15 -forget_diagnostics = { workspace = true }
16 -forget_estree = { workspace = true }
17 -forget_utils = { workspace = true }
15 +react_diagnostics = { workspace = true }
16 +react_estree = { workspace = true }
17 +react_utils = { workspace = true }
18 indexmap = { workspace = true }
19
20 [dev-dependencies]
21 -forget_hermes_parser = { workspace = true }
21 +react_hermes_parser = { workspace = true }
22 insta = { workspace = true }
23 miette = { workspace = true, features = ["backtrace", "fancy"] }
24 serde_json = { workspace = true }
\ No newline at end of file
compiler/crates/react_semantic_analysis/README.md renamed
+2 -2
@@ -1,6 +1,6 @@
1 -# forget_semantic_analysis
1 +# react_semantic_analysis
2
3 -Implements semantic analysis of JavaScript name resolution and scope information over the `forget_estree` AST. Eventually this
3 +Implements semantic analysis of JavaScript name resolution and scope information over the `react_estree` AST. Eventually this
4 analysis will be extended to cover Flow and TypeScript in addition to the core JS and JSX language.
5
6 NOTE: this analsyis *assumes strict mode* and does not support legacy non-strict semantics.
\ No newline at end of file
compiler/crates/react_semantic_analysis/src/analyzer.rs renamed
+36 -36
@@ -1,5 +1,5 @@
1 -use forget_diagnostics::Diagnostic;
2 -use forget_estree::{
1 +use react_diagnostics::Diagnostic;
2 +use react_estree::{
3 AssignmentOperator, AssignmentPropertyOrRestElement, AssignmentTarget, Expression,
4 ExpressionOrPrivateIdentifier, ExpressionOrSuper, ForInInit, ForInit, FunctionBody, Identifier,
5 ImportDeclarationSpecifier, IntoClass, IntoFunction, JSXElementName, Pattern, Program,
@@ -310,7 +310,7 @@ impl Analyzer {
310 impl Visitor for Analyzer {
311 fn visit_import_declaration_specifier(
312 &mut self,
313 - ast: &forget_estree::ImportDeclarationSpecifier,
313 + ast: &react_estree::ImportDeclarationSpecifier,
314 ) {
315 let kind = self.manager.scope(self.current).kind;
316 if kind != ScopeKind::Module {
@@ -345,7 +345,7 @@ impl Visitor for Analyzer {
345 }
346 }
347
348 - fn visit_class_declaration(&mut self, ast: &forget_estree::ClassDeclaration) {
348 + fn visit_class_declaration(&mut self, ast: &react_estree::ClassDeclaration) {
349 if let Some(id) = &ast.class.id {
350 let declaration = self.manager.add_declaration(
351 self.current,
@@ -362,7 +362,7 @@ impl Visitor for Analyzer {
362 });
363 }
364
365 - fn visit_class_expression(&mut self, ast: &forget_estree::ClassExpression) {
365 + fn visit_class_expression(&mut self, ast: &react_estree::ClassExpression) {
366 self.enter(ScopeKind::Class, |visitor| {
367 if let Some(id) = &ast.class.id {
368 let declaration = visitor.manager.add_declaration(
@@ -381,7 +381,7 @@ impl Visitor for Analyzer {
381 });
382 }
383
384 - fn visit_class_property(&mut self, ast: &forget_estree::ClassProperty) {
384 + fn visit_class_property(&mut self, ast: &react_estree::ClassProperty) {
385 // Static (non-computed) property names do not introduce a new identifier
386 // into any scope
387 if ast.is_computed {
@@ -392,7 +392,7 @@ impl Visitor for Analyzer {
392 }
393 }
394
395 - fn visit_class_private_property(&mut self, ast: &forget_estree::ClassPrivateProperty) {
395 + fn visit_class_private_property(&mut self, ast: &react_estree::ClassPrivateProperty) {
396 // Static (non-computed) property names do not introduce a new identifier
397 // into any scope
398 match &ast.key {
@@ -407,7 +407,7 @@ impl Visitor for Analyzer {
407 }
408 }
409
410 - fn visit_static_block(&mut self, ast: &forget_estree::StaticBlock) {
410 + fn visit_static_block(&mut self, ast: &react_estree::StaticBlock) {
411 self.enter(ScopeKind::StaticBlock, |visitor| {
412 for statement in &ast.body {
413 visitor.visit_statement(statement);
@@ -415,7 +415,7 @@ impl Visitor for Analyzer {
415 });
416 }
417
418 - fn visit_method_definition(&mut self, ast: &forget_estree::MethodDefinition) {
418 + fn visit_method_definition(&mut self, ast: &react_estree::MethodDefinition) {
419 // Static (non-computed) method names do not introduce a new identifier
420 // into any scope
421 if ast.is_computed {
@@ -424,7 +424,7 @@ impl Visitor for Analyzer {
424 self.visit_function_expression(&ast.value);
425 }
426
427 - fn visit_function_declaration(&mut self, ast: &forget_estree::FunctionDeclaration) {
427 + fn visit_function_declaration(&mut self, ast: &react_estree::FunctionDeclaration) {
428 if let Some(id) = &ast.function.id {
429 let declaration = self.manager.add_declaration(
430 self.current,
@@ -441,7 +441,7 @@ impl Visitor for Analyzer {
441 });
442 }
443
444 - fn visit_function_expression(&mut self, ast: &forget_estree::FunctionExpression) {
444 + fn visit_function_expression(&mut self, ast: &react_estree::FunctionExpression) {
445 self.enter(ScopeKind::Function, |visitor| {
446 if let Some(id) = &ast.function.id {
447 let declaration = visitor.manager.add_declaration(
@@ -460,13 +460,13 @@ impl Visitor for Analyzer {
460 });
461 }
462
463 - fn visit_arrow_function_expression(&mut self, ast: &forget_estree::ArrowFunctionExpression) {
463 + fn visit_arrow_function_expression(&mut self, ast: &react_estree::ArrowFunctionExpression) {
464 self.enter(ScopeKind::Function, |visitor| {
465 Analyzer::visit_function(visitor, ast);
466 });
467 }
468
469 - fn visit_assignment_expression(&mut self, ast: &forget_estree::AssignmentExpression) {
469 + fn visit_assignment_expression(&mut self, ast: &react_estree::AssignmentExpression) {
470 if ast.operator == AssignmentOperator::Equals {
471 // "=" operator is a reassignment, straightforward
472 match &ast.left {
@@ -558,7 +558,7 @@ impl Visitor for Analyzer {
558 }
559 }
560
561 - fn visit_block_statement(&mut self, ast: &forget_estree::BlockStatement) {
561 + fn visit_block_statement(&mut self, ast: &react_estree::BlockStatement) {
562 // Block statements create a new scope. In cases where we want to avoid
563 // the new scope, such as function declarations, we avoid calling this
564 // method and visit the block contents directly.
@@ -569,7 +569,7 @@ impl Visitor for Analyzer {
569 });
570 }
571
572 - fn visit_break_statement(&mut self, ast: &forget_estree::BreakStatement) {
572 + fn visit_break_statement(&mut self, ast: &react_estree::BreakStatement) {
573 if let Some(label) = self.lookup_break(ast.label.as_ref().map(|ident| ident.name.as_str()))
574 {
575 let id = label.id;
@@ -587,7 +587,7 @@ impl Visitor for Analyzer {
587 }
588 }
589
590 - fn visit_catch_clause(&mut self, ast: &forget_estree::CatchClause) {
590 + fn visit_catch_clause(&mut self, ast: &react_estree::CatchClause) {
591 // If a catch clause has a param for the value being caught, then
592 // a new scope is created for that param.
593 if let Some(param) = &ast.param {
@@ -604,7 +604,7 @@ impl Visitor for Analyzer {
604 }
605 }
606
607 - fn visit_continue_statement(&mut self, ast: &forget_estree::ContinueStatement) {
607 + fn visit_continue_statement(&mut self, ast: &react_estree::ContinueStatement) {
608 let range = ast
609 .label
610 .as_ref()
@@ -634,7 +634,7 @@ impl Visitor for Analyzer {
634 }
635 }
636
637 - fn visit_for_in_statement(&mut self, ast: &forget_estree::ForInStatement) {
637 + fn visit_for_in_statement(&mut self, ast: &react_estree::ForInStatement) {
638 Analyzer::visit_for_in_of(
639 self,
640 AstNode::from(ast),
@@ -645,7 +645,7 @@ impl Visitor for Analyzer {
645 );
646 }
647
648 - fn visit_for_of_statement(&mut self, ast: &forget_estree::ForOfStatement) {
648 + fn visit_for_of_statement(&mut self, ast: &react_estree::ForOfStatement) {
649 Analyzer::visit_for_in_of(
650 self,
651 AstNode::from(ast),
@@ -656,7 +656,7 @@ impl Visitor for Analyzer {
656 );
657 }
658
659 - fn visit_for_statement(&mut self, ast: &forget_estree::ForStatement) {
659 + fn visit_for_statement(&mut self, ast: &react_estree::ForStatement) {
660 let mut for_scope: Option<ScopeId> = None;
661 if let Some(init) = &ast.init {
662 if let ForInit::VariableDeclaration(init) = init {
@@ -686,7 +686,7 @@ impl Visitor for Analyzer {
686 }
687 }
688
689 - fn visit_identifier(&mut self, ast: &forget_estree::Identifier) {
689 + fn visit_identifier(&mut self, ast: &react_estree::Identifier) {
690 // `Identifier` is tricky in ESTree, because the same node type is used
691 // for places that reference variables as those that are string names:
692 // `x` is an Identifier, but so is the "y" in `x.y`.
@@ -703,7 +703,7 @@ impl Visitor for Analyzer {
703 );
704 }
705
706 - fn visit_labeled_statement(&mut self, ast: &forget_estree::LabeledStatement) {
706 + fn visit_labeled_statement(&mut self, ast: &react_estree::LabeledStatement) {
707 let body = &ast.body;
708 let kind = match body {
709 Statement::ForStatement(_)
@@ -722,22 +722,22 @@ impl Visitor for Analyzer {
722 })
723 }
724
725 - fn visit_member_expression(&mut self, ast: &forget_estree::MemberExpression) {
725 + fn visit_member_expression(&mut self, ast: &react_estree::MemberExpression) {
726 self.visit_expression_or_super(&ast.object);
727 if ast.is_computed {
728 self.visit_expression_or_private_identifier(&ast.property);
729 }
730 }
731
732 - fn visit_meta_property(&mut self, _ast: &forget_estree::MetaProperty) {
732 + fn visit_meta_property(&mut self, _ast: &react_estree::MetaProperty) {
733 // no-op, these are all builtins
734 }
735
736 - fn visit_private_identifier(&mut self, _ast: &forget_estree::PrivateIdentifier) {
736 + fn visit_private_identifier(&mut self, _ast: &react_estree::PrivateIdentifier) {
737 // no-op, these refere to class properties
738 }
739
740 - fn visit_private_name(&mut self, _ast: &forget_estree::PrivateName) {
740 + fn visit_private_name(&mut self, _ast: &react_estree::PrivateName) {
741 // no-op, these refere to class properties
742 }
743
@@ -752,14 +752,14 @@ impl Visitor for Analyzer {
752 )
753 }
754
755 - fn visit_property(&mut self, ast: &forget_estree::Property) {
755 + fn visit_property(&mut self, ast: &react_estree::Property) {
756 if ast.is_computed {
757 self.visit_expression(&ast.key);
758 }
759 self.visit_expression(&ast.value);
760 }
761
762 - fn visit_switch_statement(&mut self, ast: &forget_estree::SwitchStatement) {
762 + fn visit_switch_statement(&mut self, ast: &react_estree::SwitchStatement) {
763 self.visit_expression(&ast.discriminant);
764 let id = self
765 .manager
@@ -774,7 +774,7 @@ impl Visitor for Analyzer {
774 });
775 }
776
777 - fn visit_variable_declaration(&mut self, ast: &forget_estree::VariableDeclaration) {
777 + fn visit_variable_declaration(&mut self, ast: &react_estree::VariableDeclaration) {
778 let kind = ast.kind;
779 for declaration in &ast.declarations {
780 Analyzer::visit_declaration_pattern(self, &declaration.id, Some(kind.into()));
@@ -784,7 +784,7 @@ impl Visitor for Analyzer {
784 }
785 }
786
787 - fn visit_jsxattribute(&mut self, ast: &forget_estree::JSXAttribute) {
787 + fn visit_jsxattribute(&mut self, ast: &react_estree::JSXAttribute) {
788 // NOTE: skip visiting the attribute name, attributes are like non-computed
789 // object properties where the identifier is not a variable reference
790 if let Some(value) = &ast.value {
@@ -792,11 +792,11 @@ impl Visitor for Analyzer {
792 }
793 }
794
795 - fn visit_jsxclosing_element(&mut self, _ast: &forget_estree::JSXClosingElement) {
795 + fn visit_jsxclosing_element(&mut self, _ast: &react_estree::JSXClosingElement) {
796 // no-op, should not be counted as a reference
797 }
798
799 - fn visit_jsxidentifier(&mut self, ast: &forget_estree::JSXIdentifier) {
799 + fn visit_jsxidentifier(&mut self, ast: &react_estree::JSXIdentifier) {
800 Analyzer::visit_reference_identifier(
801 self,
802 &ast.name,
@@ -806,24 +806,24 @@ impl Visitor for Analyzer {
806 );
807 }
808
809 - fn visit_jsxfragment(&mut self, ast: &forget_estree::JSXFragment) {
809 + fn visit_jsxfragment(&mut self, ast: &react_estree::JSXFragment) {
810 // TODO: record the pragmas
811 for child in &ast.children {
812 self.visit_jsxchild_item(child);
813 }
814 }
815
816 - fn visit_jsxmember_expression(&mut self, ast: &forget_estree::JSXMemberExpression) {
816 + fn visit_jsxmember_expression(&mut self, ast: &react_estree::JSXMemberExpression) {
817 // NOTE: ignore the 'property' since JSX doesn't support computed properties
818 self.visit_jsxmember_expression_or_identifier(&ast.object);
819 }
820
821 - fn visit_jsxnamespaced_name(&mut self, ast: &forget_estree::JSXNamespacedName) {
821 + fn visit_jsxnamespaced_name(&mut self, ast: &react_estree::JSXNamespacedName) {
822 // NOTE: ignore the 'name' since it doesn't refer to a variable
823 self.visit_jsxidentifier(&ast.namespace);
824 }
825
826 - fn visit_jsxopening_element(&mut self, ast: &forget_estree::JSXOpeningElement) {
826 + fn visit_jsxopening_element(&mut self, ast: &react_estree::JSXOpeningElement) {
827 // TODO: record jsx pragma if root_name is not an FBT name
828 let root_name = ast.name.root_name();
829
compiler/crates/react_semantic_analysis/src/lib.rs renamed
compiler/crates/react_semantic_analysis/src/scope_manager.rs renamed
+4 -4
@@ -1,10 +1,10 @@
1 -use forget_diagnostics::Diagnostic;
2 -use forget_estree::{
1 +use indexmap::IndexMap;
2 +use react_diagnostics::Diagnostic;
3 +use react_estree::{
4 BreakStatement, ContinueStatement, ESTreeNode, LabeledStatement, SourceRange, SourceType,
5 VariableDeclarationKind,
6 };
6 -use forget_utils::PointerAddress;
7 -use indexmap::IndexMap;
7 +use react_utils::PointerAddress;
8
9 use crate::scope_view::{DeclarationView, ReferenceView, ScopeView};
10 use crate::ScopeManagerView;
compiler/crates/react_semantic_analysis/src/scope_view.rs renamed
compiler/crates/react_semantic_analysis/tests/analysis_test.rs renamed
+2 -2
@@ -1,9 +1,9 @@
1 use std::fmt::Write;
2
3 -use forget_hermes_parser::parse;
4 -use forget_semantic_analysis::{analyze, AnalyzeOptions};
3 use insta::{assert_snapshot, glob};
4 use miette::{NamedSource, Report};
5 +use react_hermes_parser::parse;
6 +use react_semantic_analysis::{analyze, AnalyzeOptions};
7
8 #[test]
9 fn fixtures() {
compiler/crates/react_semantic_analysis/tests/fixtures/block-item-duplication.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/function-hoisting.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/globals-and-imports.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/labels.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/let-const-hoisting.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/simple-function.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/tdz.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/var-duplication.js renamed
compiler/crates/react_semantic_analysis/tests/fixtures/var-hoisting.js renamed
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@block-item-duplication.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/block-item-duplication.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/block-item-duplication.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@function-hoisting.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/function-hoisting.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/function-hoisting.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@globals-and-imports.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/globals-and-imports.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/globals-and-imports.js
5 ---
6 Input:
7 import Foo from "foo";
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@labels.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/labels.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/labels.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@let-const-hoisting.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/let-const-hoisting.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/let-const-hoisting.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@simple-function.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/simple-function.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/simple-function.js
5 ---
6 Input:
7 function Component(a) {
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@tdz.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/tdz.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/tdz.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@var-duplication.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/var-duplication.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/var-duplication.js
5 ---
6 Input:
7 function Component() {
compiler/crates/react_semantic_analysis/tests/snapshots/analysis_test__fixtures@var-hoisting.js.snap renamed
+2 -2
@@ -1,7 +1,7 @@
1 ---
2 -source: crates/forget_semantic_analysis/tests/analysis_test.rs
2 +source: crates/react_semantic_analysis/tests/analysis_test.rs
3 expression: "format!(\"Input:\\n{input}\\n\\nAnalysis:\\n{output}\")"
4 -input_file: crates/forget_semantic_analysis/tests/fixtures/var-hoisting.js
4 +input_file: crates/react_semantic_analysis/tests/fixtures/var-hoisting.js
5 ---
6 Input:
7 function Component(props) {
compiler/crates/react_ssa/Cargo.toml renamed
+4 -4
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_ssa"
2 +name = "react_ssa"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
@@ -13,9 +13,9 @@ repository.workspace = true
13 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
15 [dependencies]
16 -forget_hir = { workspace = true }
17 -forget_utils = { workspace = true }
18 -forget_diagnostics = { workspace = true }
16 +react_hir = { workspace = true }
17 +react_utils = { workspace = true }
18 +react_diagnostics = { workspace = true }
19 indexmap = { workspace = true }
20 miette = { workspace = true }
21 thiserror = { workspace = true }
\ No newline at end of file
compiler/crates/react_ssa/README.md new
+3
@@ -0,0 +1,3 @@
1 +# react_ssa
2 +
3 +This crate handles conversion to/from SSA and normal form. This includes a pass to eliminate redundant phi nodes in SSA form.
\ No newline at end of file
compiler/crates/react_ssa/src/eliminate_redundant_phis.rs renamed
+1 -1
@@ -1,6 +1,6 @@
1 use std::collections::{HashMap, HashSet};
2
3 -use forget_hir::{BlockId, Environment, Function, Identifier, IdentifierId, InstructionValue};
3 +use react_hir::{BlockId, Environment, Function, Identifier, IdentifierId, InstructionValue};
4
5 /// Pass to eliminate redundant phi nodes:
6 /// all operands are the same identifier, ie `x2 = phi(x1, x1, x1)`.
compiler/crates/react_ssa/src/enter.rs renamed
+3 -3
@@ -1,13 +1,13 @@
1 use std::cell::RefCell;
2 use std::rc::Rc;
3
4 -use forget_diagnostics::Diagnostic;
5 -use forget_hir::{
4 +use indexmap::{IndexMap, IndexSet};
5 +use react_diagnostics::Diagnostic;
6 +use react_hir::{
7 BasicBlock, BlockId, BlockRewriter, BlockRewriterAction, Blocks, Environment, Function,
8 Identifier, IdentifierData, IdentifierId, IdentifierOperand, InstructionValue, MutableRange,
9 Phi, HIR,
10 };
10 -use indexmap::{IndexMap, IndexSet};
11
12 pub fn enter_ssa(env: &Environment, fun: &mut Function) -> Result<(), Diagnostic> {
13 assert!(fun.context.is_empty());
compiler/crates/react_ssa/src/leave.rs renamed
+1 -1
@@ -1,4 +1,4 @@
1 -use forget_hir::{Environment, HIR};
1 +use react_hir::{Environment, HIR};
2
3 pub fn leave_ssa(_env: &Environment, _hir: &mut HIR) {
4 todo!("leave_ssa()");
compiler/crates/react_ssa/src/lib.rs renamed
compiler/crates/react_utils/Cargo.toml renamed
+1 -1
@@ -1,5 +1,5 @@
1 [package]
2 -name = "forget_utils"
2 +name = "react_utils"
3 version = "0.1.0"
4 publish = false
5 authors.workspace = true
compiler/crates/react_utils/README.md renamed
+1 -1
@@ -1,4 +1,4 @@
1 -# forget_utils
1 +# react_utils
2
3 This is a catch-all crate for utilities and helper code that doesn't have an obvious home elsewhere.
4 It is expected that this crate will be depended on by lots of other crates in the project. However,
compiler/crates/react_utils/src/lib.rs renamed
compiler/crates/react_utils/src/pointer_address.rs renamed