@samitouri / QOS-React / commits / d878489431

[compiler][ez] PrintHIR prints optional flag for debugging

Adding the equivalent of [PrintReactiveFunction:OptionalExpression](https://github.com/facebook/react/blob/f5d2feb4f069a36140d5e605f5eebc52badcc214/compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PrintReactiveFunction.ts#L218) to `PrintHIR`. ghstack-source-id: 5b175f6f62f72a867a00c52c4f825fd396d450a9 Pull Request resolved: https://github.com/facebook/react/pull/30078

Mofei Zhang committed Jun 25, 2024 at 16:06 UTC d878489431e2c6cf69982b51403f8e1f68f4e73d
1 file changed +1 -1
compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts
+1 -1
@@ -194,7 +194,7 @@ export function printTerminal(terminal: Terminal): Array<string> | string {
194 break;
195 }
196 case "optional": {
197 - value = `[${terminal.id}] Optional test:bb${terminal.test} fallthrough=bb${terminal.fallthrough}`;
197 + value = `[${terminal.id}] Optional (optional=${terminal.optional}) test:bb${terminal.test} fallthrough=bb${terminal.fallthrough}`;
198 break;
199 }
200 case "throw": {