File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1544,7 +1544,6 @@ object Parsers {
15441544 def updateSpanOfLast (last : T ): Unit =
15451545 last match
15461546 case last : WithEndMarker [t] => last.withEndMarker()
1547- case apply : Apply if sourceVersion.enablesMethodBlockEndMarkers => apply.withEndMarker()
15481547 case _ =>
15491548 last.span = last.span.withEnd(in.lastCharOffset)
15501549
Original file line number Diff line number Diff line change @@ -367,6 +367,13 @@ object language {
367367 */
368368 @ compileTimeOnly(" `subCases` can only be used at compile time in import statements" )
369369 object subCases
370+
371+ /** Experimental support for end markers for method blocks.
372+ *
373+ * @see [[https://github.com/scala/improvement-proposals/pull/77 ]]
374+ */
375+ @ compileTimeOnly(" `methodBlockEndMarkers` can only be used at compile time in import statements" )
376+ object methodBlockEndMarkers
370377 }
371378
372379 /** The deprecated object contains features that are no longer officially suypported in Scala.
Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ object language:
174174 */
175175 @ compileTimeOnly(" `subCases` can only be used at compile time in import statements" )
176176 object subCases
177+
177178 /** Experimental support for end markers for method blocks.
178179 *
179180 * @see [[https://github.com/scala/improvement-proposals/pull/77 ]]
You can’t perform that action at this time.
0 commit comments