diff --git a/docs/developers/symbol-information.html b/docs/developers/symbol-information.html index a61507aad..4bd163dc3 100644 --- a/docs/developers/symbol-information.html +++ b/docs/developers/symbol-information.html @@ -334,42 +334,42 @@

Symbol("scala/Some#")).take(5) // res29: Set[SymbolInformation] = HashSet( -// scala/Option#isDefined(). => final method isDefined: Boolean, -// scala/Any#`==`(). => final method ==(that: Any): Boolean, -// scala/Product#productElement(). => abstract method productElement(n: Int): Any, +// scala/Option#exists(). => @inline final method exists(p: Function1[A, Boolean]): Boolean, +// scala/Option#toLeft(). => @inline final method toLeft[X](right: => X): Either[A, X], +// scala/Some#canEqual(). => method canEqual(x$1: Any): Boolean, // scala/Any#equals(). => abstract method equals(that: Any): Boolean, -// scala/Any#`##`(). => final method ##(): Int +// scala/Any#`==`(). => final method ==(that: Any): Boolean // ) getClassMethods(Symbol("java/lang/String#")).take(5) // res30: Set[SymbolInformation] = HashSet( -// java/lang/Object#finalize(). => protected method finalize(): Unit, -// java/lang/Object#hashCode(). => method hashCode(): Int, -// java/lang/Object#finalize(). => protected method finalize(): Unit, -// java/lang/String#indexOf(+3). => method indexOf(param0: String, param1: Int): Int, -// java/lang/String#replaceAll(). => method replaceAll(param0: String, param1: String): String +// java/lang/String#toLowerCase(+1). => method toLowerCase(): String, +// java/lang/String#contains(). => method contains(param0: CharSequence): Boolean, +// java/lang/String#nonSyncContentEquals(). => private method nonSyncContentEquals(param0: AbstractStringBuilder): Boolean, +// java/lang/String#format(). => static method format(param0: String, param1: Object*): String, +// java/lang/String#checkBoundsOffCount(). => private[lang] static method checkBoundsOffCount(param0: Int, param1: Int, param2: Int): Unit // ) getClassMethods(Symbol("scala/collection/immutable/List#")).take(5) // res31: Set[SymbolInformation] = HashSet( -// scala/collection/LinearSeqOps#exists(). => method exists(p: Function1[A, Boolean]): Boolean, -// scala/collection/IterableOnceOps#flatten(). => abstract method flatten[B](implicit asIterable: Function1[A, IterableOnce[B]]): CC[B], -// scala/collection/IterableOps#scan(). => method scan[B >: A](z: B)(op: Function2[B, B, B]): CC[B], -// scala/collection/IterableOps#collect(). => method collect[B](pf: PartialFunction[A, B]): CC[B], -// scala/collection/SeqOps#`++:`(). => @inline final method ++:[B >: A](prefix: IterableOnce[B]): CC[B] +// scala/collection/Seq#iterableFactory(). => method iterableFactory: SeqFactory[Seq], +// scala/Any#getClass(). => final method getClass(): Class, +// scala/Any#asInstanceOf(). => final method asInstanceOf[A](): A, +// scala/Any#`==`(). => final method ==(that: Any): Boolean, +// scala/collection/IterableOnceOps#reduceLeftOption(). => method reduceLeftOption[B >: A](op: Function2[B, A, B]): Option[B] // )

For Java methods, use SymbolInformation.isStatic to separate static methods from non-static methods.

getClassMethods(Symbol("java/lang/String#")).filter(_.isStatic).take(3)
 // res32: Set[SymbolInformation] = HashSet(
-//   java/lang/String#valueOf(+3). => static method valueOf(param0: Boolean): String,
-//   java/lang/String#copyValueOf(+1). => static method copyValueOf(param0: Array[Char]): String,
-//   java/lang/String#valueOf(+4). => static method valueOf(param0: Char): String
+//   java/lang/String#valueOf(+6). => static method valueOf(param0: Long): String,
+//   java/lang/Object#registerNatives(). => private static method registerNatives(): Unit,
+//   java/lang/String#valueOf(+5). => static method valueOf(param0: Int): String
 // )
 getClassMethods(Symbol("java/lang/String#")).filter(!_.isStatic).take(3)
 // res33: Set[SymbolInformation] = HashSet(
-//   java/lang/String#offsetByCodePoints(). => method offsetByCodePoints(param0: Int, param1: Int): Int,
-//   java/lang/String#split(+1). => method split(param0: String): Array[String],
-//   java/lang/Object#equals(). => method equals(param0: Object): Boolean
+//   java/lang/String#getBytes(). => method getBytes(param0: Int, param1: Int, param2: Array[Byte], param3: Int): Unit,
+//   java/lang/String#lastIndexOf(+3). => method lastIndexOf(param0: String, param1: Int): Int,
+//   java/lang/Object#wait(+2). => final method wait(param0: Long, param1: Int): Unit
 // )
 

Lookup class primary constructor

@@ -482,9 +482,9 @@

// ) getMethodOverloads(Symbol("java/io/PrintStream#"), "print").take(3) // res47: Set[SymbolInformation] = HashSet( -// java/io/PrintStream#print(+1). => method print(param0: Char): Unit, -// java/io/PrintStream#print(+4). => method print(param0: Float): Unit, -// java/io/PrintStream#print(+2). => method print(param0: Int): Unit +// java/io/PrintStream#print(+7). => method print(param0: String): Unit, +// java/io/PrintStream#print(+5). => method print(param0: Double): Unit, +// java/io/PrintStream#print(). => method print(param0: Boolean): Unit // )

Overloaded methods can be inherited from supertypes.

diff --git a/docs/users/installation.html b/docs/users/installation.html index d11f69c64..50536bb59 100644 --- a/docs/users/installation.html +++ b/docs/users/installation.html @@ -368,7 +368,7 @@

# Should say 0.13.0

Help

-
Scalafix 0.13.0
+
Scalafix 0.13.0+2-f2818e57-SNAPSHOT
 Usage: scalafix [options] [<path> ...]
 
 Scalafix is a refactoring and linting tool. Scalafix
@@ -540,10 +540,10 @@ 

// project/plugins.sbt addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.13.0") +resolvers += Resolver.sonatypeRepo("snapshots") -+dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.13.0" ++dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.13.0+2-f2818e57-SNAPSHOT"

If using the command-line interface

-
cs launch ch.epfl.scala:scalafix-cli_2.13.15:0.13.0 -r sonatype:snapshots --main scalafix.cli.Cli -- --help
+
cs launch ch.epfl.scala:scalafix-cli_2.13.15:0.13.0+2-f2818e57-SNAPSHOT -r sonatype:snapshots --main scalafix.cli.Cli -- --help