From 5ed5f8f048f5cb9449ed5acbfee0d7a68ecc5951 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Fri, 17 Feb 2017 20:44:20 +0300 Subject: [PATCH] Minor: reuse DO_RESUME_METHOD_NAME constant instead of literal --- .../org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt index ca4ebd7b5ad..90c8f0cee87 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt @@ -72,7 +72,7 @@ class CoroutineCodegen private constructor( // protected fun doResume(result, throwable) private val doResumeDescriptor = SimpleFunctionDescriptorImpl.create( - classDescriptor, Annotations.EMPTY, Name.identifier("doResume"), CallableMemberDescriptor.Kind.DECLARATION, + classDescriptor, Annotations.EMPTY, Name.identifier(DO_RESUME_METHOD_NAME), CallableMemberDescriptor.Kind.DECLARATION, funDescriptor.source ).apply doResume@{ initialize(