dev_compiler: prepare for curly_braces lint change

This aligns this code better with Effective Dart and prepares for the
upcoming lint rule change at https://dart-review.googlesource.com/c/sdk/+/353140.

Change-Id: I1b3ff4a4f85ec2182d06a67acf0e43fbc45129f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353220
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
Sam Rawlins 2024-02-20 16:04:30 +00:00 committed by Commit Queue
parent 93b7791c0c
commit cda9755918

View file

@ -940,7 +940,9 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
var supertype = toVisit.removeFirst();
var superclass = supertype.classNode;
if (allImplementedTypes.contains(supertype) ||
superclass == _coreTypes.objectClass) continue;
superclass == _coreTypes.objectClass) {
continue;
}
toVisit.addAll(superclass.supers);
// Skip encoding the synthetic classes in the type rules because they
// will never be instantiated or appear in type tests.