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

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

Issue 1059263004: Fix ill-formatted error messages in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 2330 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
2331 } 2331 }
2332 2332
2333 @reflectiveTest 2333 @reflectiveTest
2334 class DartEntryTest extends EngineTestCase { 2334 class DartEntryTest extends EngineTestCase {
2335 void test_allErrors() { 2335 void test_allErrors() {
2336 Source source = new TestSource(); 2336 Source source = new TestSource();
2337 DartEntry entry = new DartEntry(); 2337 DartEntry entry = new DartEntry();
2338 expect(entry.allErrors, hasLength(0)); 2338 expect(entry.allErrors, hasLength(0));
2339 entry.setValue(SourceEntry.CONTENT_ERRORS, <AnalysisError>[ 2339 entry.setValue(SourceEntry.CONTENT_ERRORS, <AnalysisError>[
2340 new AnalysisError.con1(source, ScannerErrorCode.UNABLE_GET_CONTENT) 2340 new AnalysisError.con1(
2341 source, ScannerErrorCode.UNABLE_GET_CONTENT, ['exception details'])
2341 ]); 2342 ]);
2342 entry.setValue(DartEntry.SCAN_ERRORS, <AnalysisError>[ 2343 entry.setValue(DartEntry.SCAN_ERRORS, <AnalysisError>[
2343 new AnalysisError.con1( 2344 new AnalysisError.con1(
2344 source, ScannerErrorCode.UNTERMINATED_STRING_LITERAL) 2345 source, ScannerErrorCode.UNTERMINATED_STRING_LITERAL)
2345 ]); 2346 ]);
2346 entry.setValue(DartEntry.PARSE_ERRORS, <AnalysisError>[ 2347 entry.setValue(DartEntry.PARSE_ERRORS, <AnalysisError>[
2347 new AnalysisError.con1(source, ParserErrorCode.ABSTRACT_CLASS_MEMBER) 2348 new AnalysisError.con1(source, ParserErrorCode.ABSTRACT_CLASS_MEMBER)
2348 ]); 2349 ]);
2349 entry.setValueInLibrary(DartEntry.RESOLUTION_ERRORS, source, 2350 entry.setValueInLibrary(DartEntry.RESOLUTION_ERRORS, source,
2350 <AnalysisError>[ 2351 <AnalysisError>[
(...skipping 4254 matching lines...) Expand 10 before | Expand all | Expand 10 after
6605 @override 6606 @override
6606 bool exists() => true; 6607 bool exists() => true;
6607 } 6608 }
6608 6609
6609 class _UniversalCachePartitionTest_test_setMaxCacheSize 6610 class _UniversalCachePartitionTest_test_setMaxCacheSize
6610 implements CacheRetentionPolicy { 6611 implements CacheRetentionPolicy {
6611 @override 6612 @override
6612 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6613 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6613 RetentionPriority.LOW; 6614 RetentionPriority.LOW;
6614 } 6615 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698