Skip to content

Commit f13fcb4

Browse files
committed
[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: 5494947 Pull Request resolved: #30078
1 parent 7071b84 commit f13fcb4

File tree

1 file changed

+1
-1
lines changed
  • compiler/packages/babel-plugin-react-compiler/src/HIR

1 file changed

+1
-1
lines changed

compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export function printTerminal(terminal: Terminal): Array<string> | string {
194194
break;
195195
}
196196
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}`;
198198
break;
199199
}
200200
case "throw": {

0 commit comments

Comments
 (0)