| 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 universe; | 5 library universe; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import '../cache_strategy.dart'; | 9 import '../cache_strategy.dart'; |
| 10 import '../common.dart'; | 10 import '../common.dart'; |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 427 |
| 428 OpenWorld _openWorld; | 428 OpenWorld _openWorld; |
| 429 | 429 |
| 430 final Backend _backend; | 430 final Backend _backend; |
| 431 final Resolution _resolution; | 431 final Resolution _resolution; |
| 432 | 432 |
| 433 ResolutionWorldBuilderImpl(Backend backend, Resolution resolution, | 433 ResolutionWorldBuilderImpl(Backend backend, Resolution resolution, |
| 434 CacheStrategy cacheStrategy, this.selectorConstraintsStrategy) | 434 CacheStrategy cacheStrategy, this.selectorConstraintsStrategy) |
| 435 : this._backend = backend, | 435 : this._backend = backend, |
| 436 this._resolution = resolution { | 436 this._resolution = resolution { |
| 437 _openWorld = | 437 _openWorld = new WorldImpl(this, backend, resolution.coreClasses, |
| 438 new WorldImpl(this, backend, resolution.coreClasses, cacheStrategy); | 438 resolution.coreTypes, cacheStrategy); |
| 439 } | 439 } |
| 440 | 440 |
| 441 Iterable<ClassElement> get processedClasses => _processedClasses.keys | 441 Iterable<ClassElement> get processedClasses => _processedClasses.keys |
| 442 .where((cls) => _processedClasses[cls].isInstantiated); | 442 .where((cls) => _processedClasses[cls].isInstantiated); |
| 443 | 443 |
| 444 OpenWorld get openWorld => _openWorld; | 444 OpenWorld get openWorld => _openWorld; |
| 445 | 445 |
| 446 /// All directly instantiated classes, that is, classes with a generative | 446 /// All directly instantiated classes, that is, classes with a generative |
| 447 /// constructor that has been called directly and not only through a | 447 /// constructor that has been called directly and not only through a |
| 448 /// super-call. | 448 /// super-call. |
| (...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 if (hasClosurization) { | 1528 if (hasClosurization) { |
| 1529 return MemberUses.NONE; | 1529 return MemberUses.NONE; |
| 1530 } | 1530 } |
| 1531 hasNormalUse = hasClosurization = true; | 1531 hasNormalUse = hasClosurization = true; |
| 1532 return _pendingUse.removeAll(MemberUses.ALL_STATIC); | 1532 return _pendingUse.removeAll(MemberUses.ALL_STATIC); |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 @override | 1535 @override |
| 1536 EnumSet<MemberUse> get _originalUse => MemberUses.ALL_STATIC; | 1536 EnumSet<MemberUse> get _originalUse => MemberUses.ALL_STATIC; |
| 1537 } | 1537 } |
| OLD | NEW |