Skip to content

Commit

Permalink
Do not use RPackage organizer
Browse files Browse the repository at this point in the history
This method emulates a dynamic global variable and is plan for deprecation. This PR provides an alternative way to access the organizer that does not contains the hacks of `RPackage organizer`.
  • Loading branch information
jecisc committed Jul 27, 2023
1 parent f0e5a12 commit bb6a86c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Class {
StRewriterRenrakuApplier class >> calculateAllChangesForRules: aRulesCollection [

| allSystemMethods |
allSystemMethods := (RPackage organizer packages flatCollect: [:each | each classes])
allSystemMethods := (self packageOrganizer packages flatCollect: [:each | each classes])
flatCollect: [ :each | each methods] as: Set.

^ self calculateChangesForClasses: allSystemMethods asSet transformationRules: aRulesCollection
Expand Down Expand Up @@ -66,6 +66,6 @@ Take a look on ReCriticEngine for some automation ideas. Also take a look at Com
StRewriterRenrakuApplier class >> obtainCritiquesOfAllMethodsForRules: ruleHolderCollection [

| methods |
methods := (RPackage organizer packages flatCollect: #classes) flatCollect: #methods.
methods := (self packageOrganizer packages flatCollect: #classes) flatCollect: #methods.
^ self obtainCritiquesOf: methods forRules: ruleHolderCollection
]

0 comments on commit bb6a86c

Please sign in to comment.