Skip to content

Commit

Permalink
Fix FamixTParametricEntity >> allTypeParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord authored Jan 31, 2024
1 parent 1198afd commit 4ead467
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Famix-Traits/FamixTParametricEntity.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ FamixTParametricEntity >> addGenericParameter: anObject [
{ #category : #accessing }
FamixTParametricEntity >> allTypeParameters [

| collection |
collection := OrderedCollection new:
self concreteParameters + self genericParameters size.
collection
addAll: self concreteParameters;
addAll: self genericParameters.
^ collection
^ (OrderedCollection new:
self concreteParameters size + self genericParameters size)
addAll: self concreteParameters;
addAll: self genericParameters;
yourself
]

{ #category : #accessing }
Expand Down

0 comments on commit 4ead467

Please sign in to comment.