Skip to content

Commit 513b3b4

Browse files
committed
Fix name for ts 2.3.3
1 parent 2b9679b commit 513b3b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/extension-editing/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace ast {
7474
const spans: number[] = [];
7575

7676
ts.forEachChild(sourceFile, function visit(node: ts.Node) {
77-
const declIdent = (<ts.Declaration>node).name;
77+
const declIdent = (<ts.NamedDeclaration>node).name;
7878
if (declIdent && declIdent.kind === ts.SyntaxKind.Identifier) {
7979
identifiers.push((<ts.Identifier>declIdent).text);
8080
spans.push(node.pos, node.end);

0 commit comments

Comments
 (0)