eda09e69ea
Previously we defensively wrapped expressions in case they ran afoul of precedence rules. For example, it would be easy to create the TS AST structure Call(Ternary(a, b, c)), but might result in printed code of: ``` a ? b : c() ``` Whereas the actual structure we meant to generate is: ``` (a ? b : c)() ``` However the TypeScript renderer appears to be clever enough to provide parenthesis as necessary. This commit removes these defensive paraenthesis in the cases of binary and ternary operations. FW-1273 PR Close #30349 |
||
---|---|---|
.. | ||
compliance | ||
diagnostics | ||
metadata | ||
ngtsc | ||
transformers | ||
BUILD.bazel | ||
extract_i18n_spec.ts | ||
mocks.ts | ||
ngc_spec.ts | ||
ngtools_api_spec.ts | ||
perform_compile_spec.ts | ||
perform_watch_spec.ts | ||
runfile_helpers.ts | ||
test_support.ts |