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

Side by Side Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1673933002: remove unused locals/members/test functions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rm newlines 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
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 analyzer.test.src.task.dart_test; 5 library analyzer.test.src.task.dart_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/visitor.dart'; 8 import 'package:analyzer/dart/ast/visitor.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';
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 '/libA.dart': ''' 489 '/libA.dart': '''
490 @a library libA; 490 @a library libA;
491 @b import 'libB.dart'; 491 @b import 'libB.dart';
492 @c export 'libC.dart'; 492 @c export 'libC.dart';
493 @d part 'part.dart';''', 493 @d part 'part.dart';''',
494 '/libB.dart': 'library libB;', 494 '/libB.dart': 'library libB;',
495 '/libC.dart': 'library libC;', 495 '/libC.dart': 'library libC;',
496 '/part.dart': 'part of libA;' 496 '/part.dart': 'part of libA;'
497 }); 497 });
498 Source sourceA = sources[0]; 498 Source sourceA = sources[0];
499 Source sourcePart = sources[3];
500 // perform task 499 // perform task
501 computeResult(sourceA, LIBRARY_ELEMENT2, 500 computeResult(sourceA, LIBRARY_ELEMENT2,
502 matcher: isBuildDirectiveElementsTask); 501 matcher: isBuildDirectiveElementsTask);
503 // Get outputs 502 // Get outputs
504 LibraryElement libraryA = 503 LibraryElement libraryA =
505 context.getCacheEntry(sourceA).getValue(LIBRARY_ELEMENT2); 504 context.getCacheEntry(sourceA).getValue(LIBRARY_ELEMENT2);
506 // Validate metadata 505 // Validate metadata
507 checkMetadata(libraryA, libraryA.definingCompilationUnit); 506 checkMetadata(libraryA, libraryA.definingCompilationUnit);
508 checkMetadata(libraryA.imports[0], libraryA.definingCompilationUnit); 507 checkMetadata(libraryA.imports[0], libraryA.definingCompilationUnit);
509 checkMetadata(libraryA.exports[0], libraryA.definingCompilationUnit); 508 checkMetadata(libraryA.exports[0], libraryA.definingCompilationUnit);
(...skipping 4429 matching lines...) Expand 10 before | Expand all | Expand 10 after
4939 /** 4938 /**
4940 * Fill [errorListener] with [result] errors in the current [task]. 4939 * Fill [errorListener] with [result] errors in the current [task].
4941 */ 4940 */
4942 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { 4941 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) {
4943 List<AnalysisError> errors = task.outputs[result]; 4942 List<AnalysisError> errors = task.outputs[result];
4944 expect(errors, isNotNull, reason: result.name); 4943 expect(errors, isNotNull, reason: result.name);
4945 errorListener = new GatheringErrorListener(); 4944 errorListener = new GatheringErrorListener();
4946 errorListener.addAll(errors); 4945 errorListener.addAll(errors);
4947 } 4946 }
4948 } 4947 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698