@@ -67,7 +67,7 @@ object Scala3 with
6767
6868 end Symbols
6969
70- given NameOps : extension (name : Name ) with
70+ extension NameOps on (name : Name ) with
7171
7272 def isWildcard = name match
7373 case nme.WILDCARD | WILDCARDTypeName => true
@@ -87,9 +87,9 @@ object Scala3 with
8787 case _ => false
8888 }
8989
90- end NameOps
90+ // end NameOps
9191
92- given SymbolOps : extension (sym : Symbol ) with
92+ extension SymbolOps on (sym : Symbol ) with
9393
9494 def ifExists (given Context ): Option [Symbol ] = if sym.exists then Some (sym) else None
9595
@@ -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
@@ -146,7 +146,7 @@ object Scala3 with
146146 case '/' | '.' | '#' | ']' | ')' => true
147147 case _ => false
148148
149- given StringOps : extension (symbol : String ) with
149+ extension StringOps on (symbol : String ) with
150150
151151 def isSymbol : Boolean = ! symbol.isEmpty
152152 def isRootPackage : Boolean = RootPackage == symbol
@@ -169,9 +169,9 @@ object Scala3 with
169169 def isJavaIdent =
170170 isJavaIdentifierStart(symbol.head) && symbol.tail.forall(isJavaIdentifierPart)
171171
172- end StringOps
172+ // end StringOps
173173
174- given InfoOps : extension (info : SymbolInformation ) with
174+ extension InfoOps on (info : SymbolInformation ) with
175175
176176 def isAbstract : Boolean = (info.properties & SymbolInformation .Property .ABSTRACT .value) != 0
177177 def isFinal : Boolean = (info.properties & SymbolInformation .Property .FINAL .value) != 0
@@ -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
210- given RangeOps : extension (range : Range ) with
210+ 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) =>
0 commit comments