Skip to content

Commit e3191b7

Browse files
committed
Style fixes in InterceptedMethods
1 parent ee29f47 commit e3191b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dotty/tools/dotc/transform/InterceptedMethods.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ class InterceptedMethods extends MiniPhaseTransform { thisTransform =>
6464
// this should be removed if we have guarantee that ## will get Apply node
6565
override def transformSelect(tree: tpd.Select)(implicit ctx: Context, info: TransformerInfo): Tree = {
6666
if (tree.symbol.isTerm && poundPoundMethods.contains(tree.symbol.asTerm)) {
67-
val rewrite = PoundPoundValue(tree.qualifier)
67+
val rewrite = poundPoundValue(tree.qualifier)
6868
ctx.log(s"$phaseName rewrote $tree to $rewrite")
6969
rewrite
7070
}
7171
else tree
7272
}
7373

74-
private def PoundPoundValue(tree: Tree)(implicit ctx: Context) = {
74+
private def poundPoundValue(tree: Tree)(implicit ctx: Context) = {
7575
val s = tree.tpe.widen.typeSymbol
7676
if (s == defn.NullClass) Literal(Constant(0))
7777
else {
@@ -108,7 +108,7 @@ class InterceptedMethods extends MiniPhaseTransform { thisTransform =>
108108
val rewrite: Tree = tree.fun match {
109109
case Select(qual, name) =>
110110
if (poundPoundMethods contains tree.fun.symbol.asTerm) {
111-
PoundPoundValue(qual)
111+
poundPoundValue(qual)
112112
} else if (Any_comparisons contains tree.fun.symbol.asTerm) {
113113
if (tree.fun.symbol eq defn.Any_==) {
114114
qual.select(defn.Any_equals).appliedToArgs(tree.args)

0 commit comments

Comments
 (0)