Skip to content

Introduce FormattingOptions.useExperimentalEngine - #655

Merged
AbdullinAM merged 1 commit into
test-infrafrom
kotlinlang-new-style-experiments
Aug 7, 2026
Merged

Introduce FormattingOptions.useExperimentalEngine#655
AbdullinAM merged 1 commit into
test-infrafrom
kotlinlang-new-style-experiments

Conversation

@qwwdfsad

@qwwdfsad qwwdfsad commented Aug 3, 2026

Copy link
Copy Markdown
Member
  • Private, internal-only mode for ongoing development
  • A separate KotlinInputAstVisitor to evolve independently, so no actual users are affected
  • Add a single test case to showcase the idea

The idea is that we can tweak the independent, publicly non-accessible visitor/format to see if we can comply with various findings from our comparison by adjusting rules here and there

}

if (onlyAnnotationsSoFar) {
if (onlyAnnotationsSoFar && forceAnnotationBreaks && psi is KtAnnotationEntry) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe it's worth copying and pasting the entire method to avoid any inference.
A bit harder to maintain, but not much difference

@qwwdfsad
qwwdfsad requested a review from AbdullinAM August 3, 2026 17:05
@AbdullinAM
AbdullinAM force-pushed the kotlinlang-new-style-experiments branch 2 times, most recently from 85efe80 to 988890d Compare August 7, 2026 12:32
@AbdullinAM
AbdullinAM force-pushed the kotlinlang-new-style-experiments branch from 988890d to 93b3642 Compare August 7, 2026 12:37
@AbdullinAM
AbdullinAM force-pushed the kotlinlang-new-style-experiments branch from 93b3642 to 08258ec Compare August 7, 2026 12:41
* Private, internal-only mode for ongoing development
* A separate KotlinInputAstVisitor to evolve independently so no actual users are affected
* Add a single test-case to showcase the idea
@AbdullinAM
AbdullinAM force-pushed the kotlinlang-new-style-experiments branch from 08258ec to 0e12bba Compare August 7, 2026 12:44
@AbdullinAM
AbdullinAM merged commit 35e8364 into main Aug 7, 2026
6 checks passed
@AbdullinAM
AbdullinAM deleted the kotlinlang-new-style-experiments branch August 7, 2026 13:02
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.

2 participants