Skip to content

Move dotty compiler code to compiler.internal #28

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

Closed

Conversation

clhodapp
Copy link

Note: I consider this to be a work-in-progress and accept that I may have to make some additional changes to get this pull request through.

This commit moves all code that was in dotty.tools into dotty.compiler.internal. The idea of a "tools" package seems to be a holdover from "com.sun.tools.javac". This naming style is not in line with how packages are normally named in the standard Scala distribution, hence the change. Note that I've done my best to update tests to make them compile/run, but some tests that did not compile before still don't compile with this commit. These tests are not in the set run by "sbt test", so I believe them to be stale (in fact, they should likely be removed in a future commit).

@VladUreche
Copy link
Contributor

Thanks @clhodapp! +1 from me too
Nevertheless, review by @odersky.

@clhodapp
Copy link
Author

Sorry for the frequent editing. I think I'm done now.

This commit moves all code that was in dotty.tools into
dotty.compiler.internal. The idea of a "tools" package seems to be a
holdover from "com.sun.tools.javac". This naming style is not in line
with how packages are normally named in the standard Scala distribution,
hence the change. Note that I've done my best to update tests to make
them compile/run, but some tests that did not compile before still don't
compile with this commit. These tests are not in the set run by
"sbt test", so I believe them to be stale (in fact, they should likely
be removed in a future commit).
@sjrd
Copy link
Member

sjrd commented Feb 24, 2014

That seems reasonable.

The removal of outputs in the worksheets (few last files in the diff) is suspicious, though.

@clhodapp
Copy link
Author

This is how my Eclipse (apparently) saved them after I went through each worksheet, updating package names to get it to compile, if possible. A couple of them would not compile because they referenced fields that are no longer present in objects. These fields were already gone before this commit, so those worksheets were already noncompiling. In any case, It seems that "sbt test" isn't compiling/running those worksheets, anyway, so I'm really wondering what they are for.

@clhodapp
Copy link
Author

In any case, I will investigate getting this repushed with the outputs restored later. Please don't merge until I've done that.

@clhodapp clhodapp closed this Feb 24, 2014
@clhodapp
Copy link
Author

As a minor update, there's something weird going on with my worksheets. Will investigate before reopening.

odersky pushed a commit that referenced this pull request Aug 23, 2016
noti0na1 added a commit to noti0na1/dotty that referenced this pull request Oct 9, 2019
Optimize Methods in NullOpsDecorator; Optimize widenUnion
pikinier20 added a commit that referenced this pull request Aug 16, 2022
szymon-rd added a commit that referenced this pull request Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants