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

Unified Diff: pkg/analyzer_experimental/test/generated/test_support.dart

Issue 14161021: Generate unique names less aggressively. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/test/generated/test_support.dart
diff --git a/pkg/analyzer_experimental/test/generated/test_support.dart b/pkg/analyzer_experimental/test/generated/test_support.dart
index a1b6a6c4ba80b4ecb07233c5fa83acaafafdffe9..6e85ac92ec4f3da2be3c712886d1d3a9ae8decca 100644
--- a/pkg/analyzer_experimental/test/generated/test_support.dart
+++ b/pkg/analyzer_experimental/test/generated/test_support.dart
@@ -216,9 +216,9 @@ class GatheringErrorListener implements AnalysisErrorListener {
* @param errorCode the error code being searched for
* @return {@code true} if an error with the given error code has been gathered
*/
- bool hasError(ErrorCode errorCode5) {
+ bool hasError(ErrorCode errorCode2) {
for (AnalysisError error in _errors) {
- if (identical(error.errorCode, errorCode5)) {
+ if (identical(error.errorCode, errorCode2)) {
return true;
}
}
@@ -287,15 +287,15 @@ class GatheringErrorListener implements AnalysisErrorListener {
writer.print(expectedErrors.length);
writer.print(" errors:");
for (AnalysisError error in expectedErrors) {
- Source source16 = error.source;
- LineInfo lineInfo = _lineInfoMap[source16];
+ Source source2 = error.source;
+ LineInfo lineInfo = _lineInfoMap[source2];
writer.newLine();
if (lineInfo == null) {
- int offset10 = error.offset;
- writer.printf(" %s %s (%d..%d)", [source16 == null ? "" : source16.shortName, error.errorCode, offset10, offset10 + error.length]);
+ int offset2 = error.offset;
+ writer.printf(" %s %s (%d..%d)", [source2 == null ? "" : source2.shortName, error.errorCode, offset2, offset2 + error.length]);
} else {
LineInfo_Location location = lineInfo.getLocation(error.offset);
- writer.printf(" %s %s (%d, %d/%d)", [source16 == null ? "" : source16.shortName, error.errorCode, location.lineNumber, location.columnNumber, error.length]);
+ writer.printf(" %s %s (%d, %d/%d)", [source2 == null ? "" : source2.shortName, error.errorCode, location.lineNumber, location.columnNumber, error.length]);
}
}
writer.newLine();
@@ -303,15 +303,15 @@ class GatheringErrorListener implements AnalysisErrorListener {
writer.print(_errors.length);
writer.print(" errors:");
for (AnalysisError error in _errors) {
- Source source17 = error.source;
- LineInfo lineInfo = _lineInfoMap[source17];
+ Source source3 = error.source;
+ LineInfo lineInfo = _lineInfoMap[source3];
writer.newLine();
if (lineInfo == null) {
- int offset11 = error.offset;
- writer.printf(" %s %s (%d..%d): %s", [source17 == null ? "" : source17.shortName, error.errorCode, offset11, offset11 + error.length, error.message]);
+ int offset3 = error.offset;
+ writer.printf(" %s %s (%d..%d): %s", [source3 == null ? "" : source3.shortName, error.errorCode, offset3, offset3 + error.length, error.message]);
} else {
LineInfo_Location location = lineInfo.getLocation(error.offset);
- writer.printf(" %s %s (%d, %d/%d): %s", [source17 == null ? "" : source17.shortName, error.errorCode, location.lineNumber, location.columnNumber, error.length, error.message]);
+ writer.printf(" %s %s (%d, %d/%d): %s", [source3 == null ? "" : source3.shortName, error.errorCode, location.lineNumber, location.columnNumber, error.length, error.message]);
}
}
JUnitTestCase.fail(writer.toString());

Powered by Google App Engine
This is Rietveld 408576698