Locking scopes of MutablePackageFragmentDescriptors.

This commit is contained in:
Evgeny Gerashchenko
2013-11-27 15:12:38 +04:00
parent 98ad890b60
commit 30e668634c
4 changed files with 20 additions and 21 deletions
@@ -47,10 +47,7 @@ public class MutablePackageFragmentDescriptor extends DeclarationDescriptorImpl
this.module = module;
this.fqName = fqName;
scope = new WritableScopeImpl(JetScope.EMPTY, this, RedeclarationHandler.DO_NOTHING,
"Members of " + fqName + " in " + module);
// TODO 1 make read-only after
scope = new WritableScopeImpl(JetScope.EMPTY, this, RedeclarationHandler.DO_NOTHING, "Members of " + fqName + " in " + module);
scope.changeLockLevel(WritableScope.LockLevel.BOTH);
builder = new ScopeBasedNamespaceLikeBuilder(this, scope);
}