Skip to content

Commit 1840a5d

Browse files
oderskyneko-kai
authored andcommitted
Improve doc comments
and fix repltests
1 parent 6d75b45 commit 1840a5d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,13 @@ object Parsers {
312312
if in.isNewLine then in.nextToken() else accept(SEMI)
313313

314314
/** Parse statement separators and end markers. Ensure that there is at least
315-
* one statement separator unless the next token terminates a statement sequence.
315+
* one statement separator unless the next token terminates a statement´sequence.
316+
* @param stats the statements parsed to far
317+
* @param noPrevStat true if there was no immediately preceding statement parsed
318+
* @param what a string indicating what kin of statement is parsed
319+
* @param altEnd a token that is also considered as a terminator of the statement
320+
* sequence (the default `EOF` already assumes to terminate a statement
321+
* sequence).
316322
* @return true if the statement sequence continues, false if it terminates.
317323
*/
318324
def statSepOrEnd[T <: Tree](stats: ListBuffer[T], noPrevStat: Boolean = false, what: String = "statement", altEnd: Token = EOF): Boolean =

compiler/test-resources/repl/i6676

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ scala> xml"
22
1 | xml"
33
| ^
44
| unclosed string literal
5-
1 | xml"
6-
| ^
7-
| ';' expected, but eof found
85
scala> xml""
96
1 | xml""
107
| ^^^^^
@@ -20,6 +17,3 @@ scala> s"
2017
1 | s"
2118
| ^
2219
| unclosed string literal
23-
1 | s"
24-
| ^
25-
| ';' expected, but eof found

0 commit comments

Comments
 (0)