@@ -16,7 +16,7 @@ struct ModuleStore <: SymStore
1616 used_modules:: Vector{Symbol}
1717end
1818
19- ModuleStore (m) = ModuleStore (VarRef (m), Dict {Symbol,Any} (), _doc (Base . Docs . Binding ( m, nameof (m) )), true , unsorted_names (m), Symbol[])
19+ ModuleStore (m) = ModuleStore (VarRef (m), Dict {Symbol,Any} (), _doc (m, nameof (m)), true , unsorted_names (m), Symbol[])
2020Base. getindex (m:: ModuleStore , k) = m. vals[k]
2121Base. setindex! (m:: ModuleStore , v, k) = (m. vals[k] = v)
2222Base. haskey (m:: ModuleStore , k) = haskey (m. vals, k)
@@ -84,7 +84,7 @@ function DataTypeStore(@nospecialize(t), symbol, parent_mod, exported)
8484 else
8585 []
8686 end
87- DataTypeStore (FakeTypeName (ur_t), FakeTypeName (ur_t. super), parameters, types, isconcretetype (ur_t) && fieldcount (ur_t) > 0 ? collect (fieldnames (ur_t)) : Symbol[], MethodStore[], _doc (Base . Docs . Binding ( parent_mod, symbol) ), exported)
87+ DataTypeStore (FakeTypeName (ur_t), FakeTypeName (ur_t. super), parameters, types, isconcretetype (ur_t) && fieldcount (ur_t) > 0 ? collect (fieldnames (ur_t)) : Symbol[], MethodStore[], _doc (parent_mod, symbol), exported)
8888end
8989
9090function Base. show (io:: IO , dts:: DataTypeStore )
101101
102102function FunctionStore (@nospecialize (f), symbol, parent_mod, exported)
103103 if f isa Core. IntrinsicFunction
104- FunctionStore (VarRef (VarRef (Core. Intrinsics), nameof (f)), MethodStore[], _doc (Base . Docs . Binding ( parent_mod, symbol) ), VarRef (VarRef (parentmodule (f)), nameof (f)), exported)
104+ FunctionStore (VarRef (VarRef (Core. Intrinsics), nameof (f)), MethodStore[], _doc (parent_mod, symbol), VarRef (VarRef (parentmodule (f)), nameof (f)), exported)
105105 else
106- FunctionStore (VarRef (VarRef (parent_mod), nameof (f)), MethodStore[], _doc (Base . Docs . Binding ( parent_mod, symbol) ), VarRef (VarRef (parentmodule (f)), nameof (f)), exported)
106+ FunctionStore (VarRef (VarRef (parent_mod), nameof (f)), MethodStore[], _doc (parent_mod, symbol), VarRef (VarRef (parentmodule (f)), nameof (f)), exported)
107107 end
108108end
109109
@@ -501,7 +501,7 @@ function symbols(env::EnvStore, m::Union{Module,Nothing} = nothing, allnames::Ba
501501 cache[s] = VarRef (x)
502502 end
503503 else
504- cache[s] = GenericStore (VarRef (VarRef (m), s), FakeTypeName (typeof (x)), _doc (Base . Docs . Binding ( m, s) ), s in getnames (m))
504+ cache[s] = GenericStore (VarRef (VarRef (m), s), FakeTypeName (typeof (x)), _doc (m, s), s in getnames (m))
505505 end
506506 end
507507 else
@@ -540,7 +540,7 @@ function load_core(; get_return_type = false)
540540 end
541541
542542 cache[:Base ][Symbol (" @." )] = cache[:Base ][Symbol (" @__dot__" )]
543- cache[:Core ][:Main ] = GenericStore (VarRef (nothing , :Main ), FakeTypeName (Module), _doc (Base . Docs . Binding ( Main, :Main ) ), true )
543+ cache[:Core ][:Main ] = GenericStore (VarRef (nothing , :Main ), FakeTypeName (Module), _doc (Main, :Main ), true )
544544 # Add built-ins
545545 builtins = Symbol[nameof (getfield (Core, n). instance) for n in unsorted_names (Core, all = true ) if isdefined (Core, n) && getfield (Core, n) isa DataType && isdefined (getfield (Core, n), :instance ) && getfield (Core, n). instance isa Core. Builtin]
546546 cnames = unsorted_names (Core)
0 commit comments