diff options
author | Paul Phillips <paulp@improving.org> | 2011-09-19 15:48:23 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-09-19 15:48:23 +0000 |
commit | e21d9b0a3907ee59b4d05489ecaf0fbf6467e27f (patch) | |
tree | d5d614e57cf207a8c43755ba7abeccbcc122725e /tools/proxy-report | |
parent | 5637b22d21ccc1abe70e16e87c1607cd3acb9b3c (diff) | |
download | scala-e21d9b0a3907ee59b4d05489ecaf0fbf6467e27f.tar.gz scala-e21d9b0a3907ee59b4d05489ecaf0fbf6467e27f.tar.bz2 scala-e21d9b0a3907ee59b4d05489ecaf0fbf6467e27f.zip |
Added tool for analyzing forwarder classes.
If you build and then run
tools/proxy-report <outdir>
you will be given files revealing interesting things like:
/** With respect to trait SetLike, trait SetProxyLike does NOT wrap:
*/
trait Unwrapped {
def +(elem1: A,elem2: A,elems: A*): This
def ++(elems: scala.collection.GenTraversableOnce[A]): This
def subsets(len: Int): Iterator[This]
def subsets: Iterator[This]
protected override def newBuilder: scala.collection.mutable.Builder[A,This]
protected override def parCombiner: scala.collection.parallel.Combiner[A,scala.collection.parallel.ParSet[A]]
}
Lots more possible here, for now I just want to get a backstop
against our worst transgressions (not just in the library -- look
at SimpleTypeProxy, if you dare!) I will inquire about the results
separately, so no review.
Diffstat (limited to 'tools/proxy-report')
-rwxr-xr-x | tools/proxy-report | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/proxy-report b/tools/proxy-report new file mode 100755 index 0000000000..589803d6ea --- /dev/null +++ b/tools/proxy-report @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# + +$(dirname $BASH_SOURCE)/../build/pack/bin/scala scala.tools.nsc.util.ProxyReportRunner "$@"
\ No newline at end of file |