From dc823f8557269c8adb954a5c5ae37685d03d5ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=96=B9?= Date: Wed, 21 Sep 2016 10:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9ts=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E5=85=A8=E5=B1=80=E7=B1=BB=E5=9E=8B=E7=9A=84?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=92=8C=E6=96=B9=E6=B3=95=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/lib/typescript/src/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/typescript/src/checker.ts b/tools/lib/typescript/src/checker.ts index cb840cee91..619a36ec77 100755 --- a/tools/lib/typescript/src/checker.ts +++ b/tools/lib/typescript/src/checker.ts @@ -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;