Skip to content

Commit

Permalink
Handle field access for parameter-attribute mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord committed Jun 5, 2024
1 parent 79608c1 commit f8f1504
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Famix-Value-Exporter/FASTJavaFieldAccess.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -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 } ].
^ { }
]

0 comments on commit f8f1504

Please sign in to comment.