Skip to content

Commit c8eac69

Browse files
Generalize isSelf by moving it to FamixTImplicitVariable
Even for Java, and presumably any other languages represented by Famix, an implicit variable for `this` (or equivalent) is named `self`.
1 parent ff4865f commit c8eac69

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Famix-PharoSmalltalk-Entities/FamixStImplicitVariable.class.st

-5
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ FamixStImplicitVariable class >> annotation [
4646
^ self
4747
]
4848

49-
{ #category : #testing }
50-
FamixStImplicitVariable >> isSelf [
51-
^ self name = #self
52-
]
53-
5449
{ #category : #testing }
5550
FamixStImplicitVariable >> isSuper [
5651
^ self name == #super

src/Famix-Traits/FamixTImplicitVariable.trait.st

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ FamixTImplicitVariable >> isImplicitVariable [
5656
^ true
5757
]
5858

59+
{ #category : #testing }
60+
FamixTImplicitVariable >> isSelf [
61+
62+
^ self name == #self
63+
]
64+
5965
{ #category : #accessing }
6066
FamixTImplicitVariable >> parentBehaviouralEntity [
6167
"Relation named: #parentBehaviouralEntity type: #FamixTWithImplicitVariables opposite: #implicitVariables"

0 commit comments

Comments
 (0)