| 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.backend_api; | 5 library dart2js.backend_api; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/codegen.dart' show CodegenImpact; | 10 import '../common/codegen.dart' show CodegenImpact; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 318 |
| 319 // Does this element belong in the output | 319 // Does this element belong in the output |
| 320 bool shouldOutput(Element element) => true; | 320 bool shouldOutput(Element element) => true; |
| 321 | 321 |
| 322 FunctionElement helperForBadMain() => null; | 322 FunctionElement helperForBadMain() => null; |
| 323 | 323 |
| 324 FunctionElement helperForMissingMain() => null; | 324 FunctionElement helperForMissingMain() => null; |
| 325 | 325 |
| 326 FunctionElement helperForMainArity() => null; | 326 FunctionElement helperForMainArity() => null; |
| 327 | 327 |
| 328 void forgetElement(Element element) {} | |
| 329 | |
| 330 /// Computes the [WorldImpact] of calling [mainMethod] as the entry point. | 328 /// Computes the [WorldImpact] of calling [mainMethod] as the entry point. |
| 331 WorldImpact computeMainImpact(MethodElement mainMethod, | 329 WorldImpact computeMainImpact(MethodElement mainMethod, |
| 332 {bool forResolution}) => | 330 {bool forResolution}) => |
| 333 const WorldImpact(); | 331 const WorldImpact(); |
| 334 | 332 |
| 335 /// Returns the location of the patch-file associated with [libraryName] | 333 /// Returns the location of the patch-file associated with [libraryName] |
| 336 /// resolved from [plaformConfigUri]. | 334 /// resolved from [plaformConfigUri]. |
| 337 /// | 335 /// |
| 338 /// Returns null if there is none. | 336 /// Returns null if there is none. |
| 339 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri); | 337 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 /// Returns `true` if [cls] is an intercepted class. | 508 /// Returns `true` if [cls] is an intercepted class. |
| 511 // TODO(johnniwinther): Rename this to `isInterceptedClass`. | 509 // TODO(johnniwinther): Rename this to `isInterceptedClass`. |
| 512 bool isInterceptorClass(ClassEntity cls); | 510 bool isInterceptorClass(ClassEntity cls); |
| 513 | 511 |
| 514 /// Returns `true` if [cls] is a native class. | 512 /// Returns `true` if [cls] is a native class. |
| 515 bool isNativeClass(ClassEntity element); | 513 bool isNativeClass(ClassEntity element); |
| 516 | 514 |
| 517 /// Returns `true` if [element] is a native member of a native class. | 515 /// Returns `true` if [element] is a native member of a native class. |
| 518 bool isNativeMember(MemberEntity element); | 516 bool isNativeMember(MemberEntity element); |
| 519 } | 517 } |
| OLD | NEW |