Skip to content

Commit b33e6b4

Browse files
Merge pull request #910 from typed-ember/fix-deprecation
Fix glimmer/syntax deprecation
2 parents 79843f9 + cb07d5d commit b33e6b4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/core/src/transform/template/template-to-typescript.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,14 @@ export function templateToTypescript(
12751275
}
12761276

12771277
function determinePathKind(node: AST.PathExpression): PathKind {
1278-
return node.head.original === 'this' ? 'this' : node.data ? 'arg' : 'free';
1278+
switch (node.head.type) {
1279+
case 'AtHead':
1280+
return 'arg';
1281+
case 'ThisHead':
1282+
return 'this';
1283+
case 'VarHead':
1284+
return 'free';
1285+
}
12791286
}
12801287

12811288
function emitPathContents(parts: string[], start: number, kind: PathKind): void {

0 commit comments

Comments
 (0)