chore: tweaks

This commit is contained in:
daiwei 2025-09-03 09:46:26 +08:00
parent 7eb3192cf8
commit e7ac4d3e7f
1 changed files with 2 additions and 2 deletions

View File

@ -107,11 +107,11 @@ export class CodegenContext {
for (let j = this.lastTIndex + 1; j <= i; j++) { for (let j = this.lastTIndex + 1; j <= i; j++) {
this.templateVars.set( this.templateVars.set(
j, j,
`t${(this.lastTId = getNextId(map, Math.max(j, this.lastTId + 1)))}`, (name = `t${(this.lastTId = getNextId(map, Math.max(j, this.lastTId + 1)))}`),
) )
} }
this.lastTIndex = i this.lastTIndex = i
return this.templateVars.get(i)! return name!
} }
pName(i: number): string { pName(i: number): string {