JS: prototyping coroutines

This commit is contained in:
Alexey Andreev
2016-10-28 20:15:13 +03:00
parent be8b1b7dfd
commit c5999e8375
81 changed files with 1037 additions and 606 deletions
@@ -68,6 +68,12 @@ class NameSuggestion {
return suggest(descriptor.containingDeclaration!!)
}
if (descriptor is FunctionDescriptor && descriptor.isSuspend) {
descriptor.initialSignatureDescriptor?.let {
return suggest(it)
}
}
// Dynamic declarations always require stable names as defined in Kotlin source code
if (descriptor.isDynamic()) {
return SuggestedName(listOf(descriptor.name.asString()), true, descriptor, descriptor.containingDeclaration!!)