From f8f1504ec5fee778aee975e16d0e23788636cc31 Mon Sep 17 00:00:00 2001 From: Gabriel Darbord Date: Wed, 5 Jun 2024 23:07:44 +0200 Subject: [PATCH] Handle field access for parameter-attribute mapper --- .../FASTJavaFieldAccess.extension.st | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st b/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st index 97e954a..1ff336d 100644 --- a/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st +++ b/src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st @@ -5,3 +5,14 @@ FASTJavaFieldAccess >> accessedAttributeName [ ^ fieldName ] + +{ #category : #'*Famix-Value-Exporter' } +FASTJavaFieldAccess >> accessedAttributesOf: aFamixJavaClass [ + "TODO: ensure 'this' is of the given class..." + + self receiver name = 'this' ifFalse: [ ^ { } ]. + aFamixJavaClass attributes + detect: [ :attribute | attribute name = self fieldName ] + ifFound: [ :attribute | ^ { attribute } ]. + ^ { } +]