mirror of
https://github.com/aphrody-labs/oxc.git
synced 2026-10-15 06:39:17 +00:00
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:
1 parent
93bf42d3ec
commit
5ad330e96d
2 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user