@@ -134,7 +134,7 @@ function* forEachInterpolationSegment(
134
134
const curVar = ctxVars [ i ] ;
135
135
const nextVar = ctxVars [ i + 1 ] ;
136
136
137
- yield * generateVar ( code , ctx . specialVars , destructuredPropNames , templateRefNames , curVar , nextVar ) ;
137
+ yield * generateVar ( code , ctx . specialVars , destructuredPropNames , templateRefNames , curVar ) ;
138
138
139
139
if ( nextVar . isShorthand ) {
140
140
yield [ code . slice ( curVar . offset + curVar . text . length , nextVar . offset + nextVar . text . length ) , curVar . offset + curVar . text . length ] ;
@@ -161,12 +161,11 @@ function* generateVar(
161
161
specialVars : Set < string > ,
162
162
destructuredPropNames : Set < string > | undefined ,
163
163
templateRefNames : Set < string > | undefined ,
164
- curVar : CtxVar ,
165
- nextVar : CtxVar = curVar
164
+ curVar : CtxVar
166
165
) : Generator < [ fragment : string , offset : number | undefined , type ?: 'errorMappingOnly' ] > {
167
166
// fix https://github.com/vuejs/language-tools/issues/1205
168
167
// fix https://github.com/vuejs/language-tools/issues/1264
169
- yield [ '' , nextVar . offset , 'errorMappingOnly' ] ;
168
+ yield [ '' , curVar . offset , 'errorMappingOnly' ] ;
170
169
171
170
const isDestructuredProp = destructuredPropNames ?. has ( curVar . text ) ?? false ;
172
171
const isTemplateRef = templateRefNames ?. has ( curVar . text ) ?? false ;
0 commit comments