提交 513b3b40 编写于 作者: M Matt Bierner

Fix name for ts 2.3.3

上级 2b9679b5
...@@ -74,7 +74,7 @@ namespace ast { ...@@ -74,7 +74,7 @@ namespace ast {
const spans: number[] = []; const spans: number[] = [];
ts.forEachChild(sourceFile, function visit(node: ts.Node) { 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) { if (declIdent && declIdent.kind === ts.SyntaxKind.Identifier) {
identifiers.push((<ts.Identifier>declIdent).text); identifiers.push((<ts.Identifier>declIdent).text);
spans.push(node.pos, node.end); spans.push(node.pos, node.end);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册