Core & compiler: unnecessary 'val's removed from constructors

This commit is contained in:
Mikhail Glukhikh
2016-04-27 13:35:24 +03:00
parent 84a3f729ca
commit 5a66ef2126
10 changed files with 10 additions and 10 deletions
@@ -30,7 +30,7 @@ class AnnotatedWithFakeAnnotations(override val originalAnnotated: Annotated, pr
override fun getAnnotations() = actual
}
class AnnotatedWithOnlyTargetedAnnotations(private val original: Annotated) : Annotated {
class AnnotatedWithOnlyTargetedAnnotations(original: Annotated) : Annotated {
private val annotations: Annotations = UseSiteTargetedAnnotations(original.annotations)
override fun getAnnotations() = annotations
@@ -26,7 +26,7 @@ import org.jetbrains.kotlin.incremental.components.Position
import org.jetbrains.kotlin.incremental.components.ScopeKind
class RemoteLookupTrackerClient(val facade: CompilerCallbackServicesFacade, val eventManger: EventManger, val profiler: Profiler = DummyProfiler()) : LookupTracker {
class RemoteLookupTrackerClient(val facade: CompilerCallbackServicesFacade, eventManger: EventManger, val profiler: Profiler = DummyProfiler()) : LookupTracker {
private val isDoNothing = profiler.withMeasure(this) { facade.lookupTracker_isDoNothing() }
private val lookups = hashSetOf<LookupInfo>()
@@ -42,7 +42,7 @@ import org.jetbrains.kotlin.psi.*
class ManualVariance(val descriptor: TypeParameterDescriptor, val variance: Variance)
class VarianceChecker(private val trace: BindingTrace) {
class VarianceChecker(trace: BindingTrace) {
private val core = VarianceCheckerCore(trace.bindingContext, trace)
fun check(c: TopDownAnalysisContext) {
@@ -37,7 +37,7 @@ import org.jetbrains.kotlin.types.isDynamic
import org.jetbrains.kotlin.utils.Printer
import java.util.*
class DynamicCallableDescriptors(private val builtIns: KotlinBuiltIns) {
class DynamicCallableDescriptors(builtIns: KotlinBuiltIns) {
val dynamicType = createDynamicType(builtIns)
@@ -194,7 +194,7 @@ open class FileScopeProviderImpl(
}
// we use this dummy implementation of DeclarationDescriptor to check accessibility of symbols from the current package
private class DummyContainerDescriptor(private val file: KtFile, private val packageFragment: PackageFragmentDescriptor) : DeclarationDescriptorNonRoot {
private class DummyContainerDescriptor(file: KtFile, private val packageFragment: PackageFragmentDescriptor) : DeclarationDescriptorNonRoot {
private val sourceElement = KotlinSourceElement(file)
override fun getContainingDeclaration() = packageFragment
@@ -36,7 +36,7 @@ import org.jetbrains.kotlin.psi.psiUtil.parents
*/
class KotlinCodeBlockModificationListener(
modificationTracker: PsiModificationTracker,
private val project: Project,
project: Project,
private val treeAspect: TreeAspect
) {
init {