| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 part of resolution; | 5 part of resolution; |
| 6 | 6 |
| 7 /// [ResolutionRegistry] collects all resolution information. It stores node | 7 /// [ResolutionRegistry] collects all resolution information. It stores node |
| 8 /// related information in a [TreeElements] mapping and registers calls with | 8 /// related information in a [TreeElements] mapping and registers calls with |
| 9 /// [Backend], [World] and [Enqueuer]. | 9 /// [Backend], [World] and [Enqueuer]. |
| 10 // TODO(johnniwinther): Split this into an interface and implementation class. | 10 // TODO(johnniwinther): Split this into an interface and implementation class. |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 } | 240 } |
| 241 | 241 |
| 242 void registerClassUsingVariableExpression(ClassElement element) { | 242 void registerClassUsingVariableExpression(ClassElement element) { |
| 243 backend.registerClassUsingVariableExpression(element); | 243 backend.registerClassUsingVariableExpression(element); |
| 244 } | 244 } |
| 245 | 245 |
| 246 void registerTypeVariableExpression() { | 246 void registerTypeVariableExpression() { |
| 247 backend.registerTypeVariableExpression(this); | 247 backend.registerTypeVariableExpression(this); |
| 248 } | 248 } |
| 249 | 249 |
| 250 void registerTypeLiteral(Element element) { | 250 void registerTypeLiteral(Send node, DartType type) { |
| 251 world.registerTypeLiteral(element, this); | 251 mapping.setType(node, type); |
| 252 world.registerTypeLiteral(type, this); |
| 252 } | 253 } |
| 253 | 254 |
| 254 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only | 255 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only |
| 255 // needed to lookup types in the current scope. | 256 // needed to lookup types in the current scope. |
| 256 void registerJsCall(Node node, ResolverVisitor visitor) { | 257 void registerJsCall(Node node, ResolverVisitor visitor) { |
| 257 world.registerJsCall(node, visitor); | 258 world.registerJsCall(node, visitor); |
| 258 } | 259 } |
| 259 | 260 |
| 260 void registerGetOfStaticFunction(FunctionElement element) { | 261 void registerGetOfStaticFunction(FunctionElement element) { |
| 261 world.registerGetOfStaticFunction(element); | 262 world.registerGetOfStaticFunction(element); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 void registerThrowExpression() { | 330 void registerThrowExpression() { |
| 330 backend.registerThrowExpression(this); | 331 backend.registerThrowExpression(this); |
| 331 } | 332 } |
| 332 | 333 |
| 333 void registerDependency(Element element) { | 334 void registerDependency(Element element) { |
| 334 mapping.registerDependency(element); | 335 mapping.registerDependency(element); |
| 335 } | 336 } |
| 336 | 337 |
| 337 Setlet<Element> get otherDependencies => mapping.otherDependencies; | 338 Setlet<Element> get otherDependencies => mapping.otherDependencies; |
| 338 } | 339 } |
| OLD | NEW |