Skip to content

Tastydoc #7664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 173 commits into from
Dec 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
92e1a17
Fetched master
BryanAbate Jun 15, 2019
970e288
First try at extracting class infos
Jan 29, 2019
0f6c4c9
Started TreeOps doc + upgrade to 0.14
BryanAbate Feb 20, 2019
92ffc5b
More doc on TreeOps + fixed Ident matching
BryanAbate Feb 22, 2019
d7a9014
Refactored to string instead of print and distinction between types, etc
Feb 22, 2019
6cc64a6
Quick commit before refactoring to container
Feb 25, 2019
e3cd871
Refactored to container
Feb 26, 2019
eb67632
Markdown helper + using showcode for types
Mar 1, 2019
8d51ef6
Markdown output first try
Mar 1, 2019
fede540
def/val prefix
Mar 1, 2019
4b3a74e
User documentation class for test added
Mar 5, 2019
78a256c
Before rebase
Mar 7, 2019
81c2265
Started parsing user doc
Mar 8, 2019
085ffba
try to remove node
BryanAbate Mar 21, 2019
83c35ba
try to remove node
BryanAbate Mar 21, 2019
68b5aca
try to remove node
BryanAbate Mar 21, 2019
9e14062
post markdown
BryanAbate Mar 26, 2019
6454219
Before transform to entities
BryanAbate Mar 27, 2019
cc50a97
Before moving to internal
BryanAbate Mar 30, 2019
20e3629
Refactored to internal
BryanAbate Mar 30, 2019
d11d110
Work on representations
BryanAbate Apr 1, 2019
e4cbbe4
Started Representation to Md
BryanAbate Apr 2, 2019
348ed16
First try at Representation to md
BryanAbate Apr 3, 2019
df11080
Fixed isInstanceOf + bacic typeDef printing
BryanAbate Apr 3, 2019
3d26f61
Done constructor
BryanAbate Apr 3, 2019
58f48f7
Type Params wip
BryanAbate Apr 10, 2019
aa90a82
Started comment parsing + minor fixes
BryanAbate Apr 11, 2019
6436ca0
Add flexmark SBT config
abgruszecki Apr 11, 2019
e32864b
First try at comment parsing using dotty-doc tool
BryanAbate Apr 12, 2019
9a9fcae
Printing of comment + testing doc with List from Scala
BryanAbate Apr 12, 2019
8964796
parents draft + object different than class
BryanAbate Apr 15, 2019
d745800
Before trying to modify dottydoc files
BryanAbate Apr 15, 2019
7981762
Added TODO list
BryanAbate Apr 16, 2019
b454dac
Title for members
BryanAbate Apr 16, 2019
4520ac6
Render userdoc as MD first draft
BryanAbate Apr 16, 2019
9187623
Fixed line return
BryanAbate Apr 16, 2019
11624da
Before meeting
BryanAbate Apr 17, 2019
a4c6e7f
Before writing to files test
BryanAbate Apr 29, 2019
ceafb71
First try at mutliple files
BryanAbate Apr 29, 2019
a99a602
Started working on references
BryanAbate Apr 30, 2019
5948932
Work on TypeReferences
BryanAbate May 2, 2019
04c00a8
Moving from Ref to Reference
BryanAbate May 3, 2019
2c9b5e2
Md test on GH
BryanAbate May 3, 2019
9331949
Md change
BryanAbate May 3, 2019
8f57300
Started report + scope modifiers
BryanAbate May 6, 2019
15337b8
Done case
BryanAbate May 6, 2019
8c7eb6a
Done trait
BryanAbate May 6, 2019
1757b38
Parents are reference + before moving constructor to Representation
BryanAbate May 7, 2019
ec949ff
Parents removed Object + before moving to html code block
BryanAbate May 7, 2019
d84852f
test md on GH
BryanAbate May 9, 2019
8e23a3f
Fixed linking
BryanAbate May 9, 2019
6edd7b1
Fixed link for types directly defined in def
BryanAbate May 9, 2019
34f988a
Some cleaning
BryanAbate May 9, 2019
53f0be5
comitting useless md files
BryanAbate May 9, 2019
96f520a
Merged master and fixed broken things:
BryanAbate May 9, 2019
ecc1c0f
Sorting members by name
BryanAbate May 10, 2019
3e52756
Done TODO in Main
BryanAbate May 10, 2019
8f4d055
Started output rework
BryanAbate May 10, 2019
9ef203c
Report + added inline modifier
BryanAbate May 12, 2019
04fdc69
Moved object to ClassRepresentation
BryanAbate May 14, 2019
0f26d48
Inner class own file + linking
BryanAbate May 14, 2019
e2d72c4
Before breaking everything
BryanAbate May 14, 2019
90fae75
Tried to do select package linking + userdoc syntax + main extended
BryanAbate May 14, 2019
658a8d4
Temporary fix for type alias
BryanAbate May 15, 2019
57d2138
Tried to use companion module
BryanAbate May 16, 2019
f8c87f3
Fixed companion + reworked members output
BryanAbate May 16, 2019
7d5b748
Fixed companion + reworked members output
BryanAbate May 16, 2019
aca32a7
Done parent field
BryanAbate May 16, 2019
58f6ab1
Improved constructor recognition + annotations for all
BryanAbate May 16, 2019
87e44a9
Annotations + knownsubclasses
BryanAbate May 17, 2019
6899df1
Reworked known subclasses to not use child
BryanAbate May 20, 2019
69b0e6a
test md
BryanAbate May 20, 2019
fc66a4d
Small fixes + companion kind
BryanAbate May 20, 2019
4840789
Reworked knownsubclasses
BryanAbate May 21, 2019
b495ab2
Work on type lambda
BryanAbate May 21, 2019
4a96806
zzz folder
BryanAbate May 21, 2019
de2a6a4
just delete report.pdf
BryanAbate May 23, 2019
7f7f883
Split into TastyExtractor + TastyTypeConverter
BryanAbate May 21, 2019
ac0db2d
Worked on refactoring some files seemed to have disapeared
BryanAbate May 21, 2019
7459313
Some deleted files
BryanAbate May 21, 2019
ba764bf
Fixed missing output files + fixed object in parents for some
BryanAbate May 21, 2019
14707ac
EmulatedPackage now emulates seemlessly PackageRepresentation
BryanAbate May 22, 2019
3c0ef46
Done linking in userdoc, need fix for object (to ask) + offset
BryanAbate May 22, 2019
7a6d390
R Introduction first draft
BryanAbate May 23, 2019
6912152
R work on output
BryanAbate May 23, 2019
65c97c4
Offset still not fixed
BryanAbate May 23, 2019
7e9646b
EmulatedPackage now written to file in traverse
BryanAbate May 23, 2019
2bb86a4
R work
BryanAbate May 23, 2019
a2dcb3d
R first draft nearly done
BryanAbate May 23, 2019
dfdc988
R pdf
BryanAbate May 23, 2019
a20db90
Fixed title
BryanAbate May 23, 2019
2c97c7f
No more global object
BryanAbate May 27, 2019
c220e94
Removed some todos
BryanAbate May 27, 2019
f6cfcc3
Fixed modified dottydocsettings in Build.scala
BryanAbate May 27, 2019
3935a3a
Fix
BryanAbate May 27, 2019
5f1fa28
Done some doc
BryanAbate May 27, 2019
7699877
New bug in inheritance
BryanAbate May 27, 2019
c483b4b
Fixed tests
BryanAbate May 28, 2019
00d5db1
R New intro
BryanAbate May 28, 2019
13fad66
Removed color in show + exceeding \n in comments
BryanAbate May 28, 2019
9c91831
R features
BryanAbate May 28, 2019
93317e3
R high level arch
BryanAbate May 28, 2019
7e884a4
R started low level arch draft
BryanAbate May 28, 2019
33e2609
R Reworked a bit low level arch
BryanAbate May 29, 2019
74f7416
Added package in output
BryanAbate May 29, 2019
90940a8
R problems
BryanAbate May 29, 2019
8967270
R problems + start comparison
BryanAbate May 29, 2019
faaafae
Fixed space in comments
BryanAbate May 29, 2019
802b173
R v3
BryanAbate Jun 3, 2019
1cb0676
P init
BryanAbate Jun 3, 2019
1ee6826
ignore
BryanAbate Jun 3, 2019
41a0531
R small change in fw
BryanAbate Jun 3, 2019
e05c9ad
Fixed Markdown Parser + R complex type
BryanAbate Jun 4, 2019
e99fd7e
Added Dotty + don't take Object def
BryanAbate Jun 4, 2019
bdd32ad
Removed Any inheritance + local Flag
BryanAbate Jun 4, 2019
d0dcf23
Removed $ in printing not linking
BryanAbate Jun 4, 2019
01976c5
$ is now in object name in ClassRep
BryanAbate Jun 4, 2019
50765ab
Rerun on Dotty still need fix on owner
BryanAbate Jun 4, 2019
d62bded
test md
BryanAbate Jun 4, 2019
60b8c59
Removed some TODOs
BryanAbate Jun 4, 2019
634cf77
R some work
BryanAbate Jun 5, 2019
c2dfb69
R v4
BryanAbate Jun 5, 2019
474c103
P full struct
BryanAbate Jun 6, 2019
fc90504
R English correction
BryanAbate Jun 6, 2019
e8afdbc
Filtering inline + Refinement working + $ in print
BryanAbate Jun 6, 2019
b20fd20
Support for var
BryanAbate Jun 6, 2019
7a25c70
Fixed default appearing
BryanAbate Jun 6, 2019
8d7f686
Removed val from objects + private now show
BryanAbate Jun 6, 2019
25b991c
Don't display private and make modifiers accessible from class members
BryanAbate Jun 6, 2019
32dd573
Readme
BryanAbate Jun 6, 2019
3026f19
Convention for --
BryanAbate Jun 6, 2019
64bca30
Harmonization
BryanAbate Jun 6, 2019
dd47f51
R Dottydoc bugs+1
BryanAbate Jun 6, 2019
2ccb42d
Probably final report version
BryanAbate Jun 7, 2019
eb47d6b
Some cleaning
BryanAbate Jun 7, 2019
920fadb
Changed Weird output
BryanAbate Jun 7, 2019
2ecc7c0
Fixed lst using wrong color
BryanAbate Jun 7, 2019
7d144b1
Added link to annotations in report
BryanAbate Jun 7, 2019
51dd415
Presentation first draft
BryanAbate Jun 7, 2019
b4eefba
POSIX compliant utility argument
BryanAbate Jun 10, 2019
1bfebe1
Forgot to remove things in doc Main
BryanAbate Jun 10, 2019
4de61f2
Found bug in linking in userdoc + delete files from SemanticDB
BryanAbate Jun 10, 2019
84958f8
TOFIX Bug in Dotty when calling owner
BryanAbate Jun 11, 2019
8e5e338
Removed some TODOs
BryanAbate Jun 11, 2019
42d120a
Removed Local Flag
BryanAbate Jun 11, 2019
cff97a9
Typo in test
BryanAbate Jun 11, 2019
3859c15
Moved generated doc to tastydoc/documentation folder
BryanAbate Jun 11, 2019
7d03e74
Generated files in new doc folder
BryanAbate Jun 11, 2019
b771ee4
Added scalaShadowing
BryanAbate Jun 11, 2019
6dc8653
Link to Dotty documentation in report
BryanAbate Jun 11, 2019
378a18e
All packages to link done
BryanAbate Jun 11, 2019
e407a73
Small wording in report
BryanAbate Jun 11, 2019
0d9d210
Removed some TODOs
BryanAbate Jun 11, 2019
4c1d363
Some more TODOs
BryanAbate Jun 11, 2019
8358484
Removed commented lines that was not useful anymore
BryanAbate Jun 15, 2019
2cb4005
Modified test class
BryanAbate Jun 15, 2019
b2e9709
Using symbol.fields now
BryanAbate Jun 15, 2019
1fd8606
committing community-build
BryanAbate Jun 15, 2019
1a07002
Fixed path after rebase
BryanAbate Jun 15, 2019
75abb0a
Update flexmark-java
BryanAbate Jun 15, 2019
0050646
Merge branch 'flexmark-update' into tastydoc
BryanAbate Jun 15, 2019
f5ff10f
Dotty 0.16.0-RC3 doc
BryanAbate Jun 15, 2019
2f3951f
Bug in owner fixed in Dotty
BryanAbate Jun 15, 2019
1067cb4
Remove buggy implementation of known subclasses
BryanAbate Jun 15, 2019
458cf4f
Updated doc again
BryanAbate Jun 15, 2019
4e38e23
New methods for knowsubclasses
BryanAbate Jun 15, 2019
d5df465
Cleaned Type matching
BryanAbate Jun 15, 2019
3d34f99
Cleaned import
BryanAbate Jun 15, 2019
ea0e768
Don't print if empty constructor is the only one
BryanAbate Jun 18, 2019
64d9075
Fixed implicit
BryanAbate Jun 18, 2019
e13fc2d
P update
BryanAbate Jun 18, 2019
44f8e03
Don't display inline if annots force it
BryanAbate Jun 18, 2019
9e4ee9f
Merge branch 'master' into tastydoc
abgruszecki Dec 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,37 @@ community-build/sbt-dotty-sbt

# Vulpix output files
*.check.out

tastydoc/report/report\.aux

tastydoc/report/report\.fdb_latexmk

tastydoc/report/report\.fls

tastydoc/report/report\.synctex\.gz

tastydoc/report/report\.toc

tastydoc/report/report\.out

tastydoc/report/presentation/presentation\.aux

tastydoc/report/presentation/presentation\.fdb_latexmk

tastydoc/report/presentation/presentation\.fls

tastydoc/report/presentation/presentation\.nav

tastydoc/report/presentation/presentation\.out

tastydoc/report/presentation/presentation\.snm

tastydoc/report/presentation/presentation\.synctex\.gz

tastydoc/report/presentation/presentation\.toc

tastydoc/dotty-0\.15\.0-RC1/

tastydoc/report/presentation/presentation\.vrb

tastydoc/dotty-0\.16\.0-RC3/
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ val `dotty-bench-bootstrapped` = Build.`dotty-bench-bootstrapped`
val `tasty-core` = Build.`tasty-core`
val `tasty-core-bootstrapped` = Build.`tasty-core-bootstrapped`
val `tasty-core-scala2` = Build.`tasty-core-scala2`
val `dotty-tastydoc` = Build.`dotty-tastydoc`
val `dotty-tastydoc-input` = Build.`dotty-tastydoc-input`
val `scala-library` = Build.`scala-library`
val `scala-compiler` = Build.`scala-compiler`
val `scala-reflect` = Build.`scala-reflect`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package comment
import dotty.tools.dottydoc.util.syntax._
import dotty.tools.dotc.core.Contexts.Context
import dotty.tools.dotc.util.Spans._
import com.vladsch.flexmark.ast.{ Node => MarkdownNode }
import com.vladsch.flexmark.util.ast.{ Node => MarkdownNode }
import HtmlParsers._
import util.MemberLookup

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import dotty.tools.dotc.printing.Formatting.hl
import scala.collection.mutable
import dotty.tools.dotc.config.Printers.dottydoc
import scala.util.matching.Regex
import com.vladsch.flexmark.ast.{ Node => MarkdownNode }
import com.vladsch.flexmark.util.ast.{ Node => MarkdownNode }
import com.vladsch.flexmark.parser.{ Parser => MarkdownParser }

trait CommentParser extends util.MemberLookup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import dotc.util.Spans._
import dotty.tools.dottydoc.util.syntax._
import util.MemberLookup

import com.vladsch.flexmark.ast.{ Node => MarkdownNode }
import com.vladsch.flexmark.util.ast.{ Node => MarkdownNode}
import com.vladsch.flexmark.html.HtmlRenderer
import com.vladsch.flexmark.parser.Parser
import com.vladsch.flexmark.util.sequence.CharSubSequence
Expand All @@ -17,7 +17,9 @@ object HtmlParsers {

implicit class StringToMarkdown(val text: String) extends AnyVal {
def toMarkdown(origin: Entity)(implicit ctx: Context): MarkdownNode = {
import com.vladsch.flexmark.ast.{ Link, Visitor, VisitHandler, NodeVisitor }
import com.vladsch.flexmark.ast.Link
import com.vladsch.flexmark.util.ast.{Visitor, VisitHandler, NodeVisitor }


val inlineToHtml = InlineToHtml(origin)

Expand Down Expand Up @@ -149,4 +151,4 @@ object HtmlParsers {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package comment
* @note calling `shorten` **will** mutate the Markdown AST node.
*/
class MarkdownShortener {
import com.vladsch.flexmark.util.ast._
import com.vladsch.flexmark.ast._

def shorten(node: Node, maxLen: Int = 150): Node = {
Expand Down Expand Up @@ -80,4 +81,4 @@ class MarkdownShortener {
nodeVisitor.visit(node)
node
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dotty.tools
package dottydoc
package staticsite

import com.vladsch.flexmark.util.ast._
import com.vladsch.flexmark.ast._
import com.vladsch.flexmark.util.sequence.CharSubSequence

Expand All @@ -16,4 +17,4 @@ object MarkdownCodeBlockVisitor {
})
)
.visit(node)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package dottydoc
package staticsite

import com.vladsch.flexmark.ast._
import com.vladsch.flexmark.util.ast._
import com.vladsch.flexmark.util.sequence.{BasedSequence, CharSubSequence}
import model.{Def, Package, TypeAlias, Val}
import dottydoc.util.MemberLookup
Expand Down Expand Up @@ -42,4 +43,4 @@ object MarkdownLinkVisitor {
})
)
.visit(node)
}
}
37 changes: 35 additions & 2 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,28 @@ object Build {
dottyLib + File.pathSeparator + findArtifactPath(externalDeps, "scala-library")
}

lazy val tastydocSettings = Seq(
baseDirectory in (Compile, run) := baseDirectory.value / "..",
baseDirectory in Test := baseDirectory.value / "..",
libraryDependencies +=
"com.novocode" % "junit-interface" % "0.11",
libraryDependencies ++= {
val flexmarkVersion = "0.42.12"
Seq(
"com.vladsch.flexmark" % "flexmark-all" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-gfm-tasklist" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-gfm-tables" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-autolink" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-anchorlink" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-emoji" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-gfm-strikethrough" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-yaml-front-matter" % flexmarkVersion,
Dependencies.`jackson-dataformat-yaml`,
"nl.big-o" % "liqp" % "0.6.7"
)
}
)

def dottyDocSettings(implicit mode: Mode) = Seq(
baseDirectory in (Compile, run) := baseDirectory.value / "..",
baseDirectory in Test := baseDirectory.value / "..",
Expand Down Expand Up @@ -414,9 +436,9 @@ object Build {
}.evaluated,

libraryDependencies ++= {
val flexmarkVersion = "0.28.32"
val flexmarkVersion = "0.42.12"
Seq(
"com.vladsch.flexmark" % "flexmark" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-all" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-gfm-tasklist" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-gfm-tables" % flexmarkVersion,
"com.vladsch.flexmark" % "flexmark-ext-autolink" % flexmarkVersion,
Expand Down Expand Up @@ -1021,6 +1043,9 @@ object Build {
lazy val `dotty-bench` = project.in(file("bench")).asDottyBench(NonBootstrapped)
lazy val `dotty-bench-bootstrapped` = project.in(file("bench")).asDottyBench(Bootstrapped)

lazy val `dotty-tastydoc` = project.in(file("tastydoc")).asDottyTastydoc(Bootstrapped)
lazy val `dotty-tastydoc-input` = project.in(file("tastydoc/input")).asDottyTastydocInput(Bootstrapped)

// Depend on dotty-library so that sbt projects using dotty automatically
// depend on the dotty-library
lazy val `scala-library` = project.
Expand Down Expand Up @@ -1329,6 +1354,14 @@ object Build {
settings(commonBenchmarkSettings).
enablePlugins(JmhPlugin)

def asDottyTastydoc(implicit mode: Mode): Project = project.withCommonSettings.
aggregate(`dotty-tastydoc-input`).
dependsOn(dottyCompiler).
settings(tastydocSettings)

def asDottyTastydocInput(implicit mode: Mode): Project = project.withCommonSettings.
dependsOn(dottyCompiler)

def asDist(implicit mode: Mode): Project = project.
enablePlugins(PackPlugin).
withCommonSettings.
Expand Down
1 change: 1 addition & 0 deletions semanticdb/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.2.6
14 changes: 14 additions & 0 deletions tastydoc/TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Comment parsing
## Files from dotty-doc requiring work
* util.traversing
* ImplicitlyAddedFrom
* Fix linking for inherited method

# Other
* Check remaining TODOs/TOASKs/TOFIX

# Representation
* Id for typeparams so we can link (Do not link)
* Alias type
* Rework type matching + Order in type matching symbol counts...
* Remove artifacts in packages => Will fix linking as well
41 changes: 41 additions & 0 deletions tastydoc/documentation/dotty/DottyPredef$.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
dotty
# object DottyPredef

<pre><code class="language-scala" >final object DottyPredef extends Serializable</pre></code>
## Concrete Value Members:
### assert
<pre><code class="language-scala" >@forceInline final def assert(assertion: => Boolean): Unit</pre></code>

### assert
<pre><code class="language-scala" >@forceInline final def assert(assertion: => Boolean, message: => Any): Unit</pre></code>

### assertFail
<pre><code class="language-scala" >def assertFail(message: => Any): Unit</pre></code>

### assertFail
<pre><code class="language-scala" >def assertFail(): Unit</pre></code>

### implicitly
<pre><code class="language-scala" >@forceInline final def implicitly[T](implicit ev: T): T</pre></code>

### locally
<pre><code class="language-scala" >@forceInline def locally[T](body: => T): T</pre></code>

### the
<pre><code class="language-scala" >inline def the[T](x: T): x</pre></code>

### valueOf
<pre><code class="language-scala" >inline def valueOf[T]: T</pre></code>
Retrieve the single value of a type with a unique inhabitant.

***Example***
```scala
object Foo
val foo = valueOf[Foo.type]
// foo is Foo.type = Foo
val bar = valueOf[23]
// bar is 23.type = 23
```

***Group*** utilities

5 changes: 5 additions & 0 deletions tastydoc/documentation/dotty/dotty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Package dotty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file (and the others in the tastydoc/documentation/) generated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted, Julien! It does look like this entire dir should be purged and added to .gitignore.

## Members:
<pre><code class="language-scala" >final object <a href="./DottyPredef$.md">DottyPredef</a></pre></code>
<pre><code class="language-scala" >final val DottyPredef: <a href="./DottyPredef$.md">DottyPredef</a></pre></code>

9 changes: 9 additions & 0 deletions tastydoc/documentation/dotty/internal/StringContextMacro$.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dotty.internal
# object StringContextMacro

<pre><code class="language-scala" >final object StringContextMacro extends Serializable</pre></code>
## Concrete Value Members:
### f
<pre><code class="language-scala" >inline def f(sc: => StringContext)(args: Seq[Any]): String</pre></code>
Implemetation of scala.StringContext.f used in Dotty while the standard library is still not bootstrapped

5 changes: 5 additions & 0 deletions tastydoc/documentation/dotty/internal/internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Package internal
## Members:
<pre><code class="language-scala" >final object <a href="./StringContextMacro$.md">StringContextMacro</a></pre></code>
<pre><code class="language-scala" >final val StringContextMacro: <a href="./StringContextMacro$.md">StringContextMacro</a></pre></code>

21 changes: 21 additions & 0 deletions tastydoc/documentation/dotty/runtime/Arrays$.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dotty.runtime
# object Arrays

<pre><code class="language-scala" >final object Arrays extends Serializable</pre></code>
All but the first two operations should be short-circuited and implemented specially by
the backend.

## Concrete Value Members:
### newArray
<pre><code class="language-scala" >def newArray[Arr](componentType: Class[Nothing <: Any], returnType: Class[Arr], dimensions: Array[Int]): Arr</pre></code>
Create an array of a reference type T.

### newGenericArray
<pre><code class="language-scala" >def newGenericArray[T](length: Int)(implicit tag: <a href="../../scala/reflect/ClassTag.md">ClassTag</a>[T]): Array[T]</pre></code>
Creates an array of some element type determined by the given `ClassTag`
argument. The erased type of applications of this method is `Object`.

### seqToArray
<pre><code class="language-scala" >def seqToArray[T](xs: Seq[T], clazz: Class[Nothing <: Any]): Array[T]</pre></code>
Convert a sequence to a Java array with element type given by `clazz`.

31 changes: 31 additions & 0 deletions tastydoc/documentation/dotty/runtime/LazyVals$.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
dotty.runtime
# object LazyVals

<pre><code class="language-scala" >final object LazyVals extends Serializable</pre></code>
Helper methods used in thread-safe lazy vals.

## Concrete Type Members:
### Names
<pre><code class="language-scala" >final object <a href="./LazyVals$/Names$.md">Names</a></pre></code>
## Concrete Value Members:
### CAS
<pre><code class="language-scala" >def CAS(t: Object, offset: Long, e: Long, v: Int, ord: Int): Boolean</pre></code>

### STATE
<pre><code class="language-scala" >def STATE(cur: Long, ord: Int): Long</pre></code>

### get
<pre><code class="language-scala" >def get(t: Object, off: Long): Long</pre></code>

### getOffset
<pre><code class="language-scala" >def getOffset(clz: Class[Nothing <: Any], name: String): Long</pre></code>

### setFlag
<pre><code class="language-scala" >def setFlag(t: Object, offset: Long, v: Int, ord: Int): Unit</pre></code>

### wait4Notification
<pre><code class="language-scala" >def wait4Notification(t: Object, offset: Long, cur: Long, ord: Int): Unit</pre></code>

### BITS_PER_LAZY_VAL
<pre><code class="language-scala" >final inline val BITS_PER_LAZY_VAL: 2</pre></code>

23 changes: 23 additions & 0 deletions tastydoc/documentation/dotty/runtime/LazyVals$/Names$.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
dotty.runtime.LazyVals$
# object Names

<pre><code class="language-scala" >final object Names extends Serializable</pre></code>
## Concrete Value Members:
### cas
<pre><code class="language-scala" >final inline val cas: CAS</pre></code>

### get
<pre><code class="language-scala" >final inline val get: get</pre></code>

### getOffset
<pre><code class="language-scala" >final inline val getOffset: getOffset</pre></code>

### setFlag
<pre><code class="language-scala" >final inline val setFlag: setFlag</pre></code>

### state
<pre><code class="language-scala" >final inline val state: STATE</pre></code>

### wait4Notification
<pre><code class="language-scala" >final inline val wait4Notification: wait4Notification</pre></code>

11 changes: 11 additions & 0 deletions tastydoc/documentation/dotty/runtime/LegacyApp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
dotty.runtime
# class LegacyApp

<pre><code class="language-scala" >class LegacyApp</pre></code>
Replaces the `scala.App` class which relies on `DelayedInit` functionality,
not supported by Dotty.

## Concrete Value Members:
### main
<pre><code class="language-scala" >def main(args: Array[String]): Unit</pre></code>

22 changes: 22 additions & 0 deletions tastydoc/documentation/dotty/runtime/runtime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Package runtime
## Members:
<pre><code class="language-scala" >final object <a href="./Arrays$.md">Arrays</a></pre></code>
All but the first two operations should be short-circuited and implemented specially by
the backend.

<pre><code class="language-scala" >final val Arrays: <a href="./Arrays$.md">Arrays</a></pre></code>
All but the first two operations should be short-circuited and implemented specially by
the backend.


<pre><code class="language-scala" >final object <a href="./LazyVals$.md">LazyVals</a></pre></code>
Helper methods used in thread-safe lazy vals.

<pre><code class="language-scala" >final val LazyVals: <a href="./LazyVals$.md">LazyVals</a></pre></code>
Helper methods used in thread-safe lazy vals.


<pre><code class="language-scala" >class <a href="./LegacyApp.md">LegacyApp</a></pre></code>
Replaces the `scala.App` class which relies on `DelayedInit` functionality,
not supported by Dotty.

Loading