forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow bindings from include_defs to be loaded into a namespace.
Summary: Extend include_defs to allow defs from a file to be loaded into a separate namespace instead of being merged into the globals of the current file. For example, suppose define bar `bar` in a defs file, and include it via `include_defs('//path/to/DEFS', 'foo')`. This will make the binding accessible via `foo.bar` rather than `bar`. This is implemented as an optional parameter so the legacy behavior is unchanged, you can also pass `None` as the 2nd parameter to explicitly import into global scope. Test Plan: Added a test case. CI should ensure no regressions. Reviewed By: mjpieters fbshipit-source-id: a3f69d1
- Loading branch information
1 parent
3956756
commit 1ef6123
Showing
3 changed files
with
78 additions
and
8 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
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
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