| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |