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

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

Issue 10584011: Missing test from CL 10544173. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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 | « no previous file | dart/tests/language/skip_expression_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c6c5f2fd28af96c0540e3d974f7e5432a49d47a5..24f439dedf9f5cf42a2d34522f5c29c3614a0834 100644
--- a/dart/lib/compiler/implementation/scanner/scanner.dart
+++ b/dart/lib/compiler/implementation/scanner/scanner.dart
@@ -36,9 +36,15 @@ class AbstractScanner<T extends SourceString> implements Scanner {
/**
* We call this method to discard '<' from the "grouping" stack
- * (maintained by subclasses). That we don't create groups for stuff
- * like "a = b < c, d = e > f" is used by
- * [PartialParser.skipExpression].
+ * (maintained by subclasses).
+ *
+ * [PartialParser.skipExpression] relies on the fact that we do not
+ * create groups for stuff like:
+ * [:a = b < c, d = e > f:].
+ *
+ * In other words, this method is called when the scanner recognizes
+ * something which cannot possibly be part of a type
+ * parameter/argument list.
*/
abstract void discardOpenLt();
« no previous file with comments | « no previous file | dart/tests/language/skip_expression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698