Skip to content

Commit 9bb7006

Browse files
committed
Change colon to with in compiler
2 parents 6947b0f + cc481e4 commit 9bb7006

File tree

111 files changed

+8
-8921
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+8
-8921
lines changed

compiler/src-non-bootstrapped/scala/quoted/runtime/impl/QuotesImpl.scala

Lines changed: 0 additions & 2882 deletions
This file was deleted.

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ object Trees {
382382
def rhs(using Context): Tree[T] = forceIfLazy
383383
}
384384

385-
trait ValOrTypeDef[-T >: Untyped] extends MemberDef[T]:
385+
trait ValOrTypeDef[-T >: Untyped] extends MemberDef[T] with
386386
type ThisTree[-T >: Untyped] <: ValOrTypeDef[T]
387387

388388
type ParamClause[T >: Untyped] = List[ValDef[T]] | List[TypeDef[T]]

compiler/src/dotty/tools/dotc/core/tasty/PositionPickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ class PositionPickler(
133133
object PositionPickler:
134134
// Note: This could be just TreeToAddr => Addr if functions are specialized to value classes.
135135
// We use a SAM type to avoid boxing of Addr
136-
@FunctionalInterface trait TreeToAddr:
136+
@FunctionalInterface trait TreeToAddr with
137137
def apply(x: untpd.Tree): Addr

compiler/src/dotty/tools/dotc/reporting/trace.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ end trace
2020
* is false. The `trace` operation is called in various hotspots, so every tiny bit
2121
* of overhead is unacceptable: boxing, closures, additional method calls are all out.
2222
*/
23-
trait TraceSyntax:
23+
trait TraceSyntax with
2424

2525
inline def isEnabled: Boolean
2626
protected val isForced: Boolean

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,7 @@ end Implicits
534534
import Implicits._
535535

536536
/** Info relating to implicits that is kept for one run */
537-
trait ImplicitRunInfo:
538-
self: Run =>
537+
trait ImplicitRunInfo with self: Run =>
539538

540539
private val implicitScopeCache = util.EqHashMap[Type, OfTypeImplicits]()
541540

@@ -757,7 +756,7 @@ trait ImplicitRunInfo:
757756
end ImplicitRunInfo
758757

759758
/** The implicit resolution part of type checking */
760-
trait Implicits:
759+
trait Implicits with
761760
self: Typer =>
762761

763762
import tpd._

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import scala.util.control.NonFatal
1818
/** This trait defines the method `importSuggestionAddendum` that adds an addendum
1919
* to error messages suggesting additional imports.
2020
*/
21-
trait ImportSuggestions:
22-
this: Typer =>
21+
trait ImportSuggestions with this: Typer =>
2322

2423
/** The maximal number of suggested imports to make */
2524
inline val MaxSuggestions = 10

compiler/src/dotty/tools/dotc/util/SourcePosition.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extends SrcPos, interfaces.SourcePosition, Showable {
9191
}
9292

9393
/** Things that can produce a source position and a span */
94-
trait SrcPos:
94+
trait SrcPos with
9595
def sourcePos(using ctx: Context): SourcePosition
9696
def span: Span
9797
def startPos(using ctx: Context): SourcePosition = sourcePos.startPos

library/src-non-bootstrapped/scala/IArray.scala

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)