@@ -400,7 +400,7 @@ private string stubAccessibility(Member m) {
400
400
if
401
401
m .getDeclaringType ( ) instanceof Interface
402
402
or
403
- exists ( useExplicitImplementedInterface ( m ) )
403
+ exists ( getExplicitImplementedInterface ( m ) )
404
404
or
405
405
m instanceof Constructor and m .isStatic ( )
406
406
then result = ""
@@ -714,21 +714,21 @@ private string stubEventAccessors(Event e) {
714
714
}
715
715
716
716
/**
717
- * Returns an interface that `c` explicitly implements, if either or the
718
- * following holds.
717
+ * Returns an interface that `c` explicitly implements, if either of the
718
+ * following also holds.
719
719
* (1) `c` is not static.
720
720
* (2) `c` is static and an implementation of a generic with type constraints.
721
721
* (3) `c` is static and there is another member with the same name
722
- * but different return types .
722
+ * but different return type .
723
723
*
724
- * We use these rules, as explicit interfaces are needed in some cases, eg.
724
+ * We use these rules as explicit interfaces are needed in some cases
725
725
* for compilation purposes (both to distinguish members but also to ensure
726
- * type constraints are satisfied). We can't always use the explicit interface
727
- * due to the generic math support, because then in some cases we will only be
728
- * able to access a static via a type variable with type
726
+ * type constraints are satisfied). We can't always use explicit interface
727
+ * implementation due to the generic math support, because then in some cases
728
+ * we will only be able to access a static via a type variable with type
729
729
* constraints (C# 11 language feature).
730
730
*/
731
- private Interface useExplicitImplementedInterface ( Virtualizable c ) {
731
+ private Interface getExplicitImplementedInterface ( Virtualizable c ) {
732
732
result = unique( Interface i | i = c .getExplicitlyImplementedInterface ( ) ) and
733
733
(
734
734
not c .isStatic ( )
@@ -754,8 +754,8 @@ private Interface useExplicitImplementedInterface(Virtualizable c) {
754
754
}
755
755
756
756
private string stubExplicitImplementation ( Member c ) {
757
- if exists ( useExplicitImplementedInterface ( c ) )
758
- then result = stubClassName ( useExplicitImplementedInterface ( c ) ) + "."
757
+ if exists ( getExplicitImplementedInterface ( c ) )
758
+ then result = stubClassName ( getExplicitImplementedInterface ( c ) ) + "."
759
759
else result = ""
760
760
}
761
761
0 commit comments