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

Side by Side Diff: pkg/kernel/lib/target/flutter_fasta.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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 library kernel.target.vm_fasta;
5
6 import '../ast.dart' show Program, Library;
7 import '../core_types.dart' show CoreTypes;
8 import '../class_hierarchy.dart' show ClassHierarchy;
9
10 import '../transformations/mixin_full_resolution.dart' as transformMixins
11 show transformLibraries;
12 import '../transformations/continuation.dart' as transformAsync
13 show transformLibraries;
14 import '../transformations/erasure.dart' as tranformErasure
15 show transformLibraries;
16
17 import 'targets.dart' show TargetFlags;
18 import 'flutter.dart' as flutter_target;
19
20 class FlutterFastaTarget extends flutter_target.FlutterTarget {
Siggi Cherem (dart-lang) 2017/06/08 22:18:53 I saw that Dima added the vm_fasta target, that ov
ahe 2017/06/09 09:23:35 I don't know. I've been wondering about that as we
21 FlutterFastaTarget(TargetFlags flags) : super(flags);
22
23 String get name => "flutter_fasta";
24
25 void performModularTransformationsOnLibraries(
26 CoreTypes coreTypes, ClassHierarchy hierarchy, List<Library> libraries,
27 {void logger(String msg)}) {
28 transformMixins.transformLibraries(this, coreTypes, hierarchy, libraries);
29 logger?.call("Transformed mixin applications");
30
31 // TODO(ahe): Don't generate type variables in the first place.
32 if (!strongMode) {
33 tranformErasure.transformLibraries(coreTypes, libraries);
34 logger?.call("Erased type variables in generic methods");
35 }
36
37 // TODO(kmillikin): Make this run on a per-method basis.
38 transformAsync.transformLibraries(coreTypes, libraries);
39 logger?.call("Transformed async methods");
40 }
41
42 void performGlobalTransformations(CoreTypes coreTypes, Program program,
43 {void logger(String msg)}) {}
44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698