@@ -1301,8 +1301,7 @@ class ErrorVerifier extends RecursiveAstVisitor<void> {
13011301 * Verify that all classes of the given [withClause] are valid.
13021302 *
13031303 * See [CompileTimeErrorCode.MIXIN_CLASS_DECLARES_CONSTRUCTOR] ,
1304- * [CompileTimeErrorCode.MIXIN_INHERITS_FROM_NOT_OBJECT] , and
1305- * [CompileTimeErrorCode.MIXIN_REFERENCES_SUPER] .
1304+ * [CompileTimeErrorCode.MIXIN_INHERITS_FROM_NOT_OBJECT] .
13061305 */
13071306 bool _checkForAllMixinErrorCodes (WithClause withClause) {
13081307 if (withClause == null ) {
@@ -1342,9 +1341,6 @@ class ErrorVerifier extends RecursiveAstVisitor<void> {
13421341 if (_checkForMixinInheritsNotFromObject (mixinName, mixinElement)) {
13431342 problemReported = true ;
13441343 }
1345- if (_checkForMixinReferencesSuper (mixinName, mixinElement)) {
1346- problemReported = true ;
1347- }
13481344 }
13491345 }
13501346 }
@@ -3297,24 +3293,6 @@ class ErrorVerifier extends RecursiveAstVisitor<void> {
32973293 return false ;
32983294 }
32993295
3300- /**
3301- * Verify that the given mixin does not reference 'super'. The [mixinName] is
3302- * the node to report problem on. The [mixinElement] is the mixing to
3303- * evaluate.
3304- *
3305- * See [CompileTimeErrorCode.MIXIN_REFERENCES_SUPER] .
3306- */
3307- bool _checkForMixinReferencesSuper (
3308- TypeName mixinName, ClassElement mixinElement) {
3309- if (mixinElement.hasReferenceToSuper) {
3310- _errorReporter.reportErrorForNode (
3311- CompileTimeErrorCode .MIXIN_REFERENCES_SUPER ,
3312- mixinName,
3313- [mixinElement.name]);
3314- }
3315- return false ;
3316- }
3317-
33183296 /// Check that superclass constrains for the mixin type of [mixinName] at
33193297 /// the [mixinIndex] position in the mixins list are satisfied by the
33203298 /// [_enclosingClass] , or a previous mixin.
0 commit comments