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

Unified Diff: lib/src/util/string_literal_iterator.dart

Issue 1041453002: Fix analysis warnings. (Closed) Base URL: git@github.com:dart-lang/unittest@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/backend/platform_selector/evaluator.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/string_literal_iterator.dart
diff --git a/lib/src/util/string_literal_iterator.dart b/lib/src/util/string_literal_iterator.dart
index 67fffbb58a76cab577f568504fea3ca96e972fa2..59f0372e376a755644de8af36759ac9ca42a17fd 100644
--- a/lib/src/util/string_literal_iterator.dart
+++ b/lib/src/util/string_literal_iterator.dart
@@ -88,7 +88,7 @@ class StringLiteralIterator extends Iterator<int> {
} else {
assert(literal is AdjacentStrings);
- for (var string in literal.strings) {
+ for (var string in (literal as AdjacentStrings).strings) {
if (string is StringInterpolation) {
throw new ArgumentError("Can't iterate over an interpolated string.");
}
« no previous file with comments | « lib/src/backend/platform_selector/evaluator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698