-
Notifications
You must be signed in to change notification settings - Fork 186
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
core: reduce amount of scalac dependencies #2048
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ object Dependencies { | |
val scalatest = "org.scalatest" %% "scalatest" % scalatestV | ||
val munit = "org.scalameta" %% "munit" % munitV | ||
val semanticdbScalacCore = "org.scalameta" % "semanticdb-scalac-core" % scalametaV cross CrossVersion.full | ||
val semanticdbSharedFor3Use2_13 = "org.scalameta" % "semanticdb-shared" % scalametaV cross CrossVersion.for3Use2_13 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. leverage scalameta/scalameta#3887 |
||
|
||
// scala-steward:off | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package scala.meta.internal.symtab | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not super happy about this hack, since eventual drift between this version and the upstream one will cause runtime errors in reflect and cli, but for the foreseeable future tests should pick that up and I think it's worth it to keep core clean until we contractualize with scalameta what could be exposed as a public API. |
||
|
||
import scala.meta.internal.semanticdb.SymbolInformation | ||
|
||
trait SymbolTable { | ||
|
||
/** | ||
* Returns the SymbolInformation for the given symbol, or None if the symbol | ||
* is missing. | ||
*/ | ||
def info(symbol: String): Option[SymbolInformation] | ||
|
||
} |
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.
Unrelated to this PR, but this change highlights a limitation: I wonder how much of the current implementation of
GlobalSymbolTable
works against class files produced by dotty.... We haven't got any issue but I guess it's just because the Symbol lookup API is not used much on symbols that are not in the document, or maybe it's mostly on Java and Scala standard library classes.scalafix/scalafix-core/src/main/scala/scalafix/internal/v1/InternalSemanticDoc.scala
Line 80 in c6d7411
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.
#2049