Skip to content

Commit bdc47ba

Browse files
committed
Workaround #8241
1 parent 47ee7d6 commit bdc47ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler/src/dotty/tools/dotc/semanticdb/Scala3.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ object Scala3 with
8787
case _ => false
8888
}
8989

90-
end NameOps
90+
// end NameOps
9191

9292
extension SymbolOps on (sym: Symbol) with
9393

@@ -126,7 +126,7 @@ object Scala3 with
126126
def isAnnotation(given Context): Boolean =
127127
sym.derivesFrom(defn.AnnotationClass)
128128

129-
end SymbolOps
129+
// end SymbolOps
130130

131131
object LocalSymbol with
132132

@@ -169,7 +169,7 @@ object Scala3 with
169169
def isJavaIdent =
170170
isJavaIdentifierStart(symbol.head) && symbol.tail.forall(isJavaIdentifierPart)
171171

172-
end StringOps
172+
// end StringOps
173173

174174
extension InfoOps on (info: SymbolInformation) with
175175

@@ -205,11 +205,11 @@ object Scala3 with
205205
def isTrait: Boolean = info.kind.isTrait
206206
def isInterface: Boolean = info.kind.isInterface
207207

208-
end InfoOps
208+
// end InfoOps
209209

210210
extension RangeOps on (range: Range) with
211211
def hasLength = range.endLine > range.startLine || range.endCharacter > range.startCharacter
212-
end RangeOps
212+
// end RangeOps
213213

214214
/** Sort symbol occurrences by their start position. */
215215
given OccurrenceOrdering: Ordering[SymbolOccurrence] = (x, y) =>

compiler/src/dotty/tools/dotc/typer/Nullables.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ object Nullables with
189189
val mutables = infos.foldLeft(Set[TermRef]())((ms, info) =>
190190
ms.union(info.asserted.filter(_.symbol.is(Mutable))))
191191
infos.extendWith(NotNullInfo(Set(), mutables))
192-
end notNullInfoOps
192+
// end notNullInfoOps
193193

194194
extension refOps on (ref: TermRef) with
195195

0 commit comments

Comments
 (0)