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/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 expect(resynthesized.field, isNotNull, reason: '$desc field'); | 639 expect(resynthesized.field, isNotNull, reason: '$desc field'); |
640 compareFieldElements( | 640 compareFieldElements( |
641 resynthesized.field, original.field, '$desc field'); | 641 resynthesized.field, original.field, '$desc field'); |
642 } | 642 } |
643 } | 643 } |
644 } | 644 } |
645 | 645 |
646 void comparePrefixElements(PrefixElementImpl resynthesized, | 646 void comparePrefixElements(PrefixElementImpl resynthesized, |
647 PrefixElementImpl original, String desc) { | 647 PrefixElementImpl original, String desc) { |
648 compareElements(resynthesized, original, desc); | 648 compareElements(resynthesized, original, desc); |
649 // TODO(paulberry): test _importedLibraries. | |
650 } | 649 } |
651 | 650 |
652 void comparePropertyAccessorElements( | 651 void comparePropertyAccessorElements( |
653 PropertyAccessorElementImpl resynthesized, | 652 PropertyAccessorElementImpl resynthesized, |
654 PropertyAccessorElementImpl original, | 653 PropertyAccessorElementImpl original, |
655 String desc) { | 654 String desc) { |
656 // TODO(paulberry): do I need to worry about | 655 // TODO(paulberry): do I need to worry about |
657 // MultiplyInheritedPropertyAccessorElementImpl? | 656 // MultiplyInheritedPropertyAccessorElementImpl? |
658 compareExecutableElements(resynthesized, original, desc); | 657 compareExecutableElements(resynthesized, original, desc); |
659 expect(resynthesized.variable, isNotNull); | 658 expect(resynthesized.variable, isNotNull); |
(...skipping 2485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3145 fail('Unexpectedly tried to get unlinked summary for $uri'); | 3144 fail('Unexpectedly tried to get unlinked summary for $uri'); |
3146 } | 3145 } |
3147 return serializedUnit; | 3146 return serializedUnit; |
3148 } | 3147 } |
3149 | 3148 |
3150 @override | 3149 @override |
3151 bool hasLibrarySummary(String uri) { | 3150 bool hasLibrarySummary(String uri) { |
3152 return true; | 3151 return true; |
3153 } | 3152 } |
3154 } | 3153 } |
OLD | NEW |