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

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

Issue 2012163003: Fix several element properties in serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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.library_loader; 5 library dart2js.library_loader;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'common/names.dart' show Uris; 9 import 'common/names.dart' show Uris;
10 import 'common/tasks.dart' show CompilerTask, Measurer; 10 import 'common/tasks.dart' show CompilerTask, Measurer;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 /// Hooks to inform others about progress done by this loader. 292 /// Hooks to inform others about progress done by this loader.
293 // TODO(sigmund): move away from this. 293 // TODO(sigmund): move away from this.
294 final LibraryLoaderListener listener; 294 final LibraryLoaderListener listener;
295 295
296 /// Definitions provided via the `-D` command line flags. Used to resolve 296 /// Definitions provided via the `-D` command line flags. Used to resolve
297 /// conditional imports. 297 /// conditional imports.
298 final Environment environment; 298 final Environment environment;
299 299
300 final DiagnosticReporter reporter; 300 final DiagnosticReporter reporter;
301 301
302 _LibraryLoaderTask(this.uriTranslator, this.scriptLoader, 302 _LibraryLoaderTask(
303 this.scanner, this.deserializer, this.listener, this.environment, 303 this.uriTranslator,
304 this.reporter, Measurer measurer) 304 this.scriptLoader,
305 this.scanner,
306 this.deserializer,
307 this.listener,
308 this.environment,
309 this.reporter,
310 Measurer measurer)
305 : super(measurer); 311 : super(measurer);
306 312
307 String get name => 'LibraryLoader'; 313 String get name => 'LibraryLoader';
308 314
309 final Map<Uri, LibraryElement> libraryCanonicalUriMap = 315 final Map<Uri, LibraryElement> libraryCanonicalUriMap =
310 new Map<Uri, LibraryElement>(); 316 new Map<Uri, LibraryElement>();
311 final Map<Uri, LibraryElement> libraryResourceUriMap = 317 final Map<Uri, LibraryElement> libraryResourceUriMap =
312 new Map<Uri, LibraryElement>(); 318 new Map<Uri, LibraryElement>();
313 final Map<String, LibraryElement> libraryNames = 319 final Map<String, LibraryElement> libraryNames =
314 new Map<String, LibraryElement>(); 320 new Map<String, LibraryElement>();
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 Future onLibrariesLoaded(LoadedLibraries results); 1509 Future onLibrariesLoaded(LoadedLibraries results);
1504 1510
1505 /// Called whenever a library element is created. 1511 /// Called whenever a library element is created.
1506 void onLibraryCreated(LibraryElement library); 1512 void onLibraryCreated(LibraryElement library);
1507 1513
1508 /// Called whenever a library is scanned from a script file. 1514 /// Called whenever a library is scanned from a script file.
1509 Future onLibraryScanned(LibraryElement library, LibraryLoader loader); 1515 Future onLibraryScanned(LibraryElement library, LibraryLoader loader);
1510 } 1516 }
1511 1517
1512 const _reuseLibrarySubtaskName = "Reuse library"; 1518 const _reuseLibrarySubtaskName = "Reuse library";
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/resolution/member_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698