Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,9 @@ end
"""
get_extension(parent::Module, extension::Symbol)

Return the module for `extension` of `parent` or return `nothing` if the extension is not loaded.
Return the module for `extension` relative to `parent` or return `nothing` if the extension is not loaded.
This function is private, since the arguments to it are private implementation details.
Copy link
Member

Choose a reason for hiding this comment

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

In how far are the arguments private?

Copy link
Member Author

Choose a reason for hiding this comment

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

The ext name is private, and the parent argument is used to extract PkgId which is internally also private

It is provided mainly for testing and reflection purposes.
"""
get_extension(parent::Module, ext::Symbol) = get_extension(PkgId(parent), ext)
function get_extension(parentid::PkgId, ext::Symbol)
Expand Down
1 change: 0 additions & 1 deletion base/public.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public
active_project,

# Reflection and introspection
get_extension,
isambiguous,
isexpr,
isidentifier,
Expand Down
Loading