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

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

Issue 2894583005: Unsort methods from CL 2872903005. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | 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) 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; 9 import 'package:kernel/ast.dart' show Library, Program;
10 10
(...skipping 16 matching lines...) Expand all
27 if (filter == null || filter(library.importUri)) { 27 if (filter == null || filter(library.importUri)) {
28 libraries.add(library); 28 libraries.add(library);
29 DillLibraryBuilder builder = read(library.importUri); 29 DillLibraryBuilder builder = read(library.importUri);
30 builder.library = library; 30 builder.library = library;
31 builders.add(builder); 31 builders.add(builder);
32 } 32 }
33 } 33 }
34 return builders; 34 return builders;
35 } 35 }
36 36
37 Future<Null> buildBody(DillLibraryBuilder builder) { 37 DillLibraryBuilder read(Uri uri, [Uri fileUri]) => super.read(uri, fileUri);
38 return buildOutline(builder);
39 }
40 38
41 Future<Null> buildOutline(DillLibraryBuilder builder) async { 39 Future<Null> buildOutline(DillLibraryBuilder builder) async {
42 builder.library.classes.forEach(builder.addClass); 40 builder.library.classes.forEach(builder.addClass);
43 builder.library.procedures.forEach(builder.addMember); 41 builder.library.procedures.forEach(builder.addMember);
44 builder.library.typedefs.forEach(builder.addTypedef); 42 builder.library.typedefs.forEach(builder.addTypedef);
45 builder.library.fields.forEach(builder.addMember); 43 builder.library.fields.forEach(builder.addMember);
46 } 44 }
47 45
48 DillLibraryBuilder read(Uri uri, [Uri fileUri]) => super.read(uri, fileUri); 46 Future<Null> buildBody(DillLibraryBuilder builder) {
47 return buildOutline(builder);
48 }
49 } 49 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698