| OLD | NEW |
| 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 library kernel.target.flutter; | 4 library kernel.target.flutter; |
| 5 | 5 |
| 6 import '../ast.dart'; | 6 import '../ast.dart'; |
| 7 import '../class_hierarchy.dart'; | 7 import '../class_hierarchy.dart'; |
| 8 import '../core_types.dart'; | 8 import '../core_types.dart'; |
| 9 import '../transformations/continuation.dart' as cont; | 9 import '../transformations/continuation.dart' as cont; |
| 10 import '../transformations/erasure.dart'; | 10 import '../transformations/erasure.dart'; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 setup_builtin_library.transformProgram(program, libraryUri: 'dart:ui'); | 66 setup_builtin_library.transformProgram(program, libraryUri: 'dart:ui'); |
| 67 | 67 |
| 68 if (strongMode) { | 68 if (strongMode) { |
| 69 new Erasure().transform(program); | 69 new Erasure().transform(program); |
| 70 } | 70 } |
| 71 | 71 |
| 72 new SanitizeForVM().transform(program); | 72 new SanitizeForVM().transform(program); |
| 73 } | 73 } |
| 74 | 74 |
| 75 @override | 75 @override |
| 76 Expression instantiateInvocation(Member target, Expression receiver, | 76 Expression instantiateInvocation(CoreTypes coreTypes, Expression receiver, |
| 77 String name, Arguments arguments, int offset, bool isSuper) { | 77 String name, Arguments arguments, int offset, bool isSuper) { |
| 78 // TODO(ahe): This should probably return the same as VmTarget does. | 78 // TODO(ahe): This should probably return the same as VmTarget does. |
| 79 return new InvalidExpression(); | 79 return new InvalidExpression(); |
| 80 } | 80 } |
| 81 |
| 82 @override |
| 83 Expression instantiateNoSuchMethodError(CoreTypes coreTypes, |
| 84 Expression receiver, String name, Arguments arguments, int offset, |
| 85 {bool isMethod: false, |
| 86 bool isGetter: false, |
| 87 bool isSetter: false, |
| 88 bool isField: false, |
| 89 bool isLocalVariable: false, |
| 90 bool isDynamic: false, |
| 91 bool isSuper: false, |
| 92 bool isStatic: false, |
| 93 bool isConstructor: false, |
| 94 bool isTopLevel: false}) { |
| 95 // TODO(ahe): This should probably return the same as VmTarget does. |
| 96 return new InvalidExpression(); |
| 97 } |
| 81 } | 98 } |
| OLD | NEW |