OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 test.src.serialization.elements_test; | 5 library test.src.serialization.elements_test; |
6 | 6 |
7 import 'dart:convert'; | 7 import 'dart:convert'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/constant/value.dart'; | 10 import 'package:analyzer/dart/constant/value.dart'; |
11 import 'package:analyzer/dart/element/element.dart'; | 11 import 'package:analyzer/dart/element/element.dart'; |
12 import 'package:analyzer/dart/element/type.dart'; | 12 import 'package:analyzer/dart/element/type.dart'; |
| 13 import 'package:analyzer/error/error.dart'; |
13 import 'package:analyzer/src/dart/ast/ast.dart'; | 14 import 'package:analyzer/src/dart/ast/ast.dart'; |
14 import 'package:analyzer/src/dart/element/element.dart'; | 15 import 'package:analyzer/src/dart/element/element.dart'; |
15 import 'package:analyzer/src/dart/element/handle.dart'; | 16 import 'package:analyzer/src/dart/element/handle.dart'; |
16 import 'package:analyzer/src/dart/element/member.dart'; | 17 import 'package:analyzer/src/dart/element/member.dart'; |
17 import 'package:analyzer/src/dart/element/type.dart'; | 18 import 'package:analyzer/src/dart/element/type.dart'; |
| 19 import 'package:analyzer/src/error/codes.dart'; |
18 import 'package:analyzer/src/generated/engine.dart'; | 20 import 'package:analyzer/src/generated/engine.dart'; |
19 import 'package:analyzer/src/generated/error.dart'; | |
20 import 'package:analyzer/src/generated/resolver.dart' show Namespace; | 21 import 'package:analyzer/src/generated/resolver.dart' show Namespace; |
21 import 'package:analyzer/src/generated/sdk.dart'; | 22 import 'package:analyzer/src/generated/sdk.dart'; |
22 import 'package:analyzer/src/generated/source.dart'; | 23 import 'package:analyzer/src/generated/source.dart'; |
23 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 24 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
24 import 'package:analyzer/src/summary/idl.dart'; | 25 import 'package:analyzer/src/summary/idl.dart'; |
25 import 'package:analyzer/src/summary/resynthesize.dart'; | 26 import 'package:analyzer/src/summary/resynthesize.dart'; |
26 import 'package:analyzer/src/summary/summarize_elements.dart'; | 27 import 'package:analyzer/src/summary/summarize_elements.dart'; |
27 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 28 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
28 import 'package:unittest/unittest.dart'; | 29 import 'package:unittest/unittest.dart'; |
29 | 30 |
(...skipping 4650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4680 fail('Unexpectedly tried to get unlinked summary for $uri'); | 4681 fail('Unexpectedly tried to get unlinked summary for $uri'); |
4681 } | 4682 } |
4682 return serializedUnit; | 4683 return serializedUnit; |
4683 } | 4684 } |
4684 | 4685 |
4685 @override | 4686 @override |
4686 bool hasLibrarySummary(String uri) { | 4687 bool hasLibrarySummary(String uri) { |
4687 return true; | 4688 return true; |
4688 } | 4689 } |
4689 } | 4690 } |
OLD | NEW |