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

Side by Side Diff: pkg/analyzer/test/generated/non_error_resolver_test.dart

Issue 2654733003: Make Stream abstract as it is in the actual SDK. (Closed)
Patch Set: Created 3 years, 11 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.generated.non_error_resolver_test; 5 library analyzer.test.generated.non_error_resolver_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart';
(...skipping 3357 matching lines...) Expand 10 before | Expand all | Expand 10 after
3368 }'''); 3368 }''');
3369 await computeAnalysisResult(source); 3369 await computeAnalysisResult(source);
3370 assertNoErrors(source); 3370 assertNoErrors(source);
3371 verify([source]); 3371 verify([source]);
3372 } 3372 }
3373 3373
3374 test_issue_24191() async { 3374 test_issue_24191() async {
3375 Source source = addSource(''' 3375 Source source = addSource('''
3376 import 'dart:async'; 3376 import 'dart:async';
3377 3377
3378 class S extends Stream {} 3378 abstract class S extends Stream {}
3379 f(S s) async { 3379 f(S s) async {
3380 await for (var v in s) { 3380 await for (var v in s) {
3381 print(v); 3381 print(v);
3382 } 3382 }
3383 } 3383 }
3384 '''); 3384 ''');
3385 await computeAnalysisResult(source); 3385 await computeAnalysisResult(source);
3386 assertNoErrors(source); 3386 assertNoErrors(source);
3387 verify([source]); 3387 verify([source]);
3388 } 3388 }
(...skipping 2873 matching lines...) Expand 10 before | Expand all | Expand 10 after
6262 } 6262 }
6263 6263
6264 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { 6264 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async {
6265 await _check_wrongNumberOfParametersForOperator(name, "a"); 6265 await _check_wrongNumberOfParametersForOperator(name, "a");
6266 } 6266 }
6267 6267
6268 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async { 6268 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async {
6269 return analysisContext.getResolvedCompilationUnit2(source, source); 6269 return analysisContext.getResolvedCompilationUnit2(source, source);
6270 } 6270 }
6271 } 6271 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/non_error_resolver_driver_test.dart ('k') | pkg/analyzer/test/src/context/mock_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698