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

Unified Diff: lib/src/chunk.dart

Issue 2525553003: Tighten the span around index operators. (Closed)
Patch Set: Created 4 years, 1 month 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 | « CHANGELOG.md ('k') | lib/src/source_visitor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/chunk.dart
diff --git a/lib/src/chunk.dart b/lib/src/chunk.dart
index da6d7bbc011ac9e7d82055ec4d43b76b66c48b52..0ac36bd07f1bcbe424f636e0b359b4101f580ebb 100644
--- a/lib/src/chunk.dart
+++ b/lib/src/chunk.dart
@@ -329,6 +329,9 @@ class Cost {
/// Splitting on the "." in a named constructor.
static const constructorName = 3;
+ /// Splitting a `[...]` index operator.
+ static const index = 3;
+
/// Splitting before a type argument or type parameter.
static const typeArgument = 4;
}
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/source_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698