From 28873c4cf7feef08986be3fe38d0823f21989711 Mon Sep 17 00:00:00 2001 From: Dan Freeman Date: Mon, 21 Nov 2022 15:27:05 +0100 Subject: [PATCH] Stop using deprecated TS AST builders TypeScript had to rework a few bits of their AST in light of how decorators shook out for stage 3. --- .../-private/environment/transform.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/environment-ember-template-imports/-private/environment/transform.ts b/packages/environment-ember-template-imports/-private/environment/transform.ts index feae6589c..b4bc6ede2 100644 --- a/packages/environment-ember-template-imports/-private/environment/transform.ts +++ b/packages/environment-ember-template-imports/-private/environment/transform.ts @@ -85,7 +85,6 @@ function repairAncestry(node: ts.Node, parent: ts.Node = node.parent): ts.Node { function addTagImport(f: ts.NodeFactory, sourceFile: ts.SourceFile): ts.SourceFile { return f.updateSourceFile(sourceFile, [ f.createImportDeclaration( - [], [], f.createImportClause( false, @@ -163,8 +162,6 @@ function buildStaticBlockForTemplate( template: ts.TaggedTemplateExpression ): ts.Node { return f.createClassStaticBlockDeclaration( - [], - [], f.createBlock([f.createExpressionStatement(template)]) ); }