-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add kwargs...
to module_recursive_globals()
, to allow imported modules
#10
Merged
Conversation
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
…dules ```julia julia> module TestMod42092 module M1 const m1_x = 1 export m1_x end module M2 const m2_x = 1 export m2_x end module A module B f(x) = 1 secret = 1 module Inner2 end end module C x = 1 y = 2 export y end using .B: f using .C using ..M1 import ..M2 end end # module TestMod42092 Main.TestMod42092 julia> LookingGlass.module_recursive_globals(TestMod42092.A, imported=true, usings=true) Dict{Tuple{Module, Symbol}, Int64} with 7 entries: (Main.TestMod42092.M2, :m2_x) => 1 (Main.TestMod42092.A, :y) => 2 (Main.TestMod42092.A.C, :y) => 2 (Main.TestMod42092.A.B, :secret) => 1 (Main.TestMod42092.A.C, :x) => 1 (Main.TestMod42092.A, :m1_x) => 1 (Main.TestMod42092.M1, :m1_x) => 1 ``` NOTE: the `usings=true` option is in PR against Julia 1.8. See: JuliaLang/julia#42092
…lude empty modules
I'm not sure why ci isn't working... LookingGlass.jl/.github/workflows/ci.jl Lines 1 to 65 in 61bbc63
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
kwargs...
tomodule_recursive_globals()
, to allow imported modulesNOTE: the
usings=true
option is in PR against Julia 1.8. See:JuliaLang/julia#42092