You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change -sourcepath to behave like -scansource -sourcepath
... and delete -scansource which is now unnecessary.
The difference between these two settings is that the former assumes
that a file A.scala contains a top-level class or object A, whereas the
latter will use the outline parser to find definitions in A.scala and
create symbols for them.
So far we used the former to compile the standard library and
dotty-library, and the latter for the IDE, but we might as well always
use the latter, it's one less code path and dotty-library now uses
top-level definitions (like `type IArray` in scala/IArray.scala) so the
assumptions of -sourcepath do not apply to it anymore.
(top-level definitions are still not handled correctly with -sourcepath
after this commit, this is fixed in a latter commit in this PR)
This change required moving WithBounds which was previously in the wrong
directory.
valsourcepath:Setting[String] =PathSetting("-sourcepath", "Specify location(s) of source files.", Defaults.scalaSourcePath) withAbbreviation "--source-path"
20
-
valscansource:Setting[Boolean] =BooleanSetting("-scansource", "Scan source files to locate classes for which class-name != file-name") withAbbreviation "--scan-source"
21
20
22
21
valclasspath:Setting[String] =PathSetting("-classpath", "Specify where to find user class files.", defaultClasspath) withAbbreviation "-cp" withAbbreviation "--class-path"
23
22
valoutputDir:Setting[AbstractFile] =OutputSetting("-d", "directory|jar", "destination for generated classfiles.",
0 commit comments