mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-07 18:25:51 -05:00
Merge pull request #333 from Microsoft/fixContainerList
Properly build container list in binder.
This commit is contained in:
@@ -171,8 +171,13 @@ module ts {
|
||||
parent = node;
|
||||
if (symbolKind & SymbolFlags.IsContainer) {
|
||||
container = node;
|
||||
if (lastContainer) lastContainer.nextContainer = container;
|
||||
lastContainer = container;
|
||||
// If container is not on container list, add it to the list
|
||||
if (lastContainer !== container && !container.nextContainer) {
|
||||
if (lastContainer) {
|
||||
lastContainer.nextContainer = container;
|
||||
}
|
||||
lastContainer = container;
|
||||
}
|
||||
}
|
||||
forEachChild(node, bind);
|
||||
container = saveContainer;
|
||||
|
||||
Reference in New Issue
Block a user