From 48029213a8596706353b4041ee9a81a8828446dd Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Mon, 15 Apr 2024 22:58:42 +0200 Subject: [PATCH 1/9] There is no need for formal parameters --- .../MooseImportingContext.class.st | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/src/Moose-Importers/MooseImportingContext.class.st b/src/Moose-Importers/MooseImportingContext.class.st index 90a376b9..8962f69b 100644 --- a/src/Moose-Importers/MooseImportingContext.class.st +++ b/src/Moose-Importers/MooseImportingContext.class.st @@ -171,13 +171,6 @@ MooseImportingContext class >> defineEntityDependencies [ add: self importingInvocation; add: self importingMethod; yourself). - self entityDependencies - at: self importingFormalParameter - put: - ((Set new) - add: self importingMethod; - add: self importingFormalParameter; - yourself). self entityDependencies at: self importingArgument put: @@ -202,7 +195,6 @@ MooseImportingContext class >> defineEntityDependencies [ add: self importingAccess; add: self importingGlobalVariable; add: self importingArgument; - add: self importingFormalParameter; yourself). self entityDependencies at: self importingSmalltalkStubMethod @@ -274,12 +266,6 @@ MooseImportingContext class >> importFolderAndDependents [ ^self allDependentsOf: self importingFolder ] -{ #category : #'importing-filters' } -MooseImportingContext class >> importFormalParameterAndDependents [ - - ^self allDependentsOf: self importingFormalParameter -] - { #category : #'importing-filters' } MooseImportingContext class >> importGlobalVariableAndDependents [ @@ -390,12 +376,6 @@ MooseImportingContext class >> importingFolder [ ^#Folder ] -{ #category : #'basic representation' } -MooseImportingContext class >> importingFormalParameter [ - - ^#FormalParameter -] - { #category : #'basic representation' } MooseImportingContext class >> importingFunction [ @@ -609,14 +589,6 @@ MooseImportingContext >> importFolder [ self entityKindsToBeExtracted addAll: self class importFolderAndDependents ] -{ #category : #'importing-filters' } -MooseImportingContext >> importFormalParameter [ - "in fact you check the dependents of the dependents" - - self entityKindsToBeExtracted - addAll: self class importFormalParameterAndDependents -] - { #category : #'importing-filters' } MooseImportingContext >> importGlobalVariable [ "in fact you check the dependents of the dependents" @@ -794,12 +766,6 @@ MooseImportingContext >> shouldImportComment [ ^self shouldImport: self class importingComment ] -{ #category : #'importing queries' } -MooseImportingContext >> shouldImportFormalParameter [ - - ^self shouldImport: self class importingFormalParameter -] - { #category : #'importing queries' } MooseImportingContext >> shouldImportGlobalVariable [ From 6e271b2fa60d06424c2152bf4acaeea580426bd5 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Mon, 15 Apr 2024 22:59:38 +0200 Subject: [PATCH 2/9] No need for global variables in importing context --- .../MooseImportingContext.class.st | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/src/Moose-Importers/MooseImportingContext.class.st b/src/Moose-Importers/MooseImportingContext.class.st index 8962f69b..b665a8cc 100644 --- a/src/Moose-Importers/MooseImportingContext.class.st +++ b/src/Moose-Importers/MooseImportingContext.class.st @@ -178,13 +178,6 @@ MooseImportingContext class >> defineEntityDependencies [ add: self importingMethod; add: self importingArgument; yourself). - self entityDependencies - at: self importingGlobalVariable - put: - ((Set new) - add: self importingArgument; - add: self importingArgument; - yourself). self entityDependencies at: self importingAccess put: @@ -193,7 +186,6 @@ MooseImportingContext class >> defineEntityDependencies [ add: self importingImplicitVariable; add: self importingLocalVariable; add: self importingAccess; - add: self importingGlobalVariable; add: self importingArgument; yourself). self entityDependencies @@ -266,12 +258,6 @@ MooseImportingContext class >> importFolderAndDependents [ ^self allDependentsOf: self importingFolder ] -{ #category : #'importing-filters' } -MooseImportingContext class >> importGlobalVariableAndDependents [ - - ^self allDependentsOf: self importingGlobalVariable -] - { #category : #'importing-filters' } MooseImportingContext class >> importImplicitVariableAndDependents [ @@ -382,12 +368,6 @@ MooseImportingContext class >> importingFunction [ ^#Function ] -{ #category : #'basic representation' } -MooseImportingContext class >> importingGlobalVariable [ - - ^#GlobalVariable -] - { #category : #'basic representation' } MooseImportingContext class >> importingImplicitVariable [ @@ -589,14 +569,6 @@ MooseImportingContext >> importFolder [ self entityKindsToBeExtracted addAll: self class importFolderAndDependents ] -{ #category : #'importing-filters' } -MooseImportingContext >> importGlobalVariable [ - "in fact you check the dependents of the dependents" - - self entityKindsToBeExtracted - addAll: self class importGlobalVariableAndDependents -] - { #category : #'importing-filters' } MooseImportingContext >> importImplicitVariable [ "in fact you check the dependents of the dependents" @@ -766,12 +738,6 @@ MooseImportingContext >> shouldImportComment [ ^self shouldImport: self class importingComment ] -{ #category : #'importing queries' } -MooseImportingContext >> shouldImportGlobalVariable [ - - ^self shouldImport: self class importingGlobalVariable -] - { #category : #'importing queries' } MooseImportingContext >> shouldImportImplicitVariable [ From 51d7853995273637a4ef8aa2a62409394e160c4d Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Mon, 15 Apr 2024 23:01:07 +0200 Subject: [PATCH 3/9] No need for literals in importing contexts --- .../MooseImportingContext.class.st | 46 +------------------ 1 file changed, 2 insertions(+), 44 deletions(-) diff --git a/src/Moose-Importers/MooseImportingContext.class.st b/src/Moose-Importers/MooseImportingContext.class.st index b665a8cc..7dbaa01f 100644 --- a/src/Moose-Importers/MooseImportingContext.class.st +++ b/src/Moose-Importers/MooseImportingContext.class.st @@ -72,16 +72,8 @@ MooseImportingContext class >> defaultMergeClassAndMetaclass: aBoolean [ { #category : #initialize } MooseImportingContext class >> defineEntityDependencies [ - "self initialize" - "when we extract literals extract methods" - - self entityDependencies - at: self importingLiteral - put: - ((Set new) - add: self importingLiteral; - add: self importingMethod; - yourself). "when we extract comments do not extract anything else per default " +