We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b9679b commit 513b3b4Copy full SHA for 513b3b4
1 file changed
extensions/extension-editing/src/extension.ts
@@ -74,7 +74,7 @@ namespace ast {
74
const spans: number[] = [];
75
76
ts.forEachChild(sourceFile, function visit(node: ts.Node) {
77
- const declIdent = (<ts.Declaration>node).name;
+ const declIdent = (<ts.NamedDeclaration>node).name;
78
if (declIdent && declIdent.kind === ts.SyntaxKind.Identifier) {
79
identifiers.push((<ts.Identifier>declIdent).text);
80
spans.push(node.pos, node.end);
0 commit comments