File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,14 @@ class InterceptedMethods extends MiniPhaseTransform { thisTransform =>
64
64
// this should be removed if we have guarantee that ## will get Apply node
65
65
override def transformSelect (tree : tpd.Select )(implicit ctx : Context , info : TransformerInfo ): Tree = {
66
66
if (tree.symbol.isTerm && poundPoundMethods.contains(tree.symbol.asTerm)) {
67
- val rewrite = PoundPoundValue (tree.qualifier)
67
+ val rewrite = poundPoundValue (tree.qualifier)
68
68
ctx.log(s " $phaseName rewrote $tree to $rewrite" )
69
69
rewrite
70
70
}
71
71
else tree
72
72
}
73
73
74
- private def PoundPoundValue (tree : Tree )(implicit ctx : Context ) = {
74
+ private def poundPoundValue (tree : Tree )(implicit ctx : Context ) = {
75
75
val s = tree.tpe.widen.typeSymbol
76
76
if (s == defn.NullClass ) Literal (Constant (0 ))
77
77
else {
@@ -108,7 +108,7 @@ class InterceptedMethods extends MiniPhaseTransform { thisTransform =>
108
108
val rewrite : Tree = tree.fun match {
109
109
case Select (qual, name) =>
110
110
if (poundPoundMethods contains tree.fun.symbol.asTerm) {
111
- PoundPoundValue (qual)
111
+ poundPoundValue (qual)
112
112
} else if (Any_comparisons contains tree.fun.symbol.asTerm) {
113
113
if (tree.fun.symbol eq defn.Any_== ) {
114
114
qual.select(defn.Any_equals ).appliedToArgs(tree.args)
You can’t perform that action at this time.
0 commit comments