File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ function check_for_missing_packages_and_run_hooks(ast)
178178end
179179
180180function modules_to_be_loaded (ast, mods = Symbol[])
181+ ast. head == :quote && return mods # don't search if it's not going to be run during this eval
181182 if ast. head in [:using , :import ]
182183 for arg in ast. args
183184 if first (arg. args) isa Symbol # i.e. `Foo`
Original file line number Diff line number Diff line change @@ -1355,6 +1355,11 @@ end
13551355 mods = REPL. modules_to_be_loaded (Base. parse_input_line (" using Core" ))
13561356 @test isempty (mods)
13571357
1358+ mods = REPL. modules_to_be_loaded (Base. parse_input_line (" :(using Foo)" ))
1359+ @test isempty (mods)
1360+ mods = REPL. modules_to_be_loaded (Base. parse_input_line (" ex = :(using Foo)" ))
1361+ @test isempty (mods)
1362+
13581363 mods = REPL. modules_to_be_loaded (Base. parse_input_line (" # comment" ))
13591364 @test isempty (mods)
13601365 mods = REPL. modules_to_be_loaded (Base. parse_input_line (" Foo" ))
You can’t perform that action at this time.
0 commit comments