Files
camc314 32d00c55bc fix(codegen): preserve instantiation expression precedence (#26424)
Preserve parentheses around TypeScript instantiation expressions in postfix contexts. Previously, `(f<T>).x` and `(f<T>)[x]` were emitted as `f<T>.x` and `f<T>[x]`, producing invalid syntax or changing how the expression is parsed.

The printer now respects the surrounding precedence while retaining grouping for lower-precedence operands.
2026-09-07 18:20:11 +00:00
..
…

Local codegen fixtures

Put a .js, .cjs, .mjs, .jsx, .ts, .cts, .mts, or .tsx reproduction in this directory (subdirectories are supported). fixtures.test.ts parses each file in unambiguous mode and checks both the normal and source-map printers against Rust oxc_codegen.

Use a hand-built AST test for input shapes a parser cannot produce, such as historical TS-ESLint AST layouts. See test/print.test.ts for that style of test.