mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
Fix name for ts 2.3.3
This commit is contained in:
parent
2b9679b5fb
commit
513b3b406d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue