| 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.world; | 5 library dart2js.world; |
| 6 | 6 |
| 7 import 'closure.dart' show SynthesizedCallMethodElementX; | 7 import 'closure.dart' show SynthesizedCallMethodElementX; |
| 8 import 'common/backend_api.dart' show Backend; |
| 8 import 'common.dart'; | 9 import 'common.dart'; |
| 9 import 'common/backend_api.dart' show Backend; | |
| 10 import 'compiler.dart' show Compiler; | 10 import 'compiler.dart' show Compiler; |
| 11 import 'core_types.dart' show CoreClasses; | 11 import 'core_types.dart' show CoreClasses; |
| 12 import 'dart_types.dart'; | 12 import 'dart_types.dart'; |
| 13 import 'elements/elements.dart' | 13 import 'elements/elements.dart' |
| 14 show | 14 show |
| 15 ClassElement, | 15 ClassElement, |
| 16 Element, | 16 Element, |
| 17 FunctionElement, | 17 FunctionElement, |
| 18 MixinApplicationElement, | 18 MixinApplicationElement, |
| 19 TypedefElement, | 19 TypedefElement, |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 // function expressions's element. | 826 // function expressions's element. |
| 827 // TODO(herhut): Generate classes for function expressions earlier. | 827 // TODO(herhut): Generate classes for function expressions earlier. |
| 828 if (element is SynthesizedCallMethodElementX) { | 828 if (element is SynthesizedCallMethodElementX) { |
| 829 return getMightBePassedToApply(element.expression); | 829 return getMightBePassedToApply(element.expression); |
| 830 } | 830 } |
| 831 return functionsThatMightBePassedToApply.contains(element); | 831 return functionsThatMightBePassedToApply.contains(element); |
| 832 } | 832 } |
| 833 | 833 |
| 834 bool get hasClosedWorldAssumption => !compiler.options.hasIncrementalSupport; | 834 bool get hasClosedWorldAssumption => !compiler.options.hasIncrementalSupport; |
| 835 } | 835 } |
| OLD | NEW |