Skip to content

Commit

Permalink
[compiler][ez] PrintHIR prints optional flag for debugging
Browse files Browse the repository at this point in the history
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: #30078
  • Loading branch information
mofeiZ committed Jun 25, 2024
1 parent a8cb9c5 commit 9d4f9b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function printTerminal(terminal: Terminal): Array<string> | string {
break;
}
case "optional": {
value = `[${terminal.id}] Optional test:bb${terminal.test} fallthrough=bb${terminal.fallthrough}`;
value = `[${terminal.id}] Optional (optional=${terminal.optional}) test:bb${terminal.test} fallthrough=bb${terminal.fallthrough}`;
break;
}
case "throw": {
Expand Down

0 comments on commit 9d4f9b7

Please sign in to comment.