Skip to content

Commit

Permalink
增加对ts文件中,全局类型的变量和方法的引用支持
Browse files Browse the repository at this point in the history
  • Loading branch information
eos3tion authored Sep 21, 2016
1 parent 18206ea commit dc823f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/typescript/src/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ namespace ts {

if (!node.id) node.id = nextNodeId++;
links = egretNodesLink[node.id] || (egretNodesLink[node.id] = {});
links.resolvedSymbol = (getFullWidth(node) > 0 && resolveName(node, node.text, SymbolFlags.Class | SymbolFlags.Export, null, node)) || unknownSymbol;
links.resolvedSymbol = (getFullWidth(node) > 0 && resolveName(node, node.text, SymbolFlags.Class | SymbolFlags.Export | SymbolFlags.Function | SymbolFlags.BlockScopedVariable, null, node)) || unknownSymbol;

if (links.resolvedSymbol) {
return links.resolvedSymbol;
Expand Down

0 comments on commit dc823f8

Please sign in to comment.