Skip to content
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

correct comment about type of method in a LineInfoNode #49608

Merged
merged 1 commit into from
May 3, 2023

Conversation

KristofferC
Copy link
Member

The type is set here:

julia/src/jltypes.c

Lines 2802 to 2805 in 5304baa

jl_new_datatype(jl_symbol("LineInfoNode"), core, jl_any_type, jl_emptysvec,
jl_perm_symsvec(5, "module", "method", "file", "line", "inlined_at"),
jl_svec(5, jl_module_type, jl_any_type, jl_symbol_type, jl_int32_type, jl_int32_type),
jl_emptysvec, 0, 0, 5);

so it is ::Any.

And

elseif line.method isa Method || line.method isa Symbol

if line.method isa MethodInstance

shows it can at least be a Method and a MethodInstance.

@KristofferC KristofferC added the docs This change adds or pertains to documentation label May 3, 2023
@KristofferC KristofferC merged commit 252883c into master May 3, 2023
@KristofferC KristofferC deleted the kc/comment_linfo branch May 3, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants