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:analyzer/dart/element/type.dart'; | 5 import 'package:analyzer/dart/element/type.dart'; |
6 import 'package:analyzer/src/dart/element/element.dart'; | 6 import 'package:analyzer/src/dart/element/element.dart'; |
7 import 'package:analyzer/src/summary/format.dart'; | 7 import 'package:analyzer/src/summary/format.dart'; |
8 import 'package:analyzer/src/summary/idl.dart'; | 8 import 'package:analyzer/src/summary/idl.dart'; |
9 import 'package:analyzer/src/summary/link.dart'; | 9 import 'package:analyzer/src/summary/link.dart'; |
| 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
10 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
11 | 12 |
12 import '../../reflective_tests.dart'; | |
13 import 'summarize_ast_test.dart'; | 13 import 'summarize_ast_test.dart'; |
14 | 14 |
15 main() { | 15 main() { |
16 groupSep = ' | '; | 16 groupSep = ' | '; |
17 runReflectiveTests(LinkerUnitTest); | 17 defineReflectiveTests(LinkerUnitTest); |
18 } | 18 } |
19 | 19 |
20 @reflectiveTest | 20 @reflectiveTest |
21 class LinkerUnitTest extends SummaryLinkerTest { | 21 class LinkerUnitTest extends SummaryLinkerTest { |
22 Linker linker; | 22 Linker linker; |
23 | 23 |
24 LinkerInputs linkerInputs; | 24 LinkerInputs linkerInputs; |
25 LibraryElementInBuildUnit _testLibrary; | 25 LibraryElementInBuildUnit _testLibrary; |
26 @override | 26 @override |
27 bool get allowMissingFiles => false; | 27 bool get allowMissingFiles => false; |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 PropertyAccessorElementForLink_Variable j = library.getContainedName('j'); | 908 PropertyAccessorElementForLink_Variable j = library.getContainedName('j'); |
909 expect(j.variable.initializer, isNull); | 909 expect(j.variable.initializer, isNull); |
910 PropertyAccessorElementForLink_Variable v = library.getContainedName('v'); | 910 PropertyAccessorElementForLink_Variable v = library.getContainedName('v'); |
911 expect(v.variable.initializer, isNotNull); | 911 expect(v.variable.initializer, isNotNull); |
912 } | 912 } |
913 | 913 |
914 VariableElementForLink _getVariable(ReferenceableElementForLink element) { | 914 VariableElementForLink _getVariable(ReferenceableElementForLink element) { |
915 return (element as PropertyAccessorElementForLink_Variable).variable; | 915 return (element as PropertyAccessorElementForLink_Variable).variable; |
916 } | 916 } |
917 } | 917 } |
OLD | NEW |