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

Unified Diff: test/whitespace/blocks.stmt

Issue 2186343003: Enforce a blank line after local function declarations. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Revise. Created 4 years, 5 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/0400/0488.stmt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/whitespace/blocks.stmt
diff --git a/test/whitespace/blocks.stmt b/test/whitespace/blocks.stmt
index 8091a699c19d39aa1b350f72c6ea1f7af30f440b..5ebaffd371679d846501d79107ffa778862c3221 100644
--- a/test/whitespace/blocks.stmt
+++ b/test/whitespace/blocks.stmt
@@ -54,4 +54,44 @@
var a;
;
;
+}
+>>> force blank line after non-empty local function
+{
+ a() {;}
+ b();
+
+
+ c() {;}d(){;}
+
+
+}
+<<<
+{
+ a() {
+ ;
+ }
+
+ b();
+
+ c() {
+ ;
+ }
+
+ d() {
+ ;
+ }
+}
+>>> do not force blank line after empty local function
+{ a() {} b() {} }
+<<<
+{
+ a() {}
+ b() {}
+}
+>>> do not force blank line after => body local function
+{ a() => null; b() => null; }
+<<<
+{
+ a() => null;
+ b() => null;
}
« no previous file with comments | « test/regression/0400/0488.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698