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

Side by Side Diff: pkg/front_end/lib/src/fasta/dill/dill_loader.dart

Issue 3009573002: Serialize exports scopes. (Closed)
Patch Set: Update status file for rasta/export.dart Created 3 years, 3 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 fasta.dill_loader; 5 library fasta.dill_loader;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'package:kernel/ast.dart' show Library, Program, Source; 9 import 'package:kernel/ast.dart' show Library, Program, Source;
10 10
11 import '../kernel/kernel_builder.dart' show LibraryBuilder;
12
11 import '../loader.dart' show Loader; 13 import '../loader.dart' show Loader;
12 14
13 import '../problems.dart' show unhandled; 15 import '../problems.dart' show unhandled;
14 16
15 import '../target_implementation.dart' show TargetImplementation; 17 import '../target_implementation.dart' show TargetImplementation;
16 18
17 import 'dill_library_builder.dart' show DillLibraryBuilder; 19 import 'dill_library_builder.dart' show DillLibraryBuilder;
18 20
19 class DillLoader extends Loader<Library> { 21 class DillLoader extends Loader<Library> {
20 /// Source targets are compiled against these binary libraries. 22 /// Source targets are compiled against these binary libraries.
(...skipping 27 matching lines...) Expand all
48 } 50 }
49 builder.library.classes.forEach(builder.addClass); 51 builder.library.classes.forEach(builder.addClass);
50 builder.library.procedures.forEach(builder.addMember); 52 builder.library.procedures.forEach(builder.addMember);
51 builder.library.typedefs.forEach(builder.addTypedef); 53 builder.library.typedefs.forEach(builder.addTypedef);
52 builder.library.fields.forEach(builder.addMember); 54 builder.library.fields.forEach(builder.addMember);
53 } 55 }
54 56
55 Future<Null> buildBody(DillLibraryBuilder builder) { 57 Future<Null> buildBody(DillLibraryBuilder builder) {
56 return buildOutline(builder); 58 return buildOutline(builder);
57 } 59 }
60
61 void finalizeExports() {
62 builders.forEach((Uri uri, LibraryBuilder builder) {
63 DillLibraryBuilder library = builder;
64 library.finalizeExports();
65 });
66 }
58 } 67 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698