Skip to content

Commit

Permalink
simplified isAnonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Feb 6, 2024
1 parent fe892e6 commit f57e2c5
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,8 @@ protected boolean isClass(JvmTypeReference typeRef) {
&& !((JvmGenericType) typeRef.getType()).isInterface();
}

/**
* Workaround for https://github.com/eclipse/xtext/issues/2886
*/
protected boolean isAnonymous(JvmGenericType type) {
return type.isAnonymous() ||
Iterables.getLast(type.getSuperTypes()) instanceof XComputedTypeReference;
return type.isAnonymous();
}

protected EObject getSuperTypeSourceElement(JvmTypeReference extendedType) {
Expand Down

0 comments on commit f57e2c5

Please sign in to comment.