Skip to content

Use post-lowering code? #76

@timholy

Description

@timholy

If ExplicitImports were to iterate over all the names in the package, and then for every item that is a method, ask for Base.uncompressed_ast, then you could tally all the GlobalRefs that appear in the lowered code. This would presumably make your scope resolution fully accurate.

JuliaInterpreter does lots of shenanigans with lowered code, including replacing all GlobalRefs with the actual object (to save the cost of scope-resolution at runtime). So its code might be a good reference if you need pointers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions