New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add back writeTo(Filer) and originating element APIs #647
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Will rebase this tomorrow |
ZacSweers
added a commit
to square/moshi
that referenced
this issue
Mar 26, 2019
This adds support for incremental compilation in gradle via incap helper and marking the code gen as `ISOLATING`. Depends on a newer version of KotlinPoet that has square/kotlinpoet#647 Resolves #589
ZacSweers
added a commit
to square/moshi
that referenced
this issue
Mar 26, 2019
This adds support for incremental compilation in gradle via incap helper and marking the code gen as `ISOLATING`. Depends on a newer version of KotlinPoet that has square/kotlinpoet#647 Resolves #589
Egorand
approved these changes
Mar 26, 2019
src/main/java/com/squareup/kotlinpoet/OriginatingElementsHolder.kt
Outdated
Show resolved
Hide resolved
src/main/java/com/squareup/kotlinpoet/OriginatingElementsHolder.kt
Outdated
Show resolved
Hide resolved
ShaishavGandhi
approved these changes
Mar 26, 2019
Egorand
reviewed
Mar 26, 2019
This reverts commit 1858c44.
ZacSweers
added a commit
to square/moshi
that referenced
this issue
Apr 18, 2019
This adds support for incremental compilation in gradle via incap helper and marking the code gen as `ISOLATING`. Depends on a newer version of KotlinPoet that has square/kotlinpoet#647 Resolves #589
ZacSweers
added a commit
to square/moshi
that referenced
this issue
Apr 18, 2019
* Support gradle incremental processing in code gen This adds support for incremental compilation in gradle via incap helper and marking the code gen as `ISOLATING`. Depends on a newer version of KotlinPoet that has square/kotlinpoet#647 Resolves #589 * Opportunistically update to auto-service 1.0-rc5 Supports incremental compilation and moves annotations to a separate artifact * 1.2.0 final! * Mark compiler embeddales as test only
ShaishavGandhi
pushed a commit
to ShaishavGandhi/kotlinpoet
that referenced
this issue
Aug 14, 2019
* Initial pass at OriginatingElement interface * Wire in OriginatingElementsHolder to TypeSpec * Remove unnecessary return type * Read nested elements as well in TypeSpec * Add back TestFiler * Opportunistic use idiomatic map assignment * Use kt for source file * Add FakeElement for Element instance testing use * Add back FileSpec.writeTo() with original FileWriting and TypeSpec tests From square@d24e4af * Add List<Element> buildOriginatingElements extension * Add originating elements to FunSpec * Add originating elements to PropertySpec * Add a mixed file to tests * Add toBuilder tests * Don't error on non-originating elements members * Formatting and copyright fixes * Opportunistic add missing copyright to taggable files * Back to 2014 * Revert "Opportunistic add missing copyright to taggable files" This reverts commit 1858c44.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Resolves #105
This adds back the
FileSpec#writeTo(File)
API and originating element APIs onTypeSpec
, as well as spreading support for originating elements ontoPropertySpec
andFunSpec
(since you could have files with no types). Most of this was borrowed from the original revert in d24e4afThis uses a simpler version of the interface pattern
Taggable
uses to reuse the logic and make integrating it simple inFileSpec
.