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

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

Issue 2931773003: Add flutter mode to patched_sdk (Closed)
Patch Set: 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) 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 17 matching lines...) Expand all
28 libraries.add(library); 28 libraries.add(library);
29 DillLibraryBuilder builder = read(library.importUri, -1); 29 DillLibraryBuilder builder = read(library.importUri, -1);
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> buildOutline(DillLibraryBuilder builder) async { 37 Future<Null> buildOutline(DillLibraryBuilder builder) async {
38 assert(builder.library != null,
Siggi Cherem (dart-lang) 2017/06/08 22:18:53 (platched_sdk often fails here when files are not
ahe 2017/06/09 09:23:35 Please use internalError.
Siggi Cherem (dart-lang) 2017/06/14 17:55:37 Done.
39 "Builder.library for ${builder.uri} should not be null");
38 builder.library.classes.forEach(builder.addClass); 40 builder.library.classes.forEach(builder.addClass);
39 builder.library.procedures.forEach(builder.addMember); 41 builder.library.procedures.forEach(builder.addMember);
40 builder.library.typedefs.forEach(builder.addTypedef); 42 builder.library.typedefs.forEach(builder.addTypedef);
41 builder.library.fields.forEach(builder.addMember); 43 builder.library.fields.forEach(builder.addMember);
42 } 44 }
43 45
44 Future<Null> buildBody(DillLibraryBuilder builder) { 46 Future<Null> buildBody(DillLibraryBuilder builder) {
45 return buildOutline(builder); 47 return buildOutline(builder);
46 } 48 }
47 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698