-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9045 from eed3si9n/wip/wait
- Loading branch information
Showing
4 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(Wakes up all threads that are waiting on the receiver object's monitor), Text(.)))), Text( | ||
)))))) | ||
) | ||
List(scala.AnyRef#wait, scala.AnyRef#wait, scala.AnyRef#wait) | ||
Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Chain(List(Text(See ), Link(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--,Text(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--)))), Text(.)))), Text( | ||
)))))) | ||
) | ||
Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(See ), Link(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-,Text(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)), Text( | ||
), Text())))))))) | ||
) | ||
Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Chain(List(Text(See ), Link(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-,Text(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-)))), Text(.)))), Text( | ||
)))))) | ||
) | ||
Done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Scala (https://www.scala-lang.org) | ||
* | ||
* Copyright EPFL and Lightbend, Inc. | ||
* | ||
* Licensed under Apache License 2.0 | ||
* (http://www.apache.org/licenses/LICENSE-2.0). | ||
* | ||
* See the NOTICE file distributed with this work for | ||
* additional information regarding copyright ownership. | ||
*/ | ||
|
||
import scala.tools.nsc.{ScalaDocReporter, doc, io} | ||
import scala.tools.nsc.doc.DocFactory | ||
import scala.tools.nsc.doc.model._ | ||
import scala.tools.nsc.reporters.ConsoleReporter | ||
import scala.tools.partest.ScaladocModelTest | ||
|
||
object Test extends ScaladocModelTest { | ||
def destinationDir = "target/anyref" | ||
override def code = """class A""" | ||
override def scaladocSettings = | ||
s"-doc-no-compile src/library-aux -d ${destinationDir}" | ||
|
||
def testModel(rootPackage: Package): Unit = { | ||
import access._ | ||
val t = rootPackage._package("scala")._class("AnyRef") | ||
|
||
val notifyAll = t._method("notifyAll") | ||
println(notifyAll.comment) | ||
|
||
val List(wait1, wait2, wait3) = t._methods("wait") | ||
println(List(wait1, wait2, wait3)) | ||
println(wait1.comment) | ||
println(wait2.comment) | ||
println(wait3.comment) | ||
} | ||
} |