@@ -3888,7 +3888,7 @@ object Parsers {
3888
3888
stats +++= defOrDcl(in.offset, defAnnotsMods(modifierTokens))
3889
3889
else
3890
3890
empty = true
3891
- statSepOrEnd(stats, empty, " toplevel definition" )
3891
+ statSepOrEnd(stats, noPrevStat = empty, " toplevel definition" )
3892
3892
do ()
3893
3893
stats.toList
3894
3894
}
@@ -3938,7 +3938,7 @@ object Parsers {
3938
3938
stats += expr1()
3939
3939
else
3940
3940
empty = true
3941
- statSepOrEnd(stats, empty)
3941
+ statSepOrEnd(stats, noPrevStat = empty)
3942
3942
do ()
3943
3943
(self, if stats.isEmpty then List (EmptyTree ) else stats.toList)
3944
3944
}
@@ -3977,7 +3977,7 @@ object Parsers {
3977
3977
stats ++= checkLegal(defOrDcl(in.offset, Modifiers ()))
3978
3978
var what = " declaration"
3979
3979
if inFunReturnType then what += " (possible cause: missing `=` in front of current method body)"
3980
- statSepOrEnd(stats, ! dclFound, what)
3980
+ statSepOrEnd(stats, noPrevStat = ! dclFound, what)
3981
3981
do ()
3982
3982
stats.toList
3983
3983
}
@@ -4016,7 +4016,7 @@ object Parsers {
4016
4016
stats +++= localDef(in.offset)
4017
4017
else
4018
4018
empty = true
4019
- statSepOrEnd(stats, empty, altEnd = CASE )
4019
+ statSepOrEnd(stats, noPrevStat = empty, altEnd = CASE )
4020
4020
do ()
4021
4021
stats.toList
4022
4022
}
0 commit comments