Internals

Internals

IndirectFunction(pkgish::Union{Module,PkgId,IndirectPackage}, name::Symbol)

Examples

julia> using IndirectImports: IndirectFunction, IndirectPackage

julia> using UUIDs

julia> Dummy = IndirectPackage(
           UUID("f315346e-6bf8-11e9-0cba-43b0a27f0f55"),
           :Dummy);

julia> Dummy.fun
Dummy.fun

julia> Dummy.fun isa IndirectFunction
true

julia> Dummy.fun ===
           IndirectFunction(Dummy, :fun) ===
           IndirectFunction(
               Base.PkgId(
                   UUID("f315346e-6bf8-11e9-0cba-43b0a27f0f55"),
                   "Dummy"),
               :fun)
true

julia> IndirectPackage(Dummy.fun) === Dummy
true
source
IndirectPackage(pkgish::Union{Module,PkgId,IndirectPackage})
IndirectPackage(uuid::UUID, pkgname::Symbol)

Examples

julia> using IndirectImports: IndirectPackage

julia> using Test

julia> IndirectPackage(Test) ===
           IndirectPackage(IndirectPackage(Base.PkgId(Test))) ===
           IndirectPackage(Base.PkgId(Test)) ===
           IndirectPackage(
               Base.UUID("8dfed614-e22c-5e08-85e1-65c5234f0b40"),
               :Test)
true
source