julia-vscode / SymbolServer.jl
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
test/runtests.jl has changed.

@@ -53,14 +53,23 @@
Loading
53 53
    exported::Bool
54 54
end
55 55
56 -
function DataTypeStore(@nospecialize(t::DataType), parent_mod, exported)
57 -
    parameters = map(t.parameters) do p
58 -
        _parameter(p)
56 +
function DataTypeStore(@nospecialize(t), parent_mod, exported)
57 +
    ur_t = Base.unwrap_unionall(t)
58 +
    parameters = if isdefined(ur_t, :parameters)
59 +
        map(ur_t.parameters) do p
60 +
            _parameter(p)
61 +
        end
62 +
    else
63 +
        []
59 64
    end
60 -
    types = map(t.types) do p
61 -
        FakeTypeName(p)
65 +
    types = if isdefined(ur_t, :types)
66 +
        map(ur_t.types) do p
67 +
            FakeTypeName(p)
68 +
        end
69 +
    else
70 +
        []
62 71
    end
63 -
    DataTypeStore(FakeTypeName(t), FakeTypeName(t.super), parameters, types, t.isconcretetype && fieldcount(t) > 0 ? collect(fieldnames(t)) : Symbol[], [], _doc(t), exported)
72 +
    DataTypeStore(FakeTypeName(ur_t), FakeTypeName(ur_t.super), parameters, types, ur_t.isconcretetype && fieldcount(ur_t) > 0 ? collect(fieldnames(ur_t)) : Symbol[], MethodStore[], _doc(t), exported)
64 73
end
65 74
66 75
struct FunctionStore <: SymStore
@@ -73,9 +82,9 @@
Loading
73 82
74 83
function FunctionStore(@nospecialize(f), parent_mod, exported)
75 84
    if f isa Core.IntrinsicFunction
76 -
        FunctionStore(VarRef(VarRef(Core.Intrinsics), nameof(f)), [], _doc(f), VarRef(VarRef(parentmodule(f)), nameof(f)), exported)
85 +
        FunctionStore(VarRef(VarRef(Core.Intrinsics), nameof(f)), MethodStore[], _doc(f), VarRef(VarRef(parentmodule(f)), nameof(f)), exported)
77 86
    else
78 -
        FunctionStore(VarRef(VarRef(parent_mod), nameof(f)), [], _doc(f), VarRef(VarRef(parentmodule(f)), nameof(f)), exported)
87 +
        FunctionStore(VarRef(VarRef(parent_mod), nameof(f)), MethodStore[], _doc(f), VarRef(VarRef(parentmodule(f)), nameof(f)), exported)
79 88
    end
80 89
end
81 90
@@ -303,10 +312,10 @@
Loading
303 312
        if n !== nameof(m) && isdefined(m, n)
304 313
            x = getfield(m, n)
305 314
            if x isa Module
306 -
                if !istoplevelmodule(x) && !haskey(cache, n)
315 +
                if !haskey(cache, n)
307 316
                    cache[n] = VarRef(x)
308 317
                end
309 -
                if usedby(m, x)
318 +
                if x !== Main && usedby(m, x)
310 319
                    push!(cache.used_modules, n)
311 320
                end
312 321
            end
@@ -329,8 +338,8 @@
Loading
329 338
        for s in internalnames
330 339
            !isdefined(m, s) && continue
331 340
            x = getfield(m, s)
332 -
            if x isa DataType
333 -
                if parentmodule(x) === m
341 +
            if Base.unwrap_unionall(x) isa DataType # Unions aren't handled here.
342 +
                if parentmodule((x)) === m
334 343
                    cache[s] = DataTypeStore(x, m, s in getnames(m))
335 344
                    cache_methods(x, env)
336 345
                elseif nameof(x) !== s
@@ -401,6 +410,7 @@
Loading
401 410
    c = Pkg.Types.Context()
402 411
    cache = getenvtree([:Core,:Base])
403 412
    symbols(cache)
413 +
    cache[:Main] = ModuleStore(VarRef(nothing, :Main), Dict(), "", true, [], [])
404 414
405 415
    # Add special cases for built-ins
406 416
    let f = cache[:Base][:include]
@@ -471,6 +481,7 @@
Loading
471 481
        "`ccall((function_name, library), returntype, (argtype1, ...), argvalue1, ...)`\n`ccall(function_name, returntype, (argtype1, ...), argvalue1, ...)`\n`ccall(function_pointer, returntype, (argtype1, ...), argvalue1, ...)`\n\nCall a function in a C-exported shared library, specified by the tuple (`function_name`, `library`), where each component is either a string or symbol. Instead of specifying a library, one\ncan also use a `function_name` symbol or string, which is resolved in the current process. Alternatively, `ccall` may also be used to call a function pointer `function_pointer`, such as one\nreturned by `dlsym`.\n\nNote that the argument type tuple must be a literal tuple, and not a tuple-valued variable or expression.\n\nEach `argvalue` to the `ccall` will be converted to the corresponding `argtype`, by automatic insertion of calls to `unsafe_convert(argtype, cconvert(argtype, argvalue))`. (See also the documentation for `unsafe_convert` and `cconvert` for further details.) In most cases, this simply results in a call to `convert(argtype, argvalue)`.",
472 482
        VarRef(VarRef(Core), :ccall),
473 483
        true)
484 +
    push!(cache[:Core].exportednames, :ccall)
474 485
    cache[:Core][Symbol("@__doc__")] = FunctionStore(VarRef(VarRef(Core), Symbol("@__doc__")), [], "", VarRef(VarRef(Core), Symbol("@__doc__")), true)
475 486
    cache_methods(getfield(Core, Symbol("@__doc__")), cache)
476 487
    # Accounts for the dd situation where Base.rand only has methods from Random which doesn't appear to be explicitly used.
Files Coverage
src 76.52%
Project Totals (5 files) 76.52%
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests
codecov-umbrella
Build #153200739 -
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading