Specify source for default impl

(cherry picked from commit b37fd90128cea61df9c53a5b48bea6092ea9ec57)
This commit is contained in:
Mikhael Bogdanov
2017-07-31 15:39:35 +02:00
committed by Vasily Levchenko
parent a24c5232cd
commit 4a2d4b932b
@@ -346,7 +346,7 @@ private fun FunctionDescriptor.generateDefaultsFunction(context: CommonBackendCo
/* containingDeclaration = */ containingDeclaration, /* containingDeclaration = */ containingDeclaration,
/* annotations = */ annotations, /* annotations = */ annotations,
/* isPrimary = */ false, /* isPrimary = */ false,
/* source = */ SourceElement.NO_SOURCE) /* source = */ source)
is FunctionDescriptor -> { is FunctionDescriptor -> {
val name = Name.identifier("$name\$default") val name = Name.identifier("$name\$default")
@@ -355,7 +355,7 @@ private fun FunctionDescriptor.generateDefaultsFunction(context: CommonBackendCo
/* annotations = */ annotations, /* annotations = */ annotations,
/* name = */ name, /* name = */ name,
/* kind = */ CallableMemberDescriptor.Kind.SYNTHESIZED, /* kind = */ CallableMemberDescriptor.Kind.SYNTHESIZED,
/* source = */ SourceElement.NO_SOURCE) /* source = */ source)
} }
else -> TODO("FIXME: $this") else -> TODO("FIXME: $this")
} }