Address PR feedback

This commit is contained in:
Jason Freeman 2014-07-18 16:24:31 -07:00
parent c2fc52e92b
commit 3580a999c8

View file

@ -5678,9 +5678,7 @@ module ts {
function checkExportAssignment(node: ExportAssignment) {
var container = node.parent;
if (container.kind === SyntaxKind.SourceFile) {
}
else {
if (container.kind !== SyntaxKind.SourceFile) {
// In a module, the immediate parent will be a block, so climb up one more parent
container = container.parent;
}