Skip to content

Commit 783a7da

Browse files
committed
chore: update comments
1 parent 888ec8f commit 783a7da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,9 @@ export function compileScript(
12081208
const removed = new Set()
12091209

12101210
function getLastIndex(i: number) {
1211+
console.log(i)
12111212
while (removed.has(--i)) {}
1213+
console.log(i)
12121214
return i
12131215
}
12141216

@@ -1230,7 +1232,7 @@ export function compileScript(
12301232
// last one, locate the end of the prev
12311233
start = node.declarations[getLastIndex(i)].end! + startOffset
12321234
} else {
1233-
// not last one, locate the start of the next
1235+
// not the last one, locate the start of the next
12341236
end = node.declarations[i + 1].start! + startOffset
12351237
}
12361238
s.remove(start, end)

0 commit comments

Comments
 (0)