aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/util/Stats.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-09-08 20:11:45 +0200
committerMartin Odersky <odersky@gmail.com>2016-10-02 16:11:21 +0200
commitae67c35263287cd4cd987d4221cb030004f548e6 (patch)
tree923c394d62ae74fdc9124171d41046657022dd96 /src/dotty/tools/dotc/util/Stats.scala
parentbf3345a9d25e464975dd5000186c766de842f020 (diff)
downloaddotty-ae67c35263287cd4cd987d4221cb030004f548e6.tar.gz
dotty-ae67c35263287cd4cd987d4221cb030004f548e6.tar.bz2
dotty-ae67c35263287cd4cd987d4221cb030004f548e6.zip
Add accessors for non-public members accessed from inline methods
This makes existsing uses of inline mostly compile. Todo: Verify that stdlib can be compiled. Todo: Implement accessors for assignments to priavte variables Todo: Figure out what to do with accesses to private types.
Diffstat (limited to 'src/dotty/tools/dotc/util/Stats.scala')
-rw-r--r--src/dotty/tools/dotc/util/Stats.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/util/Stats.scala b/src/dotty/tools/dotc/util/Stats.scala
index e06695dfb..b7e0996f5 100644
--- a/src/dotty/tools/dotc/util/Stats.scala
+++ b/src/dotty/tools/dotc/util/Stats.scala
@@ -24,7 +24,7 @@ import collection.mutable
def record(fn: String, n: Int = 1) =
if (enabled) doRecord(fn, n)
- def doRecord(fn: String, n: Int) =
+ private def doRecord(fn: String, n: Int) =
if (monitored) {
val name = if (fn.startsWith("member-")) "member" else fn
hits(name) += n