Skip to content

Commit

Permalink
Stop using deprecated TS AST builders
Browse files Browse the repository at this point in the history
TypeScript had to rework a few bits of their AST in light
of how decorators shook out for stage 3.
  • Loading branch information
dfreeman committed Nov 21, 2022
1 parent c3412a4 commit 28873c4
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -163,8 +162,6 @@ function buildStaticBlockForTemplate(
template: ts.TaggedTemplateExpression
): ts.Node {
return f.createClassStaticBlockDeclaration(
[],
[],
f.createBlock([f.createExpressionStatement(template)])
);
}

0 comments on commit 28873c4

Please sign in to comment.