Skip to content

Commit

Permalink
hot hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Jun 14, 2022
1 parent 5034ba1 commit 1438a9d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Carrefour-FastAndBindingGenerator/CRFBinderVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,13 @@ CRFBinderVisitor >> visitFASTJavaNewExpression: aFASTJavaNewExpression [
sortedPotentialInvoc := self
sortCollection: collectionOfPotentialInvoc
byDistanceWith: aFASTJavaNewExpression.
((aFASTJavaNewExpression isKindOf: FASTJavaNewClassExpression)
ifTrue: [ sortedPotentialInvoc first ]
ifFalse: [ sortedPotentialInvoc last ]) fast:
(((aFASTJavaNewExpression isKindOf: FASTJavaNewExpression)
and: [
aFASTJavaNewExpression receiverOwner isNotNil and: [
aFASTJavaNewExpression receiverOwner isKindOf:
FASTJavaNewExpression ] ])
ifTrue: [ sortedPotentialInvoc last. ]
ifFalse: [ sortedPotentialInvoc first ]) fast:
aFASTJavaNewExpression ].
super visitFASTJavaNewExpression: aFASTJavaNewExpression
]
Expand Down

0 comments on commit 1438a9d

Please sign in to comment.