Skip to content

Commit

Permalink
wip: save
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Dec 2, 2024
1 parent eac3434 commit f87a44e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/compiler-vapor/src/generators/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function genExpression(
}
}

export function genIdentifier(
function genIdentifier(
raw: string,
{ options, vaporHelper, identifiers }: CodegenContext,
loc?: SourceLocation,
Expand All @@ -125,8 +125,7 @@ export function genIdentifier(

const idMap = identifiers[raw]
if (idMap && idMap.length) {
name = idMap[0]
return [[name, NewlineType.None, loc]]
return [[idMap[0], NewlineType.None, loc]]
}

let prefix: string | undefined
Expand Down

0 comments on commit f87a44e

Please sign in to comment.