Skip to content

Commit e72dc70

Browse files
committed
Rename reporting -> showing
Otherwise the extension method `reporting` clashes with the `reporting` package.
1 parent e3839bb commit e72dc70

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ object desugar {
814814
}
815815

816816
flatTree(cdef1 :: companions ::: implicitWrappers ::: enumScaffolding)
817-
}.reporting(i"desugared: $result", Printers.desugar)
817+
}.showing(i"desugared: $result", Printers.desugar)
818818

819819
/** Expand
820820
*

compiler/src/dotty/tools/dotc/core/ConstraintHandling.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ trait ConstraintHandling {
159159
val bound = adjust(rawBound)
160160
bound.exists
161161
&& addOneBound(param, bound, isUpper) && others.forall(addOneBound(_, bound, isUpper))
162-
.reporting(i"added $description = $result$location", constr)
162+
.showing(i"added $description = $result$location", constr)
163163
end addBoundTransitively
164164

165165
protected def addLess(p1: TypeParamRef, p2: TypeParamRef)(using Context): Boolean = {

compiler/src/dotty/tools/dotc/core/Decorators.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ object Decorators {
232232
}
233233

234234
extension [T](x: T)
235-
def reporting(
235+
def showing(
236236
op: WrappedResult[T] ?=> String,
237237
printer: config.Printers.Printer = config.Printers.default): T = {
238238
printer.println(op(using WrappedResult(x)))

compiler/src/dotty/tools/dotc/core/GadtConstraint.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ final class ProperGadtConstraint private(
125125

126126
// The replaced symbols are picked up here.
127127
addToConstraint(poly1, tvars)
128-
.reporting(i"added to constraint: [$poly1] $params%, %\n$debugBoundsDescription", gadts)
128+
.showing(i"added to constraint: [$poly1] $params%, %\n$debugBoundsDescription", gadts)
129129
}
130130

131131
override def addBound(sym: Symbol, bound: Type, isUpper: Boolean)(using Context): Boolean = {
@@ -158,7 +158,7 @@ final class ProperGadtConstraint private(
158158
case bound =>
159159
addBoundTransitively(symTvar.origin, bound, isUpper)
160160
}
161-
).reporting({
161+
).showing({
162162
val descr = if (isUpper) "upper" else "lower"
163163
val op = if (isUpper) "<:" else ">:"
164164
i"adding $descr bound $sym $op $bound = $result"
@@ -187,7 +187,7 @@ final class ProperGadtConstraint private(
187187
case tb => tb
188188
}
189189
retrieveBounds
190-
//.reporting(i"gadt bounds $sym: $result", gadts)
190+
//.showing(i"gadt bounds $sym: $result", gadts)
191191
//.ensuring(containsNoInternalTypes(_))
192192
}
193193

compiler/src/dotty/tools/dotc/core/OrderingConstraint.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
506506
merge(this.boundsMap, that.boundsMap, mergeEntries),
507507
merge(this.lowerMap, that.lowerMap, mergeParams),
508508
merge(this.upperMap, that.upperMap, mergeParams))
509-
}.reporting(i"constraint merge $this with $other = $result", constr)
509+
}.showing(i"constraint merge $this with $other = $result", constr)
510510

511511
def rename(tl: TypeLambda)(using Context): OrderingConstraint = {
512512
assert(contains(tl))

compiler/src/dotty/tools/dotc/core/TypeOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ object TypeOps:
370370
}
371371
if needsRefinement then
372372
RefinedType(parent, decl.name, decl.info)
373-
.reporting(i"add ref $parent $decl --> " + result, typr)
373+
.showing(i"add ref $parent $decl --> " + result, typr)
374374
else parent
375375
}
376376

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ object Inliner {
203203
ref(meth).appliedToTypes(targs).appliedToArgss(prefss)
204204
.withSpan(mdef.rhs.span.startPos))(
205205
using ctx.withOwner(retainer)))
206-
.reporting(i"retainer for $meth: $result", inlining)
206+
.showing(i"retainer for $meth: $result", inlining)
207207

208208
/** Replace `Inlined` node by a block that contains its bindings and expansion */
209209
def dropInlined(inlined: Inlined)(using Context): Tree =
@@ -853,7 +853,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(using Context) {
853853
if (idx >= 0 && idx < args.length) {
854854
def finish(arg: Tree) =
855855
new TreeTypeMap().transform(arg) // make sure local bindings in argument have fresh symbols
856-
.reporting(i"projecting $tree -> $result", inlining)
856+
.showing(i"projecting $tree -> $result", inlining)
857857
val arg = args(idx)
858858
if (precomputed)
859859
if (isElideableExpr(arg)) finish(arg)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2768,7 +2768,7 @@ class Typer extends Namer
27682768
typed(untpd.Select(untpd.New(untpd.TypedSplice(tpt)), nme.CONSTRUCTOR), pt)
27692769
}
27702770
recur(tycon, pt)
2771-
.reporting(i"try new $tree -> $result", typr)
2771+
.showing(i"try new $tree -> $result", typr)
27722772
}
27732773
} { (nu, nuState) =>
27742774
if (nu.isEmpty) fallBack(nuState)

0 commit comments

Comments
 (0)