| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 } | 324 } |
| 325 | 325 |
| 326 void registerCatchStatement() { | 326 void registerCatchStatement() { |
| 327 backend.resolutionCallbacks.onCatchStatement(this); | 327 backend.resolutionCallbacks.onCatchStatement(this); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void registerStackTraceInCatch() { | 330 void registerStackTraceInCatch() { |
| 331 backend.resolutionCallbacks.onStackTraceInCatch(this); | 331 backend.resolutionCallbacks.onStackTraceInCatch(this); |
| 332 } | 332 } |
| 333 | 333 |
| 334 void registerSyncForIn(Node node) { |
| 335 backend.resolutionCallbacks.onSyncForIn(this); |
| 336 } |
| 337 |
| 334 ClassElement defaultSuperclass(ClassElement element) { | 338 ClassElement defaultSuperclass(ClassElement element) { |
| 335 return backend.defaultSuperclass(element); | 339 return backend.defaultSuperclass(element); |
| 336 } | 340 } |
| 337 | 341 |
| 338 void registerMixinUse(MixinApplicationElement mixinApplication, | 342 void registerMixinUse(MixinApplicationElement mixinApplication, |
| 339 ClassElement mixin) { | 343 ClassElement mixin) { |
| 340 universe.registerMixinUse(mixinApplication, mixin); | 344 universe.registerMixinUse(mixinApplication, mixin); |
| 341 } | 345 } |
| 342 | 346 |
| 343 void registerThrowExpression() { | 347 void registerThrowExpression() { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 370 } | 374 } |
| 371 | 375 |
| 372 void registerAsyncMarker(FunctionElement element) { | 376 void registerAsyncMarker(FunctionElement element) { |
| 373 backend.registerAsyncMarker(element, world, this); | 377 backend.registerAsyncMarker(element, world, this); |
| 374 } | 378 } |
| 375 | 379 |
| 376 void registerAsyncForIn(AsyncForIn node) { | 380 void registerAsyncForIn(AsyncForIn node) { |
| 377 backend.resolutionCallbacks.onAsyncForIn(node, this); | 381 backend.resolutionCallbacks.onAsyncForIn(node, this); |
| 378 } | 382 } |
| 379 } | 383 } |
| OLD | NEW |