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

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

Issue 1026093002: Fix hints in the analyzer package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 months 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 | Annotate | Revision Log
OLDNEW
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.engine_test; 8 library engine.engine_test;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 </html>'''); 649 </html>''');
650 LineInfo info = _context.computeLineInfo(source); 650 LineInfo info = _context.computeLineInfo(source);
651 expect(info, isNotNull); 651 expect(info, isNotNull);
652 } 652 }
653 653
654 void test_computeResolvableCompilationUnit_dart_exception() { 654 void test_computeResolvableCompilationUnit_dart_exception() {
655 TestSource source = _addSourceWithException("/test.dart"); 655 TestSource source = _addSourceWithException("/test.dart");
656 try { 656 try {
657 _context.computeResolvableCompilationUnit(source); 657 _context.computeResolvableCompilationUnit(source);
658 fail("Expected AnalysisException"); 658 fail("Expected AnalysisException");
659 } on AnalysisException catch (exception) { 659 } on AnalysisException {
660 // Expected 660 // Expected
661 } 661 }
662 } 662 }
663 663
664 void test_computeResolvableCompilationUnit_html_exception() { 664 void test_computeResolvableCompilationUnit_html_exception() {
665 Source source = _addSource("/lib.html", "<html></html>"); 665 Source source = _addSource("/lib.html", "<html></html>");
666 try { 666 try {
667 _context.computeResolvableCompilationUnit(source); 667 _context.computeResolvableCompilationUnit(source);
668 fail("Expected AnalysisException"); 668 fail("Expected AnalysisException");
669 } on AnalysisException catch (exception) { 669 } on AnalysisException {
670 // Expected 670 // Expected
671 } 671 }
672 } 672 }
673 673
674 void test_computeResolvableCompilationUnit_valid() { 674 void test_computeResolvableCompilationUnit_valid() {
675 Source source = _addSource("/lib.dart", "library lib;"); 675 Source source = _addSource("/lib.dart", "library lib;");
676 CompilationUnit parsedUnit = _context.parseCompilationUnit(source); 676 CompilationUnit parsedUnit = _context.parseCompilationUnit(source);
677 expect(parsedUnit, isNotNull); 677 expect(parsedUnit, isNotNull);
678 CompilationUnit resolvedUnit = 678 CompilationUnit resolvedUnit =
679 _context.computeResolvableCompilationUnit(source); 679 _context.computeResolvableCompilationUnit(source);
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 List<AnalysisError> errors = _context.getErrors(source).errors; 1357 List<AnalysisError> errors = _context.getErrors(source).errors;
1358 expect(errors, isNotNull); 1358 expect(errors, isNotNull);
1359 expect(errors.length > 0, isTrue); 1359 expect(errors.length > 0, isTrue);
1360 } 1360 }
1361 1361
1362 void test_parseCompilationUnit_exception() { 1362 void test_parseCompilationUnit_exception() {
1363 Source source = _addSourceWithException("/test.dart"); 1363 Source source = _addSourceWithException("/test.dart");
1364 try { 1364 try {
1365 _context.parseCompilationUnit(source); 1365 _context.parseCompilationUnit(source);
1366 fail("Expected AnalysisException"); 1366 fail("Expected AnalysisException");
1367 } on AnalysisException catch (exception) { 1367 } on AnalysisException {
1368 // Expected 1368 // Expected
1369 } 1369 }
1370 } 1370 }
1371 1371
1372 void test_parseCompilationUnit_html() { 1372 void test_parseCompilationUnit_html() {
1373 Source source = _addSource("/test.html", "<html></html>"); 1373 Source source = _addSource("/test.html", "<html></html>");
1374 expect(_context.parseCompilationUnit(source), isNull); 1374 expect(_context.parseCompilationUnit(source), isNull);
1375 } 1375 }
1376 1376
1377 void test_parseCompilationUnit_noErrors() { 1377 void test_parseCompilationUnit_noErrors() {
1378 Source source = _addSource("/lib.dart", "library lib;"); 1378 Source source = _addSource("/lib.dart", "library lib;");
1379 CompilationUnit compilationUnit = _context.parseCompilationUnit(source); 1379 CompilationUnit compilationUnit = _context.parseCompilationUnit(source);
1380 expect(compilationUnit, isNotNull); 1380 expect(compilationUnit, isNotNull);
1381 expect(_context.getErrors(source).errors, hasLength(0)); 1381 expect(_context.getErrors(source).errors, hasLength(0));
1382 } 1382 }
1383 1383
1384 void test_parseCompilationUnit_nonExistentSource() { 1384 void test_parseCompilationUnit_nonExistentSource() {
1385 Source source = 1385 Source source =
1386 new FileBasedSource.con1(FileUtilities2.createFile("/test.dart")); 1386 new FileBasedSource.con1(FileUtilities2.createFile("/test.dart"));
1387 try { 1387 try {
1388 _context.parseCompilationUnit(source); 1388 _context.parseCompilationUnit(source);
1389 fail("Expected AnalysisException because file does not exist"); 1389 fail("Expected AnalysisException because file does not exist");
1390 } on AnalysisException catch (exception) { 1390 } on AnalysisException {
1391 // Expected result 1391 // Expected result
1392 } 1392 }
1393 } 1393 }
1394 1394
1395 void test_parseHtmlUnit_noErrors() { 1395 void test_parseHtmlUnit_noErrors() {
1396 Source source = _addSource("/lib.html", "<html></html>"); 1396 Source source = _addSource("/lib.html", "<html></html>");
1397 ht.HtmlUnit unit = _context.parseHtmlUnit(source); 1397 ht.HtmlUnit unit = _context.parseHtmlUnit(source);
1398 expect(unit, isNotNull); 1398 expect(unit, isNotNull);
1399 } 1399 }
1400 1400
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 expect(resultExportDirective.source, same(exportSource)); 2482 expect(resultExportDirective.source, same(exportSource));
2483 PartDirective resultPartDirective = directives[2] as PartDirective; 2483 PartDirective resultPartDirective = directives[2] as PartDirective;
2484 expect(resultPartDirective.uriContent, partUri); 2484 expect(resultPartDirective.uriContent, partUri);
2485 expect(resultPartDirective.source, same(partSource)); 2485 expect(resultPartDirective.source, same(partSource));
2486 } 2486 }
2487 2487
2488 void test_getState_invalid_resolutionErrors() { 2488 void test_getState_invalid_resolutionErrors() {
2489 DartEntry entry = new DartEntry(); 2489 DartEntry entry = new DartEntry();
2490 try { 2490 try {
2491 entry.getState(DartEntry.RESOLUTION_ERRORS); 2491 entry.getState(DartEntry.RESOLUTION_ERRORS);
2492 fail("Expected IllegalArgumentException for RESOLUTION_ERRORS"); 2492 fail("Expected ArgumentError for RESOLUTION_ERRORS");
2493 } on ArgumentError catch (exception) { 2493 } on ArgumentError {
2494 // Expected 2494 // Expected
2495 } 2495 }
2496 } 2496 }
2497 2497
2498 void test_getState_invalid_verificationErrors() { 2498 void test_getState_invalid_verificationErrors() {
2499 DartEntry entry = new DartEntry(); 2499 DartEntry entry = new DartEntry();
2500 try { 2500 try {
2501 entry.getState(DartEntry.VERIFICATION_ERRORS); 2501 entry.getState(DartEntry.VERIFICATION_ERRORS);
2502 fail("Expected IllegalArgumentException for VERIFICATION_ERRORS"); 2502 fail("Expected ArgumentError for VERIFICATION_ERRORS");
2503 } on ArgumentError catch (exception) { 2503 } on ArgumentError {
2504 // Expected 2504 // Expected
2505 } 2505 }
2506 } 2506 }
2507 2507
2508 void test_getStateInLibrary_invalid_element() { 2508 void test_getStateInLibrary_invalid_element() {
2509 DartEntry entry = new DartEntry(); 2509 DartEntry entry = new DartEntry();
2510 try { 2510 try {
2511 entry.getStateInLibrary(DartEntry.ELEMENT, new TestSource()); 2511 entry.getStateInLibrary(DartEntry.ELEMENT, new TestSource());
2512 fail("Expected IllegalArgumentException for ELEMENT"); 2512 fail("Expected ArgumentError for ELEMENT");
2513 } on ArgumentError catch (exception) { 2513 } on ArgumentError {
2514 // Expected 2514 // Expected
2515 } 2515 }
2516 } 2516 }
2517 2517
2518 void test_getValue_containingLibraries() { 2518 void test_getValue_containingLibraries() {
2519 Source testSource = new TestSource(); 2519 Source testSource = new TestSource();
2520 DartEntry entry = new DartEntry(); 2520 DartEntry entry = new DartEntry();
2521 List<Source> value = entry.containingLibraries; 2521 List<Source> value = entry.containingLibraries;
2522 expect(value, hasLength(0)); 2522 expect(value, hasLength(0));
2523 entry.addContainingLibrary(testSource); 2523 entry.addContainingLibrary(testSource);
2524 value = entry.containingLibraries; 2524 value = entry.containingLibraries;
2525 expect(value, hasLength(1)); 2525 expect(value, hasLength(1));
2526 expect(value[0], testSource); 2526 expect(value[0], testSource);
2527 entry.removeContainingLibrary(testSource); 2527 entry.removeContainingLibrary(testSource);
2528 value = entry.containingLibraries; 2528 value = entry.containingLibraries;
2529 expect(value, hasLength(0)); 2529 expect(value, hasLength(0));
2530 } 2530 }
2531 2531
2532 void test_getValue_invalid_resolutionErrors() { 2532 void test_getValue_invalid_resolutionErrors() {
2533 DartEntry entry = new DartEntry(); 2533 DartEntry entry = new DartEntry();
2534 try { 2534 try {
2535 entry.getValue(DartEntry.RESOLUTION_ERRORS); 2535 entry.getValue(DartEntry.RESOLUTION_ERRORS);
2536 fail("Expected IllegalArgumentException for RESOLUTION_ERRORS"); 2536 fail("Expected ArgumentError for RESOLUTION_ERRORS");
2537 } on ArgumentError catch (exception) {} 2537 } on ArgumentError {}
2538 } 2538 }
2539 2539
2540 void test_getValue_invalid_verificationErrors() { 2540 void test_getValue_invalid_verificationErrors() {
2541 DartEntry entry = new DartEntry(); 2541 DartEntry entry = new DartEntry();
2542 try { 2542 try {
2543 entry.getValue(DartEntry.VERIFICATION_ERRORS); 2543 entry.getValue(DartEntry.VERIFICATION_ERRORS);
2544 fail("Expected IllegalArgumentException for VERIFICATION_ERRORS"); 2544 fail("Expected ArgumentError for VERIFICATION_ERRORS");
2545 } on ArgumentError catch (exception) { 2545 } on ArgumentError {
2546 // Expected 2546 // Expected
2547 } 2547 }
2548 } 2548 }
2549 2549
2550 void test_getValueInLibrary_invalid_element() { 2550 void test_getValueInLibrary_invalid_element() {
2551 DartEntry entry = new DartEntry(); 2551 DartEntry entry = new DartEntry();
2552 try { 2552 try {
2553 entry.getValueInLibrary(DartEntry.ELEMENT, new TestSource()); 2553 entry.getValueInLibrary(DartEntry.ELEMENT, new TestSource());
2554 fail("Expected IllegalArgumentException for ELEMENT"); 2554 fail("Expected ArgumentError for ELEMENT");
2555 } on ArgumentError catch (exception) { 2555 } on ArgumentError {
2556 // Expected 2556 // Expected
2557 } 2557 }
2558 } 2558 }
2559 2559
2560 void test_getValueInLibrary_invalid_resolutionErrors_multiple() { 2560 void test_getValueInLibrary_invalid_resolutionErrors_multiple() {
2561 Source source1 = new TestSource(); 2561 Source source1 = new TestSource();
2562 Source source2 = new TestSource(); 2562 Source source2 = new TestSource();
2563 Source source3 = new TestSource(); 2563 Source source3 = new TestSource();
2564 DartEntry entry = new DartEntry(); 2564 DartEntry entry = new DartEntry();
2565 entry.setValueInLibrary( 2565 entry.setValueInLibrary(
2566 DartEntry.RESOLVED_UNIT, source1, AstFactory.compilationUnit()); 2566 DartEntry.RESOLVED_UNIT, source1, AstFactory.compilationUnit());
2567 entry.setValueInLibrary( 2567 entry.setValueInLibrary(
2568 DartEntry.RESOLVED_UNIT, source2, AstFactory.compilationUnit()); 2568 DartEntry.RESOLVED_UNIT, source2, AstFactory.compilationUnit());
2569 entry.setValueInLibrary( 2569 entry.setValueInLibrary(
2570 DartEntry.RESOLVED_UNIT, source3, AstFactory.compilationUnit()); 2570 DartEntry.RESOLVED_UNIT, source3, AstFactory.compilationUnit());
2571 try { 2571 try {
2572 entry.getValueInLibrary(DartEntry.ELEMENT, source3); 2572 entry.getValueInLibrary(DartEntry.ELEMENT, source3);
2573 fail("Expected IllegalArgumentException for ELEMENT"); 2573 fail("Expected ArgumentError for ELEMENT");
2574 } on ArgumentError catch (exception) { 2574 } on ArgumentError {
2575 // Expected 2575 // Expected
2576 } 2576 }
2577 } 2577 }
2578 2578
2579 void test_hasInvalidData_false() { 2579 void test_hasInvalidData_false() {
2580 DartEntry entry = new DartEntry(); 2580 DartEntry entry = new DartEntry();
2581 entry.recordScanError(new CaughtException(new AnalysisException(), null)); 2581 entry.recordScanError(new CaughtException(new AnalysisException(), null));
2582 expect(entry.hasInvalidData(DartEntry.ELEMENT), isFalse); 2582 expect(entry.hasInvalidData(DartEntry.ELEMENT), isFalse);
2583 expect(entry.hasInvalidData(DartEntry.EXPORTED_LIBRARIES), isFalse); 2583 expect(entry.hasInvalidData(DartEntry.EXPORTED_LIBRARIES), isFalse);
2584 expect(entry.hasInvalidData(DartEntry.HINTS), isFalse); 2584 expect(entry.hasInvalidData(DartEntry.HINTS), isFalse);
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
3296 } 3296 }
3297 3297
3298 void test_setState_includedParts() { 3298 void test_setState_includedParts() {
3299 _setState(DartEntry.INCLUDED_PARTS); 3299 _setState(DartEntry.INCLUDED_PARTS);
3300 } 3300 }
3301 3301
3302 void test_setState_invalid_element() { 3302 void test_setState_invalid_element() {
3303 DartEntry entry = new DartEntry(); 3303 DartEntry entry = new DartEntry();
3304 try { 3304 try {
3305 entry.setStateInLibrary(DartEntry.ELEMENT, null, CacheState.FLUSHED); 3305 entry.setStateInLibrary(DartEntry.ELEMENT, null, CacheState.FLUSHED);
3306 fail("Expected IllegalArgumentException for ELEMENT"); 3306 fail("Expected ArgumentError for ELEMENT");
3307 } on ArgumentError catch (exception) { 3307 } on ArgumentError {
3308 // Expected 3308 // Expected
3309 } 3309 }
3310 } 3310 }
3311 3311
3312 void test_setState_invalid_resolutionErrors() { 3312 void test_setState_invalid_resolutionErrors() {
3313 DartEntry entry = new DartEntry(); 3313 DartEntry entry = new DartEntry();
3314 try { 3314 try {
3315 entry.setState(DartEntry.RESOLUTION_ERRORS, CacheState.FLUSHED); 3315 entry.setState(DartEntry.RESOLUTION_ERRORS, CacheState.FLUSHED);
3316 fail("Expected IllegalArgumentException for RESOLUTION_ERRORS"); 3316 fail("Expected ArgumentError for RESOLUTION_ERRORS");
3317 } on ArgumentError catch (exception) { 3317 } on ArgumentError {
3318 // Expected 3318 // Expected
3319 } 3319 }
3320 } 3320 }
3321 3321
3322 void test_setState_invalid_validState() { 3322 void test_setState_invalid_validState() {
3323 DartEntry entry = new DartEntry(); 3323 DartEntry entry = new DartEntry();
3324 try { 3324 try {
3325 entry.setState(SourceEntry.LINE_INFO, CacheState.VALID); 3325 entry.setState(SourceEntry.LINE_INFO, CacheState.VALID);
3326 fail("Expected ArgumentError for a state of VALID"); 3326 fail("Expected ArgumentError for a state of VALID");
3327 } on ArgumentError catch (exception) {} 3327 } on ArgumentError {}
3328 } 3328 }
3329 3329
3330 void test_setState_invalid_verificationErrors() { 3330 void test_setState_invalid_verificationErrors() {
3331 DartEntry entry = new DartEntry(); 3331 DartEntry entry = new DartEntry();
3332 try { 3332 try {
3333 entry.setState(DartEntry.VERIFICATION_ERRORS, CacheState.FLUSHED); 3333 entry.setState(DartEntry.VERIFICATION_ERRORS, CacheState.FLUSHED);
3334 fail("Expected IllegalArgumentException for VERIFICATION_ERRORS"); 3334 fail("Expected ArgumentError for VERIFICATION_ERRORS");
3335 } on ArgumentError catch (exception) { 3335 } on ArgumentError {
3336 // Expected 3336 // Expected
3337 } 3337 }
3338 } 3338 }
3339 3339
3340 void test_setState_isClient() { 3340 void test_setState_isClient() {
3341 _setState(DartEntry.IS_CLIENT); 3341 _setState(DartEntry.IS_CLIENT);
3342 } 3342 }
3343 3343
3344 void test_setState_isLaunchable() { 3344 void test_setState_isLaunchable() {
3345 _setState(DartEntry.IS_LAUNCHABLE); 3345 _setState(DartEntry.IS_LAUNCHABLE);
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
4021 4021
4022 void test_setValue_hints() { 4022 void test_setValue_hints() {
4023 _setValue(HtmlEntry.HINTS, 4023 _setValue(HtmlEntry.HINTS,
4024 <AnalysisError>[new AnalysisError.con1(null, HintCode.DEAD_CODE)]); 4024 <AnalysisError>[new AnalysisError.con1(null, HintCode.DEAD_CODE)]);
4025 } 4025 }
4026 4026
4027 void test_setValue_illegal() { 4027 void test_setValue_illegal() {
4028 HtmlEntry entry = new HtmlEntry(); 4028 HtmlEntry entry = new HtmlEntry();
4029 try { 4029 try {
4030 entry.setValue(DartEntry.ELEMENT, null); 4030 entry.setValue(DartEntry.ELEMENT, null);
4031 fail("Expected IllegalArgumentException for DartEntry.ELEMENT"); 4031 fail("Expected ArgumentError for DartEntry.ELEMENT");
4032 } on ArgumentError catch (exception) {} 4032 } on ArgumentError {}
4033 } 4033 }
4034 4034
4035 void test_setValue_lineInfo() { 4035 void test_setValue_lineInfo() {
4036 _setValue(SourceEntry.LINE_INFO, new LineInfo(<int>[0])); 4036 _setValue(SourceEntry.LINE_INFO, new LineInfo(<int>[0]));
4037 } 4037 }
4038 4038
4039 void test_setValue_parsedUnit() { 4039 void test_setValue_parsedUnit() {
4040 _setValue(HtmlEntry.PARSED_UNIT, new ht.HtmlUnit(null, null, null)); 4040 _setValue(HtmlEntry.PARSED_UNIT, new ht.HtmlUnit(null, null, null));
4041 } 4041 }
4042 4042
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
4869 // JUnitTestCase.assertEquals(0, testLogger.errorCount); 4869 // JUnitTestCase.assertEquals(0, testLogger.errorCount);
4870 } 4870 }
4871 } 4871 }
4872 4872
4873 class ParseHtmlTaskTest_non_existing_source extends TestSource { 4873 class ParseHtmlTaskTest_non_existing_source extends TestSource {
4874 ParseHtmlTaskTest_non_existing_source(String arg0) : super(arg0); 4874 ParseHtmlTaskTest_non_existing_source(String arg0) : super(arg0);
4875 @override 4875 @override
4876 Uri resolveRelativeUri(Uri containedUri) { 4876 Uri resolveRelativeUri(Uri containedUri) {
4877 try { 4877 try {
4878 return parseUriWithException("file:/does/not/exist.dart"); 4878 return parseUriWithException("file:/does/not/exist.dart");
4879 } on URISyntaxException catch (exception) { 4879 } on URISyntaxException {
4880 return null; 4880 return null;
4881 } 4881 }
4882 } 4882 }
4883 } 4883 }
4884 4884
4885 class ParseHtmlTaskTestTV_accept extends TestTaskVisitor<bool> { 4885 class ParseHtmlTaskTestTV_accept extends TestTaskVisitor<bool> {
4886 @override 4886 @override
4887 bool visitParseHtmlTask(ParseHtmlTask task) => true; 4887 bool visitParseHtmlTask(ParseHtmlTask task) => true;
4888 } 4888 }
4889 4889
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
6494 void test_creation() { 6494 void test_creation() {
6495 expect(new WorkManager(), isNotNull); 6495 expect(new WorkManager(), isNotNull);
6496 } 6496 }
6497 void test_iterator_empty() { 6497 void test_iterator_empty() {
6498 WorkManager manager = new WorkManager(); 6498 WorkManager manager = new WorkManager();
6499 WorkManager_WorkIterator iterator = manager.iterator(); 6499 WorkManager_WorkIterator iterator = manager.iterator();
6500 expect(iterator.hasNext, isFalse); 6500 expect(iterator.hasNext, isFalse);
6501 try { 6501 try {
6502 iterator.next(); 6502 iterator.next();
6503 fail("Expected NoSuchElementException"); 6503 fail("Expected NoSuchElementException");
6504 } on NoSuchElementException catch (exception) {} 6504 } on NoSuchElementException {}
6505 } 6505 }
6506 void test_iterator_nonEmpty() { 6506 void test_iterator_nonEmpty() {
6507 TestSource source = new TestSource(); 6507 TestSource source = new TestSource();
6508 WorkManager manager = new WorkManager(); 6508 WorkManager manager = new WorkManager();
6509 manager.add(source, SourcePriority.UNKNOWN); 6509 manager.add(source, SourcePriority.UNKNOWN);
6510 WorkManager_WorkIterator iterator = manager.iterator(); 6510 WorkManager_WorkIterator iterator = manager.iterator();
6511 expect(iterator.hasNext, isTrue); 6511 expect(iterator.hasNext, isTrue);
6512 expect(iterator.next(), same(source)); 6512 expect(iterator.next(), same(source));
6513 } 6513 }
6514 void test_remove() { 6514 void test_remove() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
6576 @override 6576 @override
6577 bool exists() => true; 6577 bool exists() => true;
6578 } 6578 }
6579 6579
6580 class _UniversalCachePartitionTest_test_setMaxCacheSize 6580 class _UniversalCachePartitionTest_test_setMaxCacheSize
6581 implements CacheRetentionPolicy { 6581 implements CacheRetentionPolicy {
6582 @override 6582 @override
6583 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6583 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6584 RetentionPriority.LOW; 6584 RetentionPriority.LOW;
6585 } 6585 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/element_test.dart ('k') | pkg/analyzer/test/generated/incremental_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698