Skip to content

Add support for Context Parameters (#2094)#2112

Merged
Egorand merged 7 commits intosquare:mainfrom
IRus:feature/2094
Apr 17, 2025
Merged

Add support for Context Parameters (#2094)#2112
Egorand merged 7 commits intosquare:mainfrom
IRus:feature/2094

Conversation

@IRus
Copy link
Copy Markdown
Contributor

@IRus IRus commented Apr 15, 2025

  • docs/changelog.md has been updated if applicable.
    • Changes not visible to library consumers, such as build script, documentation, or test code updates, don't need to
      be added to the changelog.
  • CLA signed.

Copy link
Copy Markdown

@vlsi vlsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and it seems to cover both positive and negative cases

Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/TypeSpec.kt Outdated
Copy link
Copy Markdown
Collaborator

@Egorand Egorand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great, and I really appreciate how thorough the test coverage is. Left some comments to address, and I'd suggest moving context receiver deprecation into a separate PR. With that, it should be good to merge!

Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/ContextParameter.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/ContextReceivable.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/FunSpec.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/FunSpec.kt
Comment thread kotlinpoet/src/jvmTest/kotlin/com/squareup/kotlinpoet/FunSpecTest.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/TypeSpec.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/CodeWriter.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/LambdaTypeName.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/ContextParameter.kt Outdated
Comment thread kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/CodeWriter.kt
Comment thread docs/context-parameters.md
Comment thread docs/context-parameters.md
Copy link
Copy Markdown
Collaborator

@Egorand Egorand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks great!

@Egorand Egorand merged commit cfdc213 into square:main Apr 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants