Skip to content

Faulty code: move code reparator to RBNotice#13277

Merged
MarcusDenker merged 7 commits intopharo-project:Pharo12from
privat:faulty-code-reparator-in-notice
Apr 5, 2023
Merged

Faulty code: move code reparator to RBNotice#13277
MarcusDenker merged 7 commits intopharo-project:Pharo12from
privat:faulty-code-reparator-in-notice

Conversation

@privat
Copy link
Contributor

@privat privat commented Apr 4, 2023

This PR is a simple cleanup, but I do not like big PR.

The original idea was to simplify OpalCompiler >> checkNotice: by removing conditions and type checks.
A simple solution was to move the reparation concern to the RBNotice.

Currently, OCCodeReparator is still the fragile and limited class that was extracted from the original OCUndeclaredVariableWarning, but there is no reason that clients have to deal with too much detail about that.
So let's imagine that any RBNotice might propose some possible ways to repair itself. It simplifies the client code that do not have to deal about specific errors and warnings.

@privat
Copy link
Contributor Author

privat commented Apr 4, 2023

test ok, issues unrelated. cf #13278

@MarcusDenker MarcusDenker merged commit 270a267 into pharo-project:Pharo12 Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants