@@ -3877,7 +3877,7 @@ object Parsers {
3877
3877
stats +++= defOrDcl(in.offset, defAnnotsMods(modifierTokens))
3878
3878
else
3879
3879
empty = true
3880
- statSepOrEnd(stats, empty, " toplevel definition" )
3880
+ statSepOrEnd(stats, noPrevStat = empty, " toplevel definition" )
3881
3881
do ()
3882
3882
stats.toList
3883
3883
}
@@ -3927,7 +3927,7 @@ object Parsers {
3927
3927
stats += expr1()
3928
3928
else
3929
3929
empty = true
3930
- statSepOrEnd(stats, empty)
3930
+ statSepOrEnd(stats, noPrevStat = empty)
3931
3931
do ()
3932
3932
(self, if stats.isEmpty then List (EmptyTree ) else stats.toList)
3933
3933
}
@@ -3966,7 +3966,7 @@ object Parsers {
3966
3966
stats ++= checkLegal(defOrDcl(in.offset, Modifiers ()))
3967
3967
var what = " declaration"
3968
3968
if inFunReturnType then what += " (possible cause: missing `=` in front of current method body)"
3969
- statSepOrEnd(stats, ! dclFound, what)
3969
+ statSepOrEnd(stats, noPrevStat = ! dclFound, what)
3970
3970
do ()
3971
3971
stats.toList
3972
3972
}
@@ -4005,7 +4005,7 @@ object Parsers {
4005
4005
stats +++= localDef(in.offset)
4006
4006
else
4007
4007
empty = true
4008
- statSepOrEnd(stats, empty, altEnd = CASE )
4008
+ statSepOrEnd(stats, noPrevStat = empty, altEnd = CASE )
4009
4009
do ()
4010
4010
stats.toList
4011
4011
}
0 commit comments