Cleanup: val can be parameter

This commit is contained in:
Mikhail Glukhikh
2016-05-18 18:21:14 +03:00
parent b86fb64008
commit ebd57fafd7
17 changed files with 20 additions and 20 deletions
@@ -249,7 +249,7 @@ class NumberCompare(
}
class ObjectCompare(
val opToken: IElementType,
opToken: IElementType,
operandType: Type,
left: StackValue,
right: StackValue
@@ -46,7 +46,7 @@ class MultifileClassPartCodegen(
private val packageFragment: PackageFragmentDescriptor,
private val superClassInternalName: String,
private val shouldGeneratePartHierarchy: Boolean,
private val partContext: MultifileClassPartContext,
partContext: MultifileClassPartContext,
state: GenerationState
) : MemberCodegen<KtFile>(state, null, partContext, file, v) {
private val partType = partContext.filePartType
@@ -59,7 +59,7 @@ class StackValueWithLeaveTask(
}
}
open class OperationStackValue(val resultType: Type, val lambda: (v: InstructionAdapter) -> Unit) : StackValue(resultType) {
open class OperationStackValue(resultType: Type, val lambda: (v: InstructionAdapter) -> Unit) : StackValue(resultType) {
override fun putSelector(type: Type, v: InstructionAdapter) {
lambda(v)
@@ -32,7 +32,7 @@ import org.jetbrains.kotlin.script.KotlinScriptDefinitionProvider
import org.jetbrains.kotlin.utils.toReadOnlyList
class LazyScriptClassMemberScope(
private val resolveSession: ResolveSession,
resolveSession: ResolveSession,
declarationProvider: ClassMemberDeclarationProvider,
private val scriptDescriptor: LazyScriptDescriptor,
trace: BindingTrace)
@@ -30,7 +30,7 @@ import org.jetbrains.kotlin.script.ScriptPriorities
import org.jetbrains.kotlin.types.TypeSubstitutor
class LazyScriptDescriptor(
private val resolveSession: ResolveSession,
resolveSession: ResolveSession,
containingDeclaration: DeclarationDescriptor,
name: Name,
internal val scriptInfo: KtScriptInfo
@@ -87,7 +87,7 @@ abstract class AbstractInvokeTowerProcessor<F : Candidate<FunctionDescriptor>, V
// todo KT-9522 Allow invoke convention for synthetic property
class InvokeTowerProcessor<F : Candidate<FunctionDescriptor>, V : Candidate<VariableDescriptor>>(
invokeContext: InvokeTowerContext<F, V>,
private val explicitReceiver: Receiver?
explicitReceiver: Receiver?
) : AbstractInvokeTowerProcessor<F, V>(
invokeContext,
createVariableProcessor(invokeContext.contextForVariable(stripExplicitReceiver = false), explicitReceiver)
@@ -166,7 +166,7 @@ internal open class ScopeBasedTowerLevel protected constructor(
}
internal class ImportingScopeBasedTowerLevel(
scopeTower: ScopeTower,
private val importingScope: ImportingScope
importingScope: ImportingScope
): ScopeBasedTowerLevel(scopeTower, importingScope)
internal class SyntheticScopeBasedTowerLevel(