| 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 // Test of Compiler.forgetElement. | 5 // Test of Compiler.forgetElement. |
| 6 library trydart.forget_element_test; | 6 library trydart.forget_element_test; |
| 7 | 7 |
| 8 import 'package:compiler/src/elements/elements.dart' show | 8 import 'package:compiler/src/elements/elements.dart' show |
| 9 AstElement, | 9 AstElement, |
| 10 ClassElement, | 10 ClassElement, |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 393 |
| 394 // Test that a constant in a parameter initializer is discarded | 394 // Test that a constant in a parameter initializer is discarded |
| 395 // correctly (deeply nested function). | 395 // correctly (deeply nested function). |
| 396 new ForgetElementTestCase( | 396 new ForgetElementTestCase( |
| 397 'main() => (() => (([x = const Constant()]) => x)())();' | 397 'main() => (() => (([x = const Constant()]) => x)())();' |
| 398 ' $CONSTANT_CLASS', | 398 ' $CONSTANT_CLASS', |
| 399 closureCount: 2, | 399 closureCount: 2, |
| 400 constantCount: 1, | 400 constantCount: 1, |
| 401 initialValueCount: 1), | 401 initialValueCount: 1), |
| 402 | 402 |
| 403 // TODO(ahe): Add test for super sends [backend.aliasedSuperMembers]. |
| 403 ]..addAll(assertUnimplementedLocalMetadata()); | 404 ]..addAll(assertUnimplementedLocalMetadata()); |
| OLD | NEW |