| 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 library dart2js.resolution.registry; | 5 library dart2js.resolution.registry; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/backend_api.dart' show | 8 import '../common/backend_api.dart' show |
| 9 Backend, | 9 Backend, |
| 10 ForeignResolver; | 10 ForeignResolver; |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 380 } |
| 381 | 381 |
| 382 void registerInstantiation(InterfaceType type) { | 382 void registerInstantiation(InterfaceType type) { |
| 383 worldImpact.registerTypeUse(new TypeUse.instantiation(type)); | 383 worldImpact.registerTypeUse(new TypeUse.instantiation(type)); |
| 384 } | 384 } |
| 385 | 385 |
| 386 void registerSendStructure(Send node, SendStructure sendStructure) { | 386 void registerSendStructure(Send node, SendStructure sendStructure) { |
| 387 mapping.setSendStructure(node, sendStructure); | 387 mapping.setSendStructure(node, sendStructure); |
| 388 } | 388 } |
| 389 | 389 |
| 390 void registerNewStructure(NewExpression node, NewStructure newStructure) { |
| 391 mapping.setNewStructure(node, newStructure); |
| 392 } |
| 393 |
| 390 // TODO(johnniwinther): Remove this when [SendStructure]s are part of the | 394 // TODO(johnniwinther): Remove this when [SendStructure]s are part of the |
| 391 // [ResolutionResult]. | 395 // [ResolutionResult]. |
| 392 SendStructure getSendStructure(Send node) { | 396 SendStructure getSendStructure(Send node) { |
| 393 return mapping.getSendStructure(node); | 397 return mapping.getSendStructure(node); |
| 394 } | 398 } |
| 395 | 399 |
| 396 void registerTryStatement() { | 400 void registerTryStatement() { |
| 397 mapping.containsTryStatement = true; | 401 mapping.containsTryStatement = true; |
| 398 } | 402 } |
| 399 } | 403 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 412 @override | 416 @override |
| 413 void registerInstantiatedType(InterfaceType type) { | 417 void registerInstantiatedType(InterfaceType type) { |
| 414 registry.registerInstantiation(type); | 418 registry.registerInstantiation(type); |
| 415 } | 419 } |
| 416 | 420 |
| 417 @override | 421 @override |
| 418 DartType resolveTypeFromString(Node node, String typeName) { | 422 DartType resolveTypeFromString(Node node, String typeName) { |
| 419 return visitor.resolveTypeFromString(node, typeName); | 423 return visitor.resolveTypeFromString(node, typeName); |
| 420 } | 424 } |
| 421 } | 425 } |
| OLD | NEW |