Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1290)

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1686863002: Deprecate PrefixElement.importedLibraries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_handle.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_handle.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698