-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the gencode for idom ve logging when the
logOnly
parameter…
… is used. Move the logic of whether to construct a `NullRenderer` into the `enter` functions, now the gencode just needs to capture the return value when passing a logonly parameter. This saves 2 `if` statements and one local variable per `velog` with a logonly parameter. This also fixes a more basic issue where we would accidentally generate the logic for the logonly expression twice!. Clean up a few minor issues at the same time: * use `undefined` instead of `null` to save time and make dead property analysis simpler * rename `enter`/`exit` to disambiguate them. PiperOrigin-RevId: 707130737
- Loading branch information
1 parent
e780519
commit 32adf6a
Showing
6 changed files
with
94 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.