Skip to content

Commit

Permalink
deprecated variables now have strike through
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed May 8, 2024
1 parent 09d076c commit d16616f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/language-core/lib/codegen/template/interpolation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isGloballyAllowed } from '@vue/shared';
import type * as ts from 'typescript';
import { getNodeText, getStartEnd } from '../../utils/parseBindings';
import { BindingTypes, getNodeText, getStartEnd } from '../../utils/parseBindings';
import type { Code, VueCodeInformation, VueCompilerOptions } from '../../types';
import { collectVars, createTsAst } from '../common';
import type { TemplateCodegenContext } from './context';
Expand Down Expand Up @@ -91,7 +91,8 @@ export function* forEachInterpolationSegment(
// https://github.com/vuejs/core/blob/245230e135152900189f13a4281302de45fdcfaa/packages/compiler-core/src/transforms/transformExpression.ts#L342-L352
isGloballyAllowed(text) ||
text === 'require' ||
text.startsWith('__VLS_')
text.startsWith('__VLS_') ||
((ctx.bindingTypes?.get(text) ?? 0) & BindingTypes.NoUnref)
) {
// localVarOffsets.push(localVar.getStart(ast));
}
Expand Down

0 comments on commit d16616f

Please sign in to comment.