| 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 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/constant/value.dart'; | 8 import 'package:analyzer/dart/constant/value.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| 11 import 'package:analyzer/error/error.dart'; | 11 import 'package:analyzer/error/error.dart'; |
| 12 import 'package:analyzer/src/dart/ast/ast.dart'; | 12 import 'package:analyzer/src/dart/ast/ast.dart'; |
| 13 import 'package:analyzer/src/dart/element/element.dart'; | 13 import 'package:analyzer/src/dart/element/element.dart'; |
| 14 import 'package:analyzer/src/dart/element/handle.dart'; | 14 import 'package:analyzer/src/dart/element/handle.dart'; |
| 15 import 'package:analyzer/src/dart/element/member.dart'; | 15 import 'package:analyzer/src/dart/element/member.dart'; |
| 16 import 'package:analyzer/src/dart/element/type.dart'; | 16 import 'package:analyzer/src/dart/element/type.dart'; |
| 17 import 'package:analyzer/src/error/codes.dart'; | 17 import 'package:analyzer/src/error/codes.dart'; |
| 18 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
| 19 import 'package:analyzer/src/generated/resolver.dart' show Namespace; | 19 import 'package:analyzer/src/generated/resolver.dart' show Namespace; |
| 20 import 'package:analyzer/src/generated/sdk.dart'; | 20 import 'package:analyzer/src/generated/sdk.dart'; |
| 21 import 'package:analyzer/src/generated/source.dart'; | 21 import 'package:analyzer/src/generated/source.dart'; |
| 22 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 22 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
| 23 import 'package:analyzer/src/summary/idl.dart'; | 23 import 'package:analyzer/src/summary/idl.dart'; |
| 24 import 'package:analyzer/src/summary/resynthesize.dart'; | 24 import 'package:analyzer/src/summary/resynthesize.dart'; |
| 25 import 'package:test/test.dart'; |
| 25 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 26 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 26 import 'package:unittest/unittest.dart'; | |
| 27 | 27 |
| 28 import '../../generated/test_support.dart'; | 28 import '../../generated/test_support.dart'; |
| 29 import '../abstract_single_unit.dart'; | 29 import '../abstract_single_unit.dart'; |
| 30 import '../context/abstract_context.dart'; | 30 import '../context/abstract_context.dart'; |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * Abstract base class for resynthesizing and comparing elements. | 33 * Abstract base class for resynthesizing and comparing elements. |
| 34 */ | 34 */ |
| 35 abstract class AbstractResynthesizeTest extends AbstractSingleUnitTest { | 35 abstract class AbstractResynthesizeTest extends AbstractSingleUnitTest { |
| 36 Set<Source> otherLibrarySources = new Set<Source>(); | 36 Set<Source> otherLibrarySources = new Set<Source>(); |
| (...skipping 4658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4695 fail('Unexpectedly tried to get unlinked summary for $uri'); | 4695 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 4696 } | 4696 } |
| 4697 return serializedUnit; | 4697 return serializedUnit; |
| 4698 } | 4698 } |
| 4699 | 4699 |
| 4700 @override | 4700 @override |
| 4701 bool hasLibrarySummary(String uri) { | 4701 bool hasLibrarySummary(String uri) { |
| 4702 return true; | 4702 return true; |
| 4703 } | 4703 } |
| 4704 } | 4704 } |
| OLD | NEW |