-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gypsum: Introduce ModuleScope for per-file bindings
ModuleScope is a scope for each file in a package. Global definitions and imports are bound in ModuleScope initially. Definitions (but not imports) are copied to GlobalScope after we have walked the AST. This means that symbols that are imported in one file are not visible in other files. Imported symbols shadow definitions in other files but they are overloaded with definitions in the same file. Fixes #34.
- Loading branch information
Showing
5 changed files
with
220 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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.