| 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 '../dart_types.dart'; | 11 import '../elements/resolution_types.dart'; |
| 12 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; |
| 13 import '../js_backend/backend.dart' show JavaScriptBackend; | 13 import '../js_backend/backend.dart' show JavaScriptBackend; |
| 14 import '../kernel/kernel.dart'; | 14 import '../kernel/kernel.dart'; |
| 15 import '../kernel/kernel_debug.dart'; | 15 import '../kernel/kernel_debug.dart'; |
| 16 import '../kernel/kernel_visitor.dart'; | 16 import '../kernel/kernel_visitor.dart'; |
| 17 import '../resolution/registry.dart' show ResolutionWorldImpactBuilder; | 17 import '../resolution/registry.dart' show ResolutionWorldImpactBuilder; |
| 18 import '../universe/call_structure.dart'; | 18 import '../universe/call_structure.dart'; |
| 19 import '../universe/feature.dart'; | 19 import '../universe/feature.dart'; |
| 20 import '../universe/selector.dart'; | 20 import '../universe/selector.dart'; |
| 21 import '../universe/use.dart'; | 21 import '../universe/use.dart'; |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 Element target = astAdapter.getElement(node.target).declaration; | 567 Element target = astAdapter.getElement(node.target).declaration; |
| 568 impactBuilder.registerStaticUse(new StaticUse.superConstructorInvoke( | 568 impactBuilder.registerStaticUse(new StaticUse.superConstructorInvoke( |
| 569 target, astAdapter.getCallStructure(node.arguments))); | 569 target, astAdapter.getCallStructure(node.arguments))); |
| 570 } | 570 } |
| 571 | 571 |
| 572 // TODO(johnniwinther): Make this throw and visit child nodes explicitly | 572 // TODO(johnniwinther): Make this throw and visit child nodes explicitly |
| 573 // instead to ensure that we don't visit unwanted parts of the ir. | 573 // instead to ensure that we don't visit unwanted parts of the ir. |
| 574 @override | 574 @override |
| 575 void defaultNode(ir.Node node) => node.visitChildren(this); | 575 void defaultNode(ir.Node node) => node.visitChildren(this); |
| 576 } | 576 } |
| OLD | NEW |