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

Unified Diff: test/whitespace/metadata.unit

Issue 2298993002: Handle metadata annotations in parameter lists with trailing commas. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « test/regression/0500/0520.unit ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/whitespace/metadata.unit
diff --git a/test/whitespace/metadata.unit b/test/whitespace/metadata.unit
index 0c7307655341b4733e6a22291c0e98c302d16ef0..08a39666b719ac6988edf3bd89818bd7dc3f4430 100644
--- a/test/whitespace/metadata.unit
+++ b/test/whitespace/metadata.unit
@@ -209,8 +209,26 @@ named({@foo bar}) {}
positional([@foo bar]) {}
named({@foo bar}) {}
>>> split between metadata and parameter indents
-function(@VeryLongMetadataAnnotation longParameter) {}
+function(@Annotation @VeryLongMetadataAnnotation longParameter) {}
<<<
function(
+ @Annotation
@VeryLongMetadataAnnotation
- longParameter) {}
+ longParameter) {}
+>>> unsplit with trailing commas
+function(@Annotation longParameter,@Annotation @Other longParameter2,) {}
+<<<
+function(
+ @Annotation longParameter,
+ @Annotation @Other longParameter2,
+) {}
+>>> split with trailing commas
+function(@Annotation longParameter,@Annotation @Other @Third longParameter2,) {}
+<<<
+function(
+ @Annotation longParameter,
+ @Annotation
+ @Other
+ @Third
+ longParameter2,
+) {}
« no previous file with comments | « test/regression/0500/0520.unit ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698