f1eb73173cdb64de97bbeecee633371c9a1787ce
[platform/framework/web/crosswalk-tizen.git] /
1 // next
2 switch (foo) {
3   // next
4   case bar:
5     // next
6     baz();
7     // this should be aligned with previous line since comment block is
8     // followed by an empty line
9
10   // next
11   case biz:
12     // next
13     what();
14 // next
15 }
16 // previous
17
18 // next
19 function empty(
20   // > indent
21   // > indent
22 )
23 // next
24 // next
25 {
26   // > indent
27   // > indent
28 }
29 // prev
30
31 function empty2() {
32   // > indent
33
34   // next
35   if (foo) {
36     // >> indent
37   }
38
39   // next
40   function empty3() {
41     // >> indent
42
43     // next
44     foo();
45   }
46   // prev
47
48   // next
49   switch (a) {
50     // next
51     case 'lorem':
52       // next
53       dolor();
54       // next
55       break;
56   // next
57   }
58 }
59
60 // next
61 ;(function() {
62 // next
63 var bar = 'baz';
64 // next
65 }());
66 // prev
67
68 // next
69 class Foo extends Bar {
70   // > indent
71
72   constructor(bar) {
73     this.bar = bar;
74   }
75
76   // prev
77
78   method() {
79     // > indent
80   }
81   //prev
82
83 // next
84 }
85 // prev
86
87 function foo() {
88
89   // > indent
90   // > indent
91
92 }
93
94 function bar() {
95   foo();
96
97   // > indent
98   // > indent
99
100   baz();
101 }
102
103 // prev