Skip to content

Visitor refactoring - #668

Open
AbdullinAM wants to merge 7 commits into
mainfrom
abdullin/visitor-refactoring
Open

Visitor refactoring#668
AbdullinAM wants to merge 7 commits into
mainfrom
abdullin/visitor-refactoring

Conversation

@AbdullinAM

@AbdullinAM AbdullinAM commented Aug 11, 2026

Copy link
Copy Markdown
Member

Motivation: simplify KotlinInputAstVisitor by separating it into separate independent formatter visitors responsible for small subsystems. This is an initial prototype, the separation will continue in the following PRs

Note: this is just general idea for the structure, I haven't refactored the 'contents' of the moved functions. I plan to do that after the split

Extract formatting of file-level psi nodes to a separate visitor
@AbdullinAM
AbdullinAM force-pushed the abdullin/visitor-refactoring branch from 3c3c9d7 to f0c43e0 Compare August 11, 2026 16:05
@AbdullinAM
AbdullinAM marked this pull request as ready for review August 11, 2026 16:05
@AbdullinAM
AbdullinAM requested a review from qwwdfsad August 11, 2026 16:09
@AbdullinAM
AbdullinAM force-pushed the abdullin/visitor-refactoring branch from f0c43e0 to 96638b8 Compare August 11, 2026 16:21
TypeFormatter depends on ListFormatter, so we have to extract them simultaneously
@AbdullinAM
AbdullinAM force-pushed the abdullin/visitor-refactoring branch from 96638b8 to fd1f2c7 Compare August 11, 2026 16:26
@qwwdfsad
qwwdfsad force-pushed the abdullin/visitor-refactoring branch from 261d134 to db0be90 Compare August 12, 2026 17:15
…ever a chance formatter removes the code

Also, adjust broken package
@qwwdfsad
qwwdfsad force-pushed the abdullin/visitor-refactoring branch from efff0ae to cb64804 Compare August 12, 2026 17:31
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