Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Dec 28, 2022
1 parent 888ec8f commit 783a7da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/compiler-sfc/src/compileScript.ts
Expand Up @@ -1208,7 +1208,9 @@ export function compileScript(
const removed = new Set()

function getLastIndex(i: number) {
console.log(i)
while (removed.has(--i)) {}
console.log(i)
return i
}

Expand All @@ -1230,7 +1232,7 @@ export function compileScript(
// last one, locate the end of the prev
start = node.declarations[getLastIndex(i)].end! + startOffset
} else {
// not last one, locate the start of the next
// not the last one, locate the start of the next
end = node.declarations[i + 1].start! + startOffset
}
s.remove(start, end)
Expand Down

0 comments on commit 783a7da

Please sign in to comment.