The new KotlinPoet is much more aggressive about escaping
j
Jon Miller
12/12/2020, 10:07 PM
I looked at kotlinpoet util.kt and doesn't look like it escapes yield. It looks at this page as a reference which doesn't include yield: https://kotlinlang.org/docs/reference/keyword-reference.html
I'll see if I can fork kotlinpoet and test out adding yield to the keywords.