mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 10:48:25 +00:00
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:
parent
93b7791c0c
commit
cda9755918
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue