Make parameter names of fictitious function classes non-stable

To be able to change them when overriding invoke in subclasses without a
warning
This commit is contained in:
Alexander Udalov
2015-05-28 20:18:08 +03:00
parent 16b20cf910
commit 158b3ba102
11 changed files with 111 additions and 38 deletions
@@ -23,7 +23,6 @@ import org.jetbrains.kotlin.descriptors.impl.ValueParameterDescriptorImpl
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.types.Variance
// TODO: make parameter names synthetic / non-stable
public class FunctionInvokeDescriptor private constructor(
private val container: DeclarationDescriptor,
private val original: FunctionInvokeDescriptor?,
@@ -36,6 +35,9 @@ public class FunctionInvokeDescriptor private constructor(
callableKind,
SourceElement.NO_SOURCE
) {
// "p0", "p1", etc. should not be baked into the language
override fun hasStableParameterNames(): Boolean = false
override fun createSubstitutedCopy(
newOwner: DeclarationDescriptor,
original: FunctionDescriptor?,