Skip to content

Disassemble compiler package #232

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Disassemble compiler package #232

wants to merge 17 commits into from

Conversation

jakebailey
Copy link
Member

Moves packages around, renames compiler to program.

This PR is on top of #227

@jakebailey
Copy link
Member Author

FWIW I personally find this package structure "too flat"; I feel like there are bits which could still be nested further into internal.

Base automatically changed from jabaile/move-checker to main January 15, 2025 19:24
@jakebailey jakebailey marked this pull request as ready for review January 15, 2025 19:48
@jakebailey
Copy link
Member Author

Of course, things are racing due to the symbol ID stuff :|

@@ -1,4 +1,4 @@
package compiler
package program
Copy link
Member Author

Choose a reason for hiding this comment

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

Downside: we often use the name program as a variable name.

RootFiles: rootFiles,
Host: host,
Options: options,
DefaultLibraryPath: bundled.LibPath(),
}
program := compiler.NewProgram(programOptions)
program := program.NewProgram(programOptions)
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that one can shadow here and that's "okay", but once you do this, you can't touch the package anymore in scope.

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.

2 participants