@@ -1544,7 +1544,7 @@ object Parsers {
15441544 def updateSpanOfLast (last : T ): Unit =
15451545 last match
15461546 case last : WithEndMarker [t] => last.withEndMarker()
1547- case apply : Apply if sourceVersion.enablesEndMarkersForMethodBlocks => apply.setEndMarker()
1547+ case apply : Apply if sourceVersion.enablesMethodBlockEndMarkers => apply.setEndMarker()
15481548 case _ =>
15491549 last.span = last.span.withEnd(in.lastCharOffset)
15501550
@@ -1564,7 +1564,7 @@ object Parsers {
15641564 case _ : Match => in.token == MATCH
15651565 case _ : New => in.token == NEW
15661566 case _ : (ForYield | ForDo ) => in.token == FOR
1567- case apply : Apply if sourceVersion.enablesEndMarkersForMethodBlocks =>
1567+ case apply : Apply if sourceVersion.enablesMethodBlockEndMarkers =>
15681568 // Extract method name from Apply node
15691569 val methodName = apply.attachmentOrElse(untpd.MethodName , null )
15701570 if methodName != null then
@@ -2936,7 +2936,7 @@ object Parsers {
29362936 val res = Apply (fn, args._1)
29372937 if args._2 then res.setApplyKind(ApplyKind .Using )
29382938 // Track method name for end marker support when using colon syntax
2939- if sourceVersion.enablesEndMarkersForMethodBlocks then
2939+ if sourceVersion.enablesMethodBlockEndMarkers then
29402940 val methodName = fn match
29412941 case Select (_, name) => name
29422942 case Ident (name) => name
0 commit comments