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

Side by Side Diff: pkg/analyzer/test/src/context/context_test.dart

Issue 2656303004: Add a temporary analyzer error to work around #28515 (Closed)
Patch Set: Created 3 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.context.context_test; 5 library analyzer.test.src.context.context_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 sdkResolver, 2527 sdkResolver,
2528 resourceResolver, 2528 resourceResolver,
2529 new PackageMapUriResolver(resourceProvider, { 2529 new PackageMapUriResolver(resourceProvider, {
2530 'crypto': [resourceProvider.getFolder('/pkgs/crypto-2/lib')] 2530 'crypto': [resourceProvider.getFolder('/pkgs/crypto-2/lib')]
2531 }) 2531 })
2532 ]); 2532 ]);
2533 _analyzeAll_assertFinished(); 2533 _analyzeAll_assertFinished();
2534 _assertNoExceptions(); 2534 _assertNoExceptions();
2535 } 2535 }
2536 2536
2537 @failingTest // TODO(paulberry): Remove when dartbug.com/28515 is fixed.
Brian Wilkerson 2017/01/27 19:37:05 "Remove when" --> "Remove the annotation when"
Paul Berry 2017/01/29 15:28:57 Done.
2537 void test_resolveCompilationUnit_existingElementModel() { 2538 void test_resolveCompilationUnit_existingElementModel() {
2538 prepareAnalysisContext(new AnalysisOptionsImpl()..strongMode = true); 2539 prepareAnalysisContext(new AnalysisOptionsImpl()..strongMode = true);
2539 Source source = addSource( 2540 Source source = addSource(
2540 '/test.dart', 2541 '/test.dart',
2541 r''' 2542 r'''
2542 library test; 2543 library test;
2543 2544
2544 String topLevelVariable; 2545 String topLevelVariable;
2545 int get topLevelGetter => 0; 2546 int get topLevelGetter => 0;
2546 void set topLevelSetter(int value) {} 2547 void set topLevelSetter(int value) {}
(...skipping 2892 matching lines...) Expand 10 before | Expand all | Expand 10 after
5439 * Initialize the visitor. 5440 * Initialize the visitor.
5440 */ 5441 */
5441 _ElementGatherer(); 5442 _ElementGatherer();
5442 5443
5443 @override 5444 @override
5444 void visitElement(Element element) { 5445 void visitElement(Element element) {
5445 elements[element] = element; 5446 elements[element] = element;
5446 super.visitElement(element); 5447 super.visitElement(element);
5447 } 5448 }
5448 } 5449 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/strong_mode_test.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698