OLD | NEW |
(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.dart2js; |
| 5 |
| 6 import '../ast.dart'; |
| 7 import 'targets.dart'; |
| 8 |
| 9 /// Specializes the kernel IR for dart2js |
| 10 class Dart2jsTarget extends Target { |
| 11 final TargetFlags flags; |
| 12 |
| 13 Dart2jsTarget(this.flags); |
| 14 |
| 15 String get name => 'dart2js'; |
| 16 bool get strongMode => flags.strongMode; |
| 17 |
| 18 List<String> get extraRequiredLibraries => const <String>[ |
| 19 'dart:async', |
| 20 'dart:collection', |
| 21 'dart:mirrors', |
| 22 'dart:_native_typed_data', |
| 23 'dart:_internal', |
| 24 'dart:_js_helper', |
| 25 'dart:_interceptors', |
| 26 'dart:_foreign_helper', |
| 27 'dart:_js_mirrors', |
| 28 'dart:_js_names', |
| 29 'dart:_js_embedded_names', |
| 30 'dart:_isolate_helper', |
| 31 ]; |
| 32 |
| 33 void performModularTransformations(Program program) {} |
| 34 void performGlobalTransformations(Program program) {} |
| 35 } |
OLD | NEW |