Skip to content

refactor(autofix): Fix handling of chained method calls#691

Merged
RandomByte merged 5 commits into
mainfrom
fix-autofix-access-expression-in-chain
Jun 12, 2025
Merged

refactor(autofix): Fix handling of chained method calls#691
RandomByte merged 5 commits into
mainfrom
fix-autofix-access-expression-in-chain

Conversation

@RandomByte

@RandomByte RandomByte commented Jun 11, 2025

Copy link
Copy Markdown
Member

Ensure that fixes for access expressions as well as call expressions are only applied to the correct segment
of the expression.

In order to investigate this, an autofix for Core.getConfiguration() has been added.

Also: Refactor common parts from fixes into base classes and simplify code from the refactoring.

Ensure access expression fixes are only applied to the correct segment
of an access chain.

Refactor common parts into base class
@RandomByte
RandomByte force-pushed the fix-autofix-access-expression-in-chain branch from 1dbafaf to 56b42dd Compare June 11, 2025 16:01
@RandomByte RandomByte changed the title refactor(autofix): Fix access expression fix in chain refactor(autofix): Fix chain calls Jun 11, 2025
@RandomByte
RandomByte force-pushed the fix-autofix-access-expression-in-chain branch from b399a89 to 2c587e9 Compare June 11, 2025 17:38
@RandomByte
RandomByte requested a review from a team June 11, 2025 18:23
@RandomByte RandomByte changed the title refactor(autofix): Fix chain calls refactor(autofix): Fix handling of chained method calls Jun 11, 2025
@RandomByte
RandomByte merged commit cf4b7b6 into main Jun 12, 2025
23 checks passed
@RandomByte
RandomByte deleted the fix-autofix-access-expression-in-chain branch June 12, 2025 07:32
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