| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'package:kernel/ast.dart' as ir; | 5 import 'package:kernel/ast.dart' as ir; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart'; | 8 import '../common/names.dart'; |
| 9 import '../compiler.dart'; | 9 import '../compiler.dart'; |
| 10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| 11 import '../common_elements.dart'; | 11 import '../common_elements.dart'; |
| 12 import '../elements/types.dart'; | 12 import '../elements/types.dart'; |
| 13 import '../elements/elements.dart' show AstElement, ResolvedAst; | 13 import '../elements/elements.dart' show AstElement, ResolvedAst; |
| 14 import '../elements/entities.dart'; | 14 import '../elements/entities.dart'; |
| 15 import '../js_backend/backend.dart' show JavaScriptBackend; | 15 import '../js_backend/backend.dart' show JavaScriptBackend; |
| 16 import '../kernel/element_adapter.dart'; | 16 import '../kernel/element_adapter.dart'; |
| 17 import '../kernel/kernel.dart'; | 17 import '../kernel/kernel.dart'; |
| 18 import '../kernel/kernel_debug.dart'; | |
| 19 import '../resolution/registry.dart' show ResolutionWorldImpactBuilder; | 18 import '../resolution/registry.dart' show ResolutionWorldImpactBuilder; |
| 20 import '../universe/call_structure.dart'; | 19 import '../universe/call_structure.dart'; |
| 21 import '../universe/feature.dart'; | 20 import '../universe/feature.dart'; |
| 22 import '../universe/selector.dart'; | 21 import '../universe/selector.dart'; |
| 23 import '../universe/use.dart'; | 22 import '../universe/use.dart'; |
| 24 | 23 |
| 25 import 'kernel_ast_adapter.dart'; | 24 import 'kernel_ast_adapter.dart'; |
| 26 import '../common/resolution.dart'; | 25 import '../common/resolution.dart'; |
| 27 | 26 |
| 28 /// Computes the [ResolutionImpact] for [resolvedAst] through kernel. | 27 /// Computes the [ResolutionImpact] for [resolvedAst] through kernel. |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 ConstructorEntity target = elementAdapter.getConstructor(node.target); | 573 ConstructorEntity target = elementAdapter.getConstructor(node.target); |
| 575 impactBuilder.registerStaticUse(new StaticUse.superConstructorInvoke( | 574 impactBuilder.registerStaticUse(new StaticUse.superConstructorInvoke( |
| 576 target, elementAdapter.getCallStructure(node.arguments))); | 575 target, elementAdapter.getCallStructure(node.arguments))); |
| 577 } | 576 } |
| 578 | 577 |
| 579 // TODO(johnniwinther): Make this throw and visit child nodes explicitly | 578 // TODO(johnniwinther): Make this throw and visit child nodes explicitly |
| 580 // instead to ensure that we don't visit unwanted parts of the ir. | 579 // instead to ensure that we don't visit unwanted parts of the ir. |
| 581 @override | 580 @override |
| 582 void defaultNode(ir.Node node) => node.visitChildren(this); | 581 void defaultNode(ir.Node node) => node.visitChildren(this); |
| 583 } | 582 } |
| OLD | NEW |