-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Migrate scala3doc to compiler's parser #10462
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
romanowski
merged 19 commits into
scala:master
from
romanowski:scala3doc/use-dotty-argument-parser
Nov 30, 2020
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
632b100
Migrate scala3doc to compiler's parser
romanowski a77c2fe
fix todos, add missing arguments and descriptions
romanowski fcb9b7b
scala3doc has similar api like compiler
romanowski d712117
Handle arguments properly
romanowski b2311cf
Problem with package objects
romanowski 05d8d11
Fix generate* tasks in scala3doc
romanowski 36e300d
Simply sources config for doc task
romanowski fb8e7f6
Sinlience out Kotlin analysis in scala3doc
romanowski 30ce3c2
Make sure that project does not hang in case of errors
romanowski 6093126
Make sure that our DRIs are unique
romanowski 565d8d9
Add support for another shape of Lambda types
romanowski 2612aca
Removing failing file and silence down a lot of errors
romanowski 57c36af
Fix typo and remove unused setting
romanowski af92734
Clean up imports
romanowski e226aa8
Tasty inspector is able to run using provided context
romanowski aba505b
Introduce DocContext and use it in TastyInspector
romanowski 47abb66
Add test for basic reporting in Scala3doc
romanowski 35f3e12
Do not add scala sources to scala3doc
romanowski 2cd20e4
Make inspectFilesInContext private to inspector
romanowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
14 changes: 14 additions & 0 deletions
14
scala3doc-testcases/src/example/typeAndObjects/binaryops.scala
This file contains hidden or 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 @@ | ||
package example.typeAndObjects | ||
|
||
|
||
sealed trait Expr | ||
|
||
object Expr{ | ||
case class BinaryOp(offset: Int, lhs: Expr, op: BinaryOp.Op, rhs: Expr) extends Expr | ||
|
||
object BinaryOp{ | ||
sealed trait Op | ||
case object `<<` extends Op | ||
case object `>>` extends Op | ||
} | ||
} |
This file contains hidden or 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 hidden or 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,5 @@ | ||
package dotty.dokka | ||
|
||
import dotty.tools.dotc.core.Contexts._ | ||
|
||
type DocContext = Context |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we move these to
Scala3doc
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is used by tastdoc so as long as it exisits we can't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dottydoc, you mean? I guess then we should move it in a PR that deletes Dottydoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes