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

Side by Side Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 1803303002: Move all flags to CompilerOptions (first step to stop passing the compiler to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/outputter.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 deferred_load; 5 library deferred_load;
6 6
7 import 'common.dart'; 7 import 'common.dart';
8 import 'common/backend_api.dart' show 8 import 'common/backend_api.dart' show
9 Backend; 9 Backend;
10 import 'common/tasks.dart' show 10 import 'common/tasks.dart' show
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 elements.add(type.element); 339 elements.add(type.element);
340 } 340 }
341 break; 341 break;
342 case TypeUseKind.INSTANTIATION: 342 case TypeUseKind.INSTANTIATION:
343 case TypeUseKind.IS_CHECK: 343 case TypeUseKind.IS_CHECK:
344 case TypeUseKind.AS_CAST: 344 case TypeUseKind.AS_CAST:
345 case TypeUseKind.CATCH_TYPE: 345 case TypeUseKind.CATCH_TYPE:
346 collectTypeDependencies(type); 346 collectTypeDependencies(type);
347 break; 347 break;
348 case TypeUseKind.CHECKED_MODE_CHECK: 348 case TypeUseKind.CHECKED_MODE_CHECK:
349 if (compiler.enableTypeAssertions) { 349 if (compiler.options.enableTypeAssertions) {
350 collectTypeDependencies(type); 350 collectTypeDependencies(type);
351 } 351 }
352 break; 352 break;
353 } 353 }
354 }), 354 }),
355 IMPACT_USE); 355 IMPACT_USE);
356 356
357 TreeElements treeElements = analyzableElement.resolvedAst.elements; 357 TreeElements treeElements = analyzableElement.resolvedAst.elements;
358 assert(treeElements != null); 358 assert(treeElements != null);
359 359
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 return result; 1012 return result;
1013 } 1013 }
1014 1014
1015 bool operator ==(other) { 1015 bool operator ==(other) {
1016 if (other is! _DeclaredDeferredImport) return false; 1016 if (other is! _DeclaredDeferredImport) return false;
1017 return declaration == other.declaration; 1017 return declaration == other.declaration;
1018 } 1018 }
1019 1019
1020 int get hashCode => declaration.hashCode * 17; 1020 int get hashCode => declaration.hashCode * 17;
1021 } 1021 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/outputter.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698