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

Unified Diff: dart/lib/compiler/implementation/scanner/scanner.dart

Issue 10836351: Parse metadata, but ignore it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 4 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: dart/lib/compiler/implementation/scanner/scanner.dart
diff --git a/dart/lib/compiler/implementation/scanner/scanner.dart b/dart/lib/compiler/implementation/scanner/scanner.dart
index 9ef98c399f42839c321735e90da226b5b9124310..63f92a88f6aed56feb63e20915991479a61d69d5 100644
--- a/dart/lib/compiler/implementation/scanner/scanner.dart
+++ b/dart/lib/compiler/implementation/scanner/scanner.dart
@@ -231,7 +231,7 @@ class AbstractScanner<T extends SourceString> implements Scanner {
}
if (next === $AT) {
- return tokenizeRawString(next);
+ return tokenizeAtOrRawString(next);
}
if (next === $DQ || next === $SQ) {
@@ -672,13 +672,14 @@ class AbstractScanner<T extends SourceString> implements Scanner {
}
}
- int tokenizeRawString(int next) {
+ int tokenizeAtOrRawString(int next) {
int start = byteOffset;
next = advance();
if (next === $DQ || next === $SQ) {
return tokenizeString(next, start, true);
} else {
- throw new MalformedInputException("expected ' or \"", charOffset);
+ appendPrecedenceToken(AT_INFO);
+ return next;
}
}

Powered by Google App Engine
This is Rietveld 408576698