@@ -1301,8 +1301,7 @@ class ErrorVerifier extends RecursiveAstVisitor<void> {
1301
1301
* Verify that all classes of the given [withClause] are valid.
1302
1302
*
1303
1303
* 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] .
1306
1305
*/
1307
1306
bool _checkForAllMixinErrorCodes (WithClause withClause) {
1308
1307
if (withClause == null ) {
@@ -1342,9 +1341,6 @@ class ErrorVerifier extends RecursiveAstVisitor<void> {
1342
1341
if (_checkForMixinInheritsNotFromObject (mixinName, mixinElement)) {
1343
1342
problemReported = true ;
1344
1343
}
1345
- if (_checkForMixinReferencesSuper (mixinName, mixinElement)) {
1346
- problemReported = true ;
1347
- }
1348
1344
}
1349
1345
}
1350
1346
}
@@ -3297,24 +3293,6 @@ class ErrorVerifier extends RecursiveAstVisitor<void> {
3297
3293
return false ;
3298
3294
}
3299
3295
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
-
3318
3296
/// Check that superclass constrains for the mixin type of [mixinName] at
3319
3297
/// the [mixinIndex] position in the mixins list are satisfied by the
3320
3298
/// [_enclosingClass] , or a previous mixin.
0 commit comments