@@ -68,7 +68,7 @@ object Scala3:
6868 end Symbols
6969
7070
71- given NameOps as AnyRef :
71+ given NameOps : AnyRef with
7272 extension (name : Name ):
7373 def isWildcard = name match
7474 case nme.WILDCARD | WILDCARDTypeName => true
@@ -89,7 +89,7 @@ object Scala3:
8989 }
9090 end NameOps
9191
92- given SymbolOps as AnyRef :
92+ given SymbolOps : AnyRef with
9393 extension (sym : Symbol ):
9494
9595 def ifExists (using Context ): Option [Symbol ] = if sym.exists then Some (sym) else None
@@ -145,7 +145,7 @@ object Scala3:
145145 case '/' | '.' | '#' | ']' | ')' => true
146146 case _ => false
147147
148- given StringOps as AnyRef :
148+ given StringOps : AnyRef with
149149 extension (symbol : String ):
150150 def isSymbol : Boolean = ! symbol.isEmpty
151151 def isRootPackage : Boolean = RootPackage == symbol
@@ -169,7 +169,7 @@ object Scala3:
169169 isJavaIdentifierStart(symbol.head) && symbol.tail.forall(isJavaIdentifierPart)
170170 end StringOps
171171
172- given InfoOps as AnyRef :
172+ given InfoOps : AnyRef with
173173 extension (info : SymbolInformation ):
174174 def isAbstract : Boolean = (info.properties & SymbolInformation .Property .ABSTRACT .value) != 0
175175 def isFinal : Boolean = (info.properties & SymbolInformation .Property .FINAL .value) != 0
@@ -204,13 +204,13 @@ object Scala3:
204204 def isInterface : Boolean = info.kind.isInterface
205205 end InfoOps
206206
207- given RangeOps as AnyRef :
207+ given RangeOps : AnyRef with
208208 extension (range : Range ):
209209 def hasLength = range.endLine > range.startLine || range.endCharacter > range.startCharacter
210210 end RangeOps
211211
212212 /** Sort symbol occurrences by their start position. */
213- given OccurrenceOrdering as Ordering [SymbolOccurrence ] = (x, y) =>
213+ given OccurrenceOrdering : Ordering [SymbolOccurrence ] = (x, y) =>
214214 x.range -> y.range match
215215 case None -> _ | _ -> None => 0
216216 case Some (a) -> Some (b) =>
0 commit comments