| 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.resolution; | 5 library dart2js.resolution; |
| 6 | 6 |
| 7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
| 8 | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/names.dart' show Identifiers; | 10 import '../common/names.dart' show Identifiers; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 import 'class_members.dart' show MembersCreator; | 52 import 'class_members.dart' show MembersCreator; |
| 53 import 'constructors.dart'; | 53 import 'constructors.dart'; |
| 54 import 'members.dart'; | 54 import 'members.dart'; |
| 55 import 'registry.dart'; | 55 import 'registry.dart'; |
| 56 import 'signatures.dart'; | 56 import 'signatures.dart'; |
| 57 import 'tree_elements.dart'; | 57 import 'tree_elements.dart'; |
| 58 import 'typedefs.dart'; | 58 import 'typedefs.dart'; |
| 59 | 59 |
| 60 class ResolverTask extends CompilerTask { | 60 class ResolverTask extends CompilerTask { |
| 61 final ConstantCompiler constantCompiler; | 61 final ConstantCompiler constantCompiler; |
| 62 final Compiler compiler; |
| 62 | 63 |
| 63 ResolverTask(Compiler compiler, this.constantCompiler) : super(compiler); | 64 ResolverTask(Compiler compiler, this.constantCompiler) |
| 65 : compiler = compiler, |
| 66 super(compiler.measurer); |
| 64 | 67 |
| 65 String get name => 'Resolver'; | 68 String get name => 'Resolver'; |
| 66 | 69 |
| 70 DiagnosticReporter get reporter => compiler.reporter; |
| 71 |
| 67 Resolution get resolution => compiler.resolution; | 72 Resolution get resolution => compiler.resolution; |
| 68 | 73 |
| 69 ParsingContext get parsingContext => compiler.parsingContext; | 74 ParsingContext get parsingContext => compiler.parsingContext; |
| 70 | 75 |
| 71 CoreClasses get coreClasses => compiler.coreClasses; | 76 CoreClasses get coreClasses => compiler.coreClasses; |
| 72 | 77 |
| 73 CoreTypes get coreTypes => compiler.coreTypes; | 78 CoreTypes get coreTypes => compiler.coreTypes; |
| 74 | 79 |
| 75 ResolutionImpact resolve(Element element) { | 80 ResolutionImpact resolve(Element element) { |
| 76 return measure(() { | 81 return measure(() { |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 TreeElements get treeElements { | 1104 TreeElements get treeElements { |
| 1100 assert(invariant(this, _treeElements != null, | 1105 assert(invariant(this, _treeElements != null, |
| 1101 message: "TreeElements have not been computed for $this.")); | 1106 message: "TreeElements have not been computed for $this.")); |
| 1102 return _treeElements; | 1107 return _treeElements; |
| 1103 } | 1108 } |
| 1104 | 1109 |
| 1105 void reuseElement() { | 1110 void reuseElement() { |
| 1106 _treeElements = null; | 1111 _treeElements = null; |
| 1107 } | 1112 } |
| 1108 } | 1113 } |
| OLD | NEW |