-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
improve precompilation coverage #33006
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -765,15 +765,21 @@ setup_interface( | |||
repl::LineEditREPL; | ||||
# those keyword arguments may be deprecated eventually in favor of the Options mechanism | ||||
hascolor::Bool = repl.options.hascolor, | ||||
extra_repl_keymap::Union{Dict,Vector{<:Dict}} = repl.options.extra_keymap | ||||
extra_repl_keymap::Any = repl.options.extra_keymap | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this takes care of that: Line 50 in 5e75cfe
|
||||
) = setup_interface(repl, hascolor, extra_repl_keymap) | ||||
|
||||
# This non keyword method can be precompiled which is important | ||||
function setup_interface( | ||||
repl::LineEditREPL, | ||||
hascolor::Bool, | ||||
extra_repl_keymap::Union{Dict,Vector{<:Dict}}, | ||||
extra_repl_keymap::Any, # Union{Dict,Vector{<:Dict}}, | ||||
) | ||||
# The precompile statement emitter has problem outputting valid syntax for the | ||||
# type of `Union{Dict,Vector{<:Dict}}` (see #28808). | ||||
# This function is however important to precompile for REPL startup time, therefore, | ||||
# make the type Any and just assert that we have the correct type below. | ||||
@assert extra_repl_keymap isa Union{Dict,Vector{<:Dict}} | ||||
|
||||
### | ||||
# | ||||
# This function returns the main interface that describes the REPL | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be left in at
@debug
level?