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 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 } | 2188 } |
2189 class B { | 2189 class B { |
2190 var v; | 2190 var v; |
2191 B() : v = new A.named(); | 2191 B() : v = new A.named(); |
2192 }'''); | 2192 }'''); |
2193 await computeAnalysisResult(source); | 2193 await computeAnalysisResult(source); |
2194 assertNoErrors(source); | 2194 assertNoErrors(source); |
2195 verify([source]); | 2195 verify([source]); |
2196 } | 2196 } |
2197 | 2197 |
2198 test_implicitThisReferenceInInitializer_importPrefix() async { | |
2199 Source source = addSource(r''' | |
2200 import 'dart:async' as abstract; | |
2201 class A { | |
2202 var v = new abstract.Completer(); | |
2203 }'''); | |
2204 await computeAnalysisResult(source); | |
2205 assertNoErrors(source); | |
2206 verify([source]); | |
2207 } | |
2208 | |
2209 test_implicitThisReferenceInInitializer_prefixedIdentifier() async { | 2198 test_implicitThisReferenceInInitializer_prefixedIdentifier() async { |
2210 Source source = addSource(r''' | 2199 Source source = addSource(r''' |
2211 class A { | 2200 class A { |
2212 var f; | 2201 var f; |
2213 } | 2202 } |
2214 class B { | 2203 class B { |
2215 var v; | 2204 var v; |
2216 B(A a) : v = a.f; | 2205 B(A a) : v = a.f; |
2217 }'''); | 2206 }'''); |
2218 await computeAnalysisResult(source); | 2207 await computeAnalysisResult(source); |
(...skipping 4039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6258 await computeAnalysisResult(source); | 6247 await computeAnalysisResult(source); |
6259 assertNoErrors(source); | 6248 assertNoErrors(source); |
6260 verify([source]); | 6249 verify([source]); |
6261 reset(); | 6250 reset(); |
6262 } | 6251 } |
6263 | 6252 |
6264 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { | 6253 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { |
6265 await _check_wrongNumberOfParametersForOperator(name, "a"); | 6254 await _check_wrongNumberOfParametersForOperator(name, "a"); |
6266 } | 6255 } |
6267 } | 6256 } |
OLD | NEW |