Index: sdk/lib/core/exceptions.dart |
diff --git a/sdk/lib/core/exceptions.dart b/sdk/lib/core/exceptions.dart |
index 8fb50fdbf1324ab050522cc1bb2f94d337e6b820..aacddea7b2b0b56814a3f18873b401e5b850b4d3 100644 |
--- a/sdk/lib/core/exceptions.dart |
+++ b/sdk/lib/core/exceptions.dart |
@@ -116,19 +116,19 @@ class FormatException implements Exception { |
} |
int lineNum = 1; |
int lineStart = 0; |
- bool lastWasCR; |
+ bool previousCharWasCR = false; |
for (int i = 0; i < offset; i++) { |
int char = source.codeUnitAt(i); |
if (char == 0x0a) { |
- if (lineStart != i || !lastWasCR) { |
+ if (lineStart != i || !previousCharWasCR) { |
lineNum++; |
} |
lineStart = i + 1; |
- lastWasCR = false; |
+ previousCharWasCR = false; |
} else if (char == 0x0d) { |
lineNum++; |
lineStart = i + 1; |
- lastWasCR = true; |
+ previousCharWasCR = true; |
} |
} |
if (lineNum > 1) { |