mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Address PR feedback
This commit is contained in:
parent
c2fc52e92b
commit
3580a999c8
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user