Skip to content

Commit

Permalink
Merge pull request #262 from julia-vscode/fallbacks
Browse files Browse the repository at this point in the history
add get_named_toplevel_module default method
  • Loading branch information
pfitzseb authored Feb 10, 2021
2 parents fd5ecca + 6d4cddc commit 00fedf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/imports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ function add_to_imported_modules(scope::Scope, name::Symbol, val)
end
end
no_modules_above(s::Scope) = !CSTParser.defines_module(s.expr) || s.parent === nothing || no_modules_above(s.parent)
function get_named_toplevel_module(s, name)
return nothing
end
function get_named_toplevel_module(s::Scope, name::String)
if CSTParser.defines_module(s.expr)
m_name = CSTParser.get_name(s.expr)
Expand Down

0 comments on commit 00fedf4

Please sign in to comment.