docs(packages/codegen): reformat comments (#25876)

Continuation of #25848. Pure style change. Reformat a couple of comments I missed previously.
This commit is contained in:
overlookmotel committed 2026-08-18 15:56:13 +00:00
1 parent 93bf42d3ec
commit 5ad330e96d
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -240,9 +240,9 @@ export function printExpression(
throw new Error(`Unknown expression type: ${node.type}`);
}
// Rust adds an exclusive-end mapping after a postfix operand which ended in `)` or `]`, so the
// punctuation of a following call/member/tag chain resolves to the operand rather than one
// character to its left.
// Rust adds an exclusive-end mapping after a postfix operand which ended in `)` or `]`,
// so the punctuation of a following call/member/tag chain resolves to the operand,
// rather than one character to its left
if (SOURCEMAPS && precedence === PREC_POSTFIX && state.lastWasPostfixClose) {
markWithMapAfter(state, node);
}
+1 -1
View File
@@ -142,7 +142,7 @@ export class State {
}
// `writeWithMap` records the output offset and original position of every mapped node,
// and `generateSourceMap` encodes them in one pass at the end.
// and `generateSourceMap` encodes them in one pass at the end
if (options.sourcemap !== true) {
this.mapPositions = null;
this.mapNames = null;