File tree Expand file tree Collapse file tree 4 files changed +51
-1
lines changed
Expand file tree Collapse file tree 4 files changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,9 @@ private:
224224 else if (currentIs(tok! " return" ))
225225 {
226226 writeToken();
227- if (! currentIs(tok! " ;" ) && ! currentIs(tok! " )" ) && ! currentIs(tok! " {" ))
227+ if (! currentIs(tok! " ;" ) && ! currentIs(tok! " )" ) && ! currentIs(tok! " {" )
228+ && ! currentIs(tok! " in" ) && ! currentIs(tok! " out" ) && ! currentIs(tok! " do" )
229+ && (hasCurrent && tokens[index].text != " body" ))
228230 write(" " );
229231 }
230232 else if (currentIs(tok! " with" ))
Original file line number Diff line number Diff line change 1+ public int f() return
2+ in (true)
3+ {
4+ return 0;
5+ }
6+
7+ public int g() return
8+ out (; true)
9+ {
10+ return 0;
11+ }
12+
13+ public int h() return
14+ body
15+ {
16+ return 0;
17+ }
Original file line number Diff line number Diff line change 1+ public int f () return
2+ in (true )
3+ {
4+ return 0 ;
5+ }
6+
7+ public int g () return
8+ out (; true )
9+ {
10+ return 0 ;
11+ }
12+
13+ public int h () return
14+ body
15+ {
16+ return 0 ;
17+ }
Original file line number Diff line number Diff line change 1+ public int f() return
2+ in (true) {
3+ return 0;
4+ }
5+
6+ public int g() return
7+ out (; true) {
8+ return 0;
9+ }
10+
11+ public int h() return
12+ body {
13+ return 0;
14+ }
You can’t perform that action at this time.
0 commit comments