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 | 7 import 'closure.dart' show |
8 SynthesizedCallMethodElementX; | 8 SynthesizedCallMethodElementX; |
9 import 'dart2jslib.dart' show | 9 import 'common/backend_api.dart' show |
| 10 Backend; |
| 11 import 'common/registry.dart' show |
| 12 Registry; |
| 13 import 'compiler.dart' show |
10 invariant, | 14 invariant, |
11 Backend, | 15 Backend, |
12 Compiler, | 16 Compiler, |
13 Registry; | 17 Registry; |
14 import 'dart_types.dart'; | 18 import 'dart_types.dart'; |
| 19 import 'diagnostics/invariant.dart' show |
| 20 invariant; |
15 import 'elements/elements.dart' show | 21 import 'elements/elements.dart' show |
16 ClassElement, | 22 ClassElement, |
17 Element, | 23 Element, |
18 FunctionElement, | 24 FunctionElement, |
19 MixinApplicationElement, | 25 MixinApplicationElement, |
20 TypedefElement, | 26 TypedefElement, |
21 VariableElement; | 27 VariableElement; |
22 import 'ordered_typeset.dart'; | 28 import 'ordered_typeset.dart'; |
23 import 'types/types.dart' as ti; | 29 import 'types/types.dart' as ti; |
24 import 'universe/universe.dart' show | 30 import 'universe/universe.dart' show |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 // function expressions's element. | 583 // function expressions's element. |
578 // TODO(herhut): Generate classes for function expressions earlier. | 584 // TODO(herhut): Generate classes for function expressions earlier. |
579 if (element is SynthesizedCallMethodElementX) { | 585 if (element is SynthesizedCallMethodElementX) { |
580 return getMightBePassedToApply(element.expression); | 586 return getMightBePassedToApply(element.expression); |
581 } | 587 } |
582 return functionsThatMightBePassedToApply.contains(element); | 588 return functionsThatMightBePassedToApply.contains(element); |
583 } | 589 } |
584 | 590 |
585 bool get hasClosedWorldAssumption => !compiler.hasIncrementalSupport; | 591 bool get hasClosedWorldAssumption => !compiler.hasIncrementalSupport; |
586 } | 592 } |
OLD | NEW |