| 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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 m() {} | 1237 m() {} |
| 1238 } | 1238 } |
| 1239 class B extends A { | 1239 class B extends A { |
| 1240 m(); | 1240 m(); |
| 1241 }'''); | 1241 }'''); |
| 1242 await computeAnalysisResult(source); | 1242 await computeAnalysisResult(source); |
| 1243 assertNoErrors(source); | 1243 assertNoErrors(source); |
| 1244 verify([source]); | 1244 verify([source]); |
| 1245 } | 1245 } |
| 1246 | 1246 |
| 1247 test_conflictingConstructorNameAndMember_setter() async { |
| 1248 Source source = addSource(r''' |
| 1249 class A { |
| 1250 A.x() {} |
| 1251 set x(_) {} |
| 1252 }'''); |
| 1253 await computeAnalysisResult(source); |
| 1254 assertNoErrors(source); |
| 1255 verify([source]); |
| 1256 } |
| 1257 |
| 1247 test_conflictingInstanceGetterAndSuperclassMember_instance() async { | 1258 test_conflictingInstanceGetterAndSuperclassMember_instance() async { |
| 1248 Source source = addSource(r''' | 1259 Source source = addSource(r''' |
| 1249 class A { | 1260 class A { |
| 1250 get v => 0; | 1261 get v => 0; |
| 1251 } | 1262 } |
| 1252 class B extends A { | 1263 class B extends A { |
| 1253 get v => 1; | 1264 get v => 1; |
| 1254 }'''); | 1265 }'''); |
| 1255 await computeAnalysisResult(source); | 1266 await computeAnalysisResult(source); |
| 1256 assertNoErrors(source); | 1267 assertNoErrors(source); |
| (...skipping 4981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6238 } | 6249 } |
| 6239 | 6250 |
| 6240 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { | 6251 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { |
| 6241 await _check_wrongNumberOfParametersForOperator(name, "a"); | 6252 await _check_wrongNumberOfParametersForOperator(name, "a"); |
| 6242 } | 6253 } |
| 6243 | 6254 |
| 6244 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async { | 6255 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async { |
| 6245 return analysisContext.getResolvedCompilationUnit2(source, source); | 6256 return analysisContext.getResolvedCompilationUnit2(source, source); |
| 6246 } | 6257 } |
| 6247 } | 6258 } |
| OLD | NEW |