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

Unified Diff: frog/leg/scanner/token.dart

Issue 9301037: Made multiline string literals ignore an initial newline. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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: frog/leg/scanner/token.dart
diff --git a/frog/leg/scanner/token.dart b/frog/leg/scanner/token.dart
index e40fe1ea7ad51438dc9f97e173de406fa6ee8490..c87406cc932d493dfe1911f213c3a67be5aa7073 100644
--- a/frog/leg/scanner/token.dart
+++ b/frog/leg/scanner/token.dart
@@ -161,10 +161,6 @@ class StringWrapper implements SourceString {
assert(0 <= initial);
assert(0 <= terminal);
assert(initial + terminal <= stringValue.length);
- assert(stringValue.startsWith(["", "'", "@'", "'''", "@'''"][initial]) ||
- stringValue.startsWith(['', '"', '@"', '"""', '@"""'][initial]));
- assert(stringValue.endsWith(["", "'", null, "'''"][terminal]) ||
- stringValue.endsWith(['', '"', null, '"""'][terminal]));
return new StringWrapper(
stringValue.substring(initial, stringValue.length - terminal));
}

Powered by Google App Engine
This is Rietveld 408576698