From 00267b1c153092748c6c99d6d73dbc74b15499b2 Mon Sep 17 00:00:00 2001 From: Gabriel Darbord Date: Thu, 18 Jul 2024 10:03:41 +0200 Subject: [PATCH 1/2] Add `methods` polymorphism to UnknownType --- .../FamixValueUnknownType.extension.st | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Famix-Value-Entities-Extensions/FamixValueUnknownType.extension.st b/src/Famix-Value-Entities-Extensions/FamixValueUnknownType.extension.st index 85d6b3e..a857f57 100644 --- a/src/Famix-Value-Entities-Extensions/FamixValueUnknownType.extension.st +++ b/src/Famix-Value-Entities-Extensions/FamixValueUnknownType.extension.st @@ -30,6 +30,12 @@ FamixValueUnknownType >> isPrimitiveType [ ^ false ] +{ #category : #'*Famix-Value-Entities-Extensions' } +FamixValueUnknownType >> methods [ + + ^ { } +] + { #category : #'*Famix-Value-Entities-Extensions' } FamixValueUnknownType >> typeName [ From 96d918f3a60d353e6920dc6b4b8819f2a9d1e822 Mon Sep 17 00:00:00 2001 From: Gabriel Darbord Date: Thu, 18 Jul 2024 10:04:16 +0200 Subject: [PATCH 2/2] JavaEntityFinder: find inner classes --- src/Famix-Value-Importer/FamixJavaEntityFinder.class.st | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Famix-Value-Importer/FamixJavaEntityFinder.class.st b/src/Famix-Value-Importer/FamixJavaEntityFinder.class.st index c688b04..da00bab 100644 --- a/src/Famix-Value-Importer/FamixJavaEntityFinder.class.st +++ b/src/Famix-Value-Importer/FamixJavaEntityFinder.class.st @@ -46,8 +46,8 @@ FamixJavaEntityFinder >> parseTypeName: name [ ifTrue: [ "Search by translating the type name to a mooseName." self findTypeWithMooseName: ((typeName allButLast: dimensions * 2) - copyWithRegex: '\.|\$' - matchesReplacedWith: '::') ]. + copyReplaceAll: '.' + with: '::') ]. ^ dimensions > 0 ifFalse: [ type ] ifTrue: [