| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.common.resolution; | 5 library dart2js.common.resolution; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../compile_time_constants.dart'; | 8 import '../compile_time_constants.dart'; |
| 9 import '../constants/expressions.dart' show ConstantExpression; | 9 import '../constants/expressions.dart' show ConstantExpression; |
| 10 import '../constants/values.dart' show ConstantValue; | 10 import '../constants/values.dart' show ConstantValue; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 return null; | 106 return null; |
| 107 } | 107 } |
| 108 | 108 |
| 109 /// Returns `true` if [element] is a default implementation of `noSuchMethod` | 109 /// Returns `true` if [element] is a default implementation of `noSuchMethod` |
| 110 /// used by the target. | 110 /// used by the target. |
| 111 bool isDefaultNoSuchMethod(MethodElement element); | 111 bool isDefaultNoSuchMethod(MethodElement element); |
| 112 | 112 |
| 113 /// Returns the default superclass for the given [element] in this target. | 113 /// Returns the default superclass for the given [element] in this target. |
| 114 ClassElement defaultSuperclass(ClassElement element); | 114 ClassElement defaultSuperclass(ClassElement element); |
| 115 | 115 |
| 116 /// Returns `true` if [element] is a native element, that is, that the | 116 /// Returns `true` if [element] is a native class, that is, that the |
| 117 /// corresponding entity already exists in the target language. | 117 /// corresponding entity already exists in the target language. |
| 118 bool isNative(Entity element) => false; | 118 bool isNativeClass(ClassEntity element) => false; |
| 119 | 119 |
| 120 /// Returns `true` if [element] is a foreign element, that is, that the | 120 /// Returns `true` if [element] is a foreign element, that is, that the |
| 121 /// backend has specialized handling for the element. | 121 /// backend has specialized handling for the element. |
| 122 bool isForeign(Element element) => false; | 122 bool isForeign(Element element) => false; |
| 123 | 123 |
| 124 /// Returns `true` if this target supports async/await. | 124 /// Returns `true` if this target supports async/await. |
| 125 bool get supportsAsyncAwait => true; | 125 bool get supportsAsyncAwait => true; |
| 126 } | 126 } |
| 127 | 127 |
| 128 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`. | 128 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 if (cls.isPatch) { | 258 if (cls.isPatch) { |
| 259 patchParser.parsePatchClassNode(cls); | 259 patchParser.parsePatchClassNode(cls); |
| 260 } | 260 } |
| 261 }); | 261 }); |
| 262 } | 262 } |
| 263 | 263 |
| 264 @override | 264 @override |
| 265 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( | 265 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( |
| 266 canUseNative: backend.canLibraryUseNative(element.library)); | 266 canUseNative: backend.canLibraryUseNative(element.library)); |
| 267 } | 267 } |
| OLD | NEW |