Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: pkg/compiler/lib/src/universe/class_set.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.world.class_set; 5 library dart2js.world.class_set;
6 6
7 import 'dart:collection' show IterableBase; 7 import 'dart:collection' show IterableBase;
8 8
9 import '../elements/elements.dart' show ClassElement; 9 import '../elements/elements.dart' show ClassElement;
10 import '../elements/entities.dart' show ClassEntity; 10 import '../elements/entities.dart' show ClassEntity;
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 if (subclass != null) { 336 if (subclass != null) {
337 return subclass.getLubOfInstantiatedSubclasses(); 337 return subclass.getLubOfInstantiatedSubclasses();
338 } 338 }
339 return cls; 339 return cls;
340 } 340 }
341 341
342 void printOn(StringBuffer sb, String indentation, 342 void printOn(StringBuffer sb, String indentation,
343 {bool instantiatedOnly: false, 343 {bool instantiatedOnly: false,
344 bool sorted: true, 344 bool sorted: true,
345 ClassElement withRespectTo}) { 345 ClassElement withRespectTo}) {
346 bool isRelatedTo(ClassElement subclass) { 346 bool isRelatedTo(ClassEntity _subclass) {
347 ClassElement subclass = _subclass;
347 return subclass == withRespectTo || 348 return subclass == withRespectTo ||
348 subclass.implementsInterface(withRespectTo); 349 subclass.implementsInterface(withRespectTo);
349 } 350 }
350 351
351 sb.write(indentation); 352 sb.write(indentation);
352 if (cls.isAbstract) { 353 if (cls.isAbstract) {
353 sb.write('abstract '); 354 sb.write('abstract ');
354 } 355 }
355 sb.write('class ${cls.name}:'); 356 sb.write('class ${cls.name}:');
356 if (isDirectlyInstantiated) { 357 if (isDirectlyInstantiated) {
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 STOP, 919 STOP,
919 920
920 /// Iteration skips the subclasses of the current class. 921 /// Iteration skips the subclasses of the current class.
921 SKIP_SUBCLASSES, 922 SKIP_SUBCLASSES,
922 } 923 }
923 924
924 /// Visiting function used for the `forEachX` functions of [ClassHierarchyNode] 925 /// Visiting function used for the `forEachX` functions of [ClassHierarchyNode]
925 /// and [ClassSet]. The return value controls the continued iteration. If `null` 926 /// and [ClassSet]. The return value controls the continued iteration. If `null`
926 /// is returned, iteration continues to the end. 927 /// is returned, iteration continues to the end.
927 typedef IterationStep ForEachFunction(ClassEntity cls); 928 typedef IterationStep ForEachFunction(ClassEntity cls);
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/types/union_type_mask.dart ('k') | pkg/compiler/lib/src/universe/codegen_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698