docs(codegen): correct stale printer comments (#25561)

## Summary

- Correct the three stale codegen comments identified in review.
This commit is contained in:
camc314 committed 2026-08-12 17:16:55 +00:00
1 parent cd25e4f56e
commit 5703d7a44f
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ export function printClass(node: ESTree.Class, state: State): void {
}
/**
* Print a run of decorators, one per line, parenthesizing any whose expression needs it.
* Print a run of decorators separated by spaces, parenthesizing any whose expression needs it.
*/
export function printDecorators(decorators: ESTree.Decorator[], state: State): void {
const { length } = decorators;
+1 -2
View File
@@ -13,8 +13,7 @@ import type { State } from "../state.ts";
/**
* Write the indentation for the current level, or the pending single space in place of it.
*
* Comment printing and inline statement bodies ask for a space where an indent would go,
* which keeps `if (x) foo()` on one line.
* Inline statement bodies ask for a space where an indent would go, which keeps `if (x) foo()` on one line.
*/
export function printIndent(state: State): void {
if (state.pendingIndentAsSpace) {
+1 -1
View File
@@ -12,7 +12,7 @@ import constFunctionsPlugin from "./tsdown_plugins/const_functions.ts";
const isEnabled = (env: string | undefined) => env === "true" || env === "1";
// When run with `pnpm run build-dev`, generate a debug build with extra assertions.
// This is the build to run the conformance suites against - see `conformance/run.mjs`.
// This is the build prepared by `pnpm run build-test` for conformance tests.
// It replaces the release build in `dist`, so rebuild with `pnpm run build` before benchmarking.
const DEBUG = isEnabled(process.env.DEBUG);