|
|
|
@ -816,9 +816,6 @@ void ImmutableMessageLiteGenerator::GenerateKotlinMembers( |
|
|
|
|
"camelcase_name", |
|
|
|
|
name_resolver_->GetKotlinFactoryName(descriptor_)); |
|
|
|
|
|
|
|
|
|
if (!context_->options().opensource_runtime) { |
|
|
|
|
printer->Print("@com.google.errorprone.annotations.CheckReturnValue\n"); |
|
|
|
|
} |
|
|
|
|
printer->Print( |
|
|
|
|
"public inline fun $camelcase_name$(block: $message_kt$.Dsl.() -> " |
|
|
|
|
"kotlin.Unit): $message$ =\n" |
|
|
|
@ -846,9 +843,6 @@ void ImmutableMessageLiteGenerator::GenerateKotlinMembers( |
|
|
|
|
|
|
|
|
|
void ImmutableMessageLiteGenerator::GenerateTopLevelKotlinMembers( |
|
|
|
|
io::Printer* printer) const { |
|
|
|
|
if (!context_->options().opensource_runtime) { |
|
|
|
|
printer->Print("@com.google.errorprone.annotations.CheckReturnValue\n"); |
|
|
|
|
} |
|
|
|
|
printer->Print( |
|
|
|
|
"public inline fun $message$.copy(block: $message_kt$.Dsl.() -> " |
|
|
|
|
"kotlin.Unit): $message$ =\n" |
|
|
|
|