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 ClosureClassElement, SynthesizedCallMethodElementX; | 7 import 'closure.dart' show ClosureClassElement, SynthesizedCallMethodElementX; |
8 import 'common/backend_api.dart' show BackendClasses; | 8 import 'common/backend_api.dart' show BackendClasses; |
9 import 'common.dart'; | 9 import 'common.dart'; |
10 import 'constants/constant_system.dart'; | 10 import 'constants/constant_system.dart'; |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 417 |
418 final CommonElements commonElements; | 418 final CommonElements commonElements; |
419 | 419 |
420 final ResolutionWorldBuilder _resolverWorld; | 420 final ResolutionWorldBuilder _resolverWorld; |
421 | 421 |
422 bool get isClosed => true; | 422 bool get isClosed => true; |
423 | 423 |
424 ClosedWorldImpl( | 424 ClosedWorldImpl( |
425 {JavaScriptBackend backend, | 425 {JavaScriptBackend backend, |
426 this.commonElements, | 426 this.commonElements, |
427 ResolutionWorldBuilder resolverWorld, | 427 ResolutionWorldBuilder resolutionWorldBuilder, |
428 FunctionSetBuilder functionSetBuilder, | 428 FunctionSetBuilder functionSetBuilder, |
429 Iterable<TypedefElement> allTypedefs, | 429 Iterable<TypedefElement> allTypedefs, |
430 Map<ClassElement, Set<MixinApplicationElement>> mixinUses, | 430 Map<ClassElement, Set<MixinApplicationElement>> mixinUses, |
431 Map<ClassElement, Set<ClassElement>> typesImplementedBySubclasses, | 431 Map<ClassElement, Set<ClassElement>> typesImplementedBySubclasses, |
432 Map<ClassElement, ClassHierarchyNode> classHierarchyNodes, | 432 Map<ClassElement, ClassHierarchyNode> classHierarchyNodes, |
433 Map<ClassElement, ClassSet> classSets}) | 433 Map<ClassElement, ClassSet> classSets}) |
434 : this._backend = backend, | 434 : this._backend = backend, |
435 this._resolverWorld = resolverWorld, | 435 this._resolverWorld = resolutionWorldBuilder, |
436 this._allTypedefs = allTypedefs, | 436 this._allTypedefs = allTypedefs, |
437 this._mixinUses = mixinUses, | 437 this._mixinUses = mixinUses, |
438 this._typesImplementedBySubclasses = typesImplementedBySubclasses, | 438 this._typesImplementedBySubclasses = typesImplementedBySubclasses, |
439 this._classHierarchyNodes = classHierarchyNodes, | 439 this._classHierarchyNodes = classHierarchyNodes, |
440 this._classSets = classSets { | 440 this._classSets = classSets { |
441 _commonMasks = new CommonMasks(this); | 441 _commonMasks = new CommonMasks(this); |
442 _allFunctions = functionSetBuilder.close(this); | 442 _allFunctions = functionSetBuilder.close(this); |
443 } | 443 } |
444 | 444 |
445 @override | 445 @override |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 return getMightBePassedToApply(element.expression); | 1184 return getMightBePassedToApply(element.expression); |
1185 } | 1185 } |
1186 return functionsThatMightBePassedToApply.contains(element); | 1186 return functionsThatMightBePassedToApply.contains(element); |
1187 } | 1187 } |
1188 | 1188 |
1189 @override | 1189 @override |
1190 bool getCurrentlyKnownMightBePassedToApply(Element element) { | 1190 bool getCurrentlyKnownMightBePassedToApply(Element element) { |
1191 return getMightBePassedToApply(element); | 1191 return getMightBePassedToApply(element); |
1192 } | 1192 } |
1193 } | 1193 } |
OLD | NEW |