| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_hint_code_test; | 5 library analyzer.test.generated.non_hint_code_test; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/error/codes.dart'; | 8 import 'package:analyzer/src/error/codes.dart'; |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/source_io.dart'; | 10 import 'package:analyzer/src/generated/source_io.dart'; |
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1257 int f() => 1; | 1257 int f() => 1; |
| 1258 g() { | 1258 g() { |
| 1259 var a = f(); | 1259 var a = f(); |
| 1260 }'''); | 1260 }'''); |
| 1261 await computeAnalysisResult(source); | 1261 await computeAnalysisResult(source); |
| 1262 assertNoErrors(source); | 1262 assertNoErrors(source); |
| 1263 verify([source]); | 1263 verify([source]); |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 test_withSuperMixin() async { | 1266 test_withSuperMixin() async { |
| 1267 resetWithOptions(new AnalysisOptionsImpl()..enableSuperMixins = true); | 1267 resetWith(options: new AnalysisOptionsImpl()..enableSuperMixins = true); |
| 1268 Source source = addSource(r''' | 1268 Source source = addSource(r''' |
| 1269 abstract class A { | 1269 abstract class A { |
| 1270 void test(); | 1270 void test(); |
| 1271 } | 1271 } |
| 1272 class B extends A { | 1272 class B extends A { |
| 1273 void test() { | 1273 void test() { |
| 1274 super.test; | 1274 super.test; |
| 1275 } | 1275 } |
| 1276 } | 1276 } |
| 1277 '''); | 1277 '''); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 | 1368 |
| 1369 test_import_valid_outside_lib() async { | 1369 test_import_valid_outside_lib() async { |
| 1370 addNamedSource("/myproj/pubspec.yaml", ""); | 1370 addNamedSource("/myproj/pubspec.yaml", ""); |
| 1371 addNamedSource("/myproj/web/other.dart", ""); | 1371 addNamedSource("/myproj/web/other.dart", ""); |
| 1372 Source source = | 1372 Source source = |
| 1373 addNamedSource("/myproj/lib2/test.dart", "import '../web/other.dart';"); | 1373 addNamedSource("/myproj/lib2/test.dart", "import '../web/other.dart';"); |
| 1374 await computeAnalysisResult(source); | 1374 await computeAnalysisResult(source); |
| 1375 assertNoErrors(source); | 1375 assertNoErrors(source); |
| 1376 } | 1376 } |
| 1377 } | 1377 } |
| OLD | NEW |