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

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

Issue 1679683005: Delete a TODO task that has been taken care of. (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 | « no previous file | 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 .singleWhere((PropertyAccessorElement e) => e.name == name), 232 .singleWhere((PropertyAccessorElement e) => e.name == name),
233 'getter $name'); 233 'getter $name');
234 } else { 234 } else {
235 comparePropertyAccessorElements( 235 comparePropertyAccessorElements(
236 resynthesized.accessors[i], 236 resynthesized.accessors[i],
237 original.accessors 237 original.accessors
238 .singleWhere((PropertyAccessorElement e) => e.name == name), 238 .singleWhere((PropertyAccessorElement e) => e.name == name),
239 'setter $name'); 239 'setter $name');
240 } 240 }
241 } 241 }
242 // TODO(paulberry): test metadata and offsetToElementMap. 242 // Note: no need to test CompilationUnitElementImpl._offsetToElementMap
243 // since it is built on demand when needed (see
244 // CompilationUnitElementImpl.getElementAt])
243 } 245 }
244 246
245 void compareConstAstLists( 247 void compareConstAstLists(
246 List<Object> rItems, List<Object> oItems, String desc) { 248 List<Object> rItems, List<Object> oItems, String desc) {
247 if (rItems == null && oItems == null) { 249 if (rItems == null && oItems == null) {
248 return; 250 return;
249 } 251 }
250 expect(rItems != null && oItems != null, isTrue); 252 expect(rItems != null && oItems != null, isTrue);
251 expect(rItems, hasLength(oItems.length)); 253 expect(rItems, hasLength(oItems.length));
252 for (int i = 0; i < oItems.length; i++) { 254 for (int i = 0; i < oItems.length; i++) {
(...skipping 2742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2995 fail('Unexpectedly tried to get unlinked summary for $uri'); 2997 fail('Unexpectedly tried to get unlinked summary for $uri');
2996 } 2998 }
2997 return serializedUnit; 2999 return serializedUnit;
2998 } 3000 }
2999 3001
3000 @override 3002 @override
3001 bool hasLibrarySummary(String uri) { 3003 bool hasLibrarySummary(String uri) {
3002 return true; 3004 return true;
3003 } 3005 }
3004 } 3006 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698