One more simplification
This commit is contained in:
@@ -44,8 +44,6 @@ public class WritableScopeImpl(override val workerScope: JetScope,
|
||||
|
||||
private var variableOrClassDescriptors: MutableMap<Name, DeclarationDescriptor>? = null
|
||||
|
||||
private var packageAliases: MutableMap<Name, PackageViewDescriptor>? = null
|
||||
|
||||
private var labelsToDescriptors: MutableMap<Name, MutableList<DeclarationDescriptor>>? = null
|
||||
|
||||
private var implicitReceiver: ReceiverParameterDescriptor? = null
|
||||
@@ -127,12 +125,6 @@ public class WritableScopeImpl(override val workerScope: JetScope,
|
||||
addVariableOrClassDescriptor(variableDescriptor)
|
||||
}
|
||||
|
||||
override fun getProperties(name: Name): Collection<VariableDescriptor> {
|
||||
checkMayRead()
|
||||
|
||||
return workerScope.getProperties(name)
|
||||
}
|
||||
|
||||
override fun getLocalVariable(name: Name): VariableDescriptor? {
|
||||
checkMayRead()
|
||||
|
||||
@@ -172,13 +164,6 @@ public class WritableScopeImpl(override val workerScope: JetScope,
|
||||
?: workerScope.getClassifier(name)
|
||||
}
|
||||
|
||||
override fun getPackage(name: Name): PackageViewDescriptor? {
|
||||
checkMayRead()
|
||||
|
||||
return packageAliases?.get(name)
|
||||
?: workerScope.getPackage(name)
|
||||
}
|
||||
|
||||
override fun setImplicitReceiver(implicitReceiver: ReceiverParameterDescriptor) {
|
||||
checkMayWrite()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user