Fix name for ts 2.3.3

This commit is contained in:
Matt Bierner 2017-05-12 18:52:26 -07:00
parent 2b9679b5fb
commit 513b3b406d

View file

@ -74,7 +74,7 @@ namespace ast {
const spans: number[] = [];
ts.forEachChild(sourceFile, function visit(node: ts.Node) {
const declIdent = (<ts.Declaration>node).name;
const declIdent = (<ts.NamedDeclaration>node).name;
if (declIdent && declIdent.kind === ts.SyntaxKind.Identifier) {
identifiers.push((<ts.Identifier>declIdent).text);
spans.push(node.pos, node.end);