Explicit backing fields support - #580
Conversation
There was a problem hiding this comment.
Looking great! Thank you so much for helping add support to this feature.
Please address the comments here and make sure to format the code as well (I think it's ./gradlew ktfmtFormat).
Update: I see you are from São Paulo => Mandou bem nesse PR!
Summary:
It's not required by the runtime classpath. This also fixes errors like:
```
Execution failed for task ':ktfmt:compileTestKotlin'.
> Could not resolve all files for configuration ':ktfmt:testCompileClasspath'.
> Could not resolve org.jetbrains.kotlin:kotlin-test:2.2.0.
Required by:
project :ktfmt
> Unable to find a variant with the requested capability: coordinates 'org.jetbrains.kotlin:kotlin-test-framework-junit':
- Variant 'compile' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
- Variant 'enforced-platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
- Variant 'enforced-platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
- Variant 'javadoc' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
- Variant 'platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
- Variant 'platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
- Variant 'runtime' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
- Variant 'sources' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
```
Pull Request resolved: Kotlin#579
Reviewed By: strulovich
Differential Revision: D89469731
Pulled By: hick209
fbshipit-source-id: 18eca1fd1d42673af0f240072418690a41a7fe08
Thanks for the review! I’ve already addressed the comments and pushed the changes (including running |
|
Perfeito! Obrigado por contribuir! |
|
Espera um pouco... Here it says that one of the tests did not pass. Could you address that? |
Perdão. I’ve just pushed the remaining changes, including the changes to remove support for modifiers. |
field = …/field: Type = …) by visitingKtBackingField, emitting modifiers/name/type/initializer, and ordering backing fields with accessors by source position so tokenization no longer fails when-Xexplicit-backing-fieldsis enabled.Resolves #531