OLD | NEW |
---|---|
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 compiler.src.kernel.dart2js_target; | 5 library compiler.src.kernel.dart2js_target; |
6 | 6 |
7 import 'package:kernel/kernel.dart'; | 7 import 'package:kernel/kernel.dart'; |
8 import 'package:kernel/core_types.dart'; | 8 import 'package:kernel/core_types.dart'; |
9 import 'package:kernel/class_hierarchy.dart'; | 9 import 'package:kernel/class_hierarchy.dart'; |
10 import 'package:kernel/target/targets.dart'; | 10 import 'package:kernel/target/targets.dart'; |
11 | 11 |
12 import 'package:compiler/src/native/native.dart' show maybeEnableNative; | 12 import '../native/native.dart' show maybeEnableNative; |
Siggi Cherem (dart-lang)
2017/07/21 19:21:31
this caused problems because sdk/bin/dart2js is im
Emily Fortuna
2017/07/21 21:50:51
add a TODO about it?
Siggi Cherem (dart-lang)
2017/07/22 00:04:04
I wanted too, but I wasn't sure where :) - we use
| |
13 | 13 |
14 /// A kernel [Target] to configure the Dart Front End for dart2js. | 14 /// A kernel [Target] to configure the Dart Front End for dart2js. |
15 class Dart2jsTarget extends Target { | 15 class Dart2jsTarget extends Target { |
16 final TargetFlags flags; | 16 final TargetFlags flags; |
17 | 17 |
18 Dart2jsTarget(this.flags); | 18 Dart2jsTarget(this.flags); |
19 | 19 |
20 bool get strongMode => flags.strongMode; | 20 bool get strongMode => flags.strongMode; |
21 | 21 |
22 String get name => 'dart2js'; | 22 String get name => 'dart2js'; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 bool isLocalVariable: false, | 83 bool isLocalVariable: false, |
84 bool isDynamic: false, | 84 bool isDynamic: false, |
85 bool isSuper: false, | 85 bool isSuper: false, |
86 bool isStatic: false, | 86 bool isStatic: false, |
87 bool isConstructor: false, | 87 bool isConstructor: false, |
88 bool isTopLevel: false}) { | 88 bool isTopLevel: false}) { |
89 // TODO(sigmund): implement; | 89 // TODO(sigmund): implement; |
90 return new InvalidExpression(); | 90 return new InvalidExpression(); |
91 } | 91 } |
92 } | 92 } |
OLD | NEW |