From f8a10426c800640a51d738574668fb5a40294b09 Mon Sep 17 00:00:00 2001 From: MohamedCooding Date: Fri, 19 Apr 2024 02:28:46 -0700 Subject: [PATCH] rename #importSmalltalkStubMethod to #importStubMethod in smalltalk importer. The smalltalk importer is specific to pharo, we do not need the precision. --- .../ImportStubMethodSpecialTest.class.st | 2 +- .../FamixStImporterContext.class.st | 10 +++++----- .../FamixStPharoImporterTask.class.st | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Moose-SmalltalkImporter-LAN-Tests/ImportStubMethodSpecialTest.class.st b/src/Moose-SmalltalkImporter-LAN-Tests/ImportStubMethodSpecialTest.class.st index e7f9ebf4..7f0c1448 100644 --- a/src/Moose-SmalltalkImporter-LAN-Tests/ImportStubMethodSpecialTest.class.st +++ b/src/Moose-SmalltalkImporter-LAN-Tests/ImportStubMethodSpecialTest.class.st @@ -19,7 +19,7 @@ ImportStubMethodSpecialTest >> setUp [ model: FamixStModel new; addFromPackageNamed: #'Moose-TestResources-LAN'; yourself. - importingTask importingContext importSmalltalkStubMethod. + importingTask importingContext importStubMethod. importingTask run. model := importingTask model ] diff --git a/src/Moose-SmalltalkImporter/FamixStImporterContext.class.st b/src/Moose-SmalltalkImporter/FamixStImporterContext.class.st index c1189269..74442057 100644 --- a/src/Moose-SmalltalkImporter/FamixStImporterContext.class.st +++ b/src/Moose-SmalltalkImporter/FamixStImporterContext.class.st @@ -56,7 +56,7 @@ FamixStImporterContext class >> defineEntityDependencies [ with: self importingLocalVariable with: self importingAccess with: self importingArgument); - at: self importingSmalltalkStubMethod put: (Set with: self importingMethod with: self importingSmalltalkStubMethod) + at: self importingStubMethod put: (Set with: self importingMethod with: self importingStubMethod) ] { #category : #initialize } @@ -150,7 +150,7 @@ FamixStImporterContext class >> importingPackage [ ] { #category : #'basic representation' } -FamixStImporterContext class >> importingSmalltalkStubMethod [ +FamixStImporterContext class >> importingStubMethod [ ^#StubMethod ] @@ -312,10 +312,10 @@ FamixStImporterContext >> importPackage [ ] { #category : #'importing-filters' } -FamixStImporterContext >> importSmalltalkStubMethod [ +FamixStImporterContext >> importStubMethod [ "Kind of a hack to import stub-methods in smalltalk" - self entityKindsToBeExtracted addAll: (self allDependentsOf: self class importingSmalltalkStubMethod) + self entityKindsToBeExtracted addAll: (self allDependentsOf: self class importingStubMethod) ] { #category : #'import options' } @@ -456,7 +456,7 @@ FamixStImporterContext >> shouldImportPackage [ { #category : #'importing queries' } FamixStImporterContext >> shouldImportSmalltalkStubMethod [ - ^self shouldImport: self class importingSmalltalkStubMethod + ^self shouldImport: self class importingStubMethod ] { #category : #'importing queries' } diff --git a/src/Moose-SmalltalkImporter/FamixStPharoImporterTask.class.st b/src/Moose-SmalltalkImporter/FamixStPharoImporterTask.class.st index c482669d..faca751e 100644 --- a/src/Moose-SmalltalkImporter/FamixStPharoImporterTask.class.st +++ b/src/Moose-SmalltalkImporter/FamixStPharoImporterTask.class.st @@ -103,7 +103,7 @@ FamixStPharoImporterTask >> defaultImportingContext [ | context | context := FamixStImporterContext new importMaximum. - context entityKindsToBeExtracted remove: context class importingSmalltalkStubMethod. + context entityKindsToBeExtracted remove: context class importingStubMethod. ^ context ]