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

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

Issue 2486873003: Move scanner into pkg/front_end/lib/src/scanner. (Closed)
Patch Set: Created 4 years, 1 month 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) 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/source_io.dart'; 9 import 'package:analyzer/src/generated/source_io.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 void test_importDeferredLibraryWithLoadFunction() { 386 void test_importDeferredLibraryWithLoadFunction() {
387 resolveWithErrors(<String>[ 387 resolveWithErrors(<String>[
388 r''' 388 r'''
389 library lib1; 389 library lib1;
390 f() {}''', 390 f() {}''',
391 r''' 391 r'''
392 library root; 392 library root;
393 import 'lib1.dart' deferred as lib1; 393 import 'lib1.dart' deferred as lib1;
394 main() { lib1.f(); }''' 394 main() { lib1.f(); }'''
395 ], ErrorCode.EMPTY_LIST); 395 ], const <ErrorCode>[]);
396 } 396 }
397 397
398 void test_issue20904BuggyTypePromotionAtIfJoin_1() { 398 void test_issue20904BuggyTypePromotionAtIfJoin_1() {
399 // https://code.google.com/p/dart/issues/detail?id=20904 399 // https://code.google.com/p/dart/issues/detail?id=20904
400 Source source = addSource(r''' 400 Source source = addSource(r'''
401 f(var message, var dynamic_) { 401 f(var message, var dynamic_) {
402 if (message is Function) { 402 if (message is Function) {
403 message = dynamic_; 403 message = dynamic_;
404 } 404 }
405 int s = message; 405 int s = message;
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 1340
1341 void test_import_valid_outside_lib() { 1341 void test_import_valid_outside_lib() {
1342 cacheSource("/myproj/pubspec.yaml", ""); 1342 cacheSource("/myproj/pubspec.yaml", "");
1343 cacheSource("/myproj/web/other.dart", ""); 1343 cacheSource("/myproj/web/other.dart", "");
1344 Source source = 1344 Source source =
1345 addNamedSource("/myproj/lib2/test.dart", "import '../web/other.dart';"); 1345 addNamedSource("/myproj/lib2/test.dart", "import '../web/other.dart';");
1346 computeLibrarySourceErrors(source); 1346 computeLibrarySourceErrors(source);
1347 assertNoErrors(source); 1347 assertNoErrors(source);
1348 } 1348 }
1349 } 1349 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698