Skip to content

Commit

Permalink
🎁 Don't functionwrap eval/include
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Nov 27, 2020
1 parent 8ec000f commit 3f4e92b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "Pluto"
uuid = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
license = "MIT"
authors = ["Fons van der Plas <[email protected]>"]
version = "0.12.13"
version = "0.12.14"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Expand Down
3 changes: 2 additions & 1 deletion src/analysis/ExpressionExplorer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,8 @@ function can_be_function_wrapped(x::Expr)
x.head === :macrocall || # we might want to get rid of this one, but that requires some work
x.head === :struct ||
x.head === :abstract ||
(x.head === :(=) && x.args[1] isa Expr && x.args[1].head === :call) # f(x) = ...
(x.head === :(=) && x.args[1] isa Expr && x.args[1].head === :call) || # f(x) = ...
(x.head === :call && (x.args[1] === :eval || x.args[1] === :include))
false
else
all(can_be_function_wrapped, x.args)
Expand Down

2 comments on commit 3f4e92b

@fonsp
Copy link
Owner Author

@fonsp fonsp commented on 3f4e92b Nov 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/25421

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.14 -m "<description of version>" 3f4e92b8e77eddffb0676f75135baf42e21d7174
git push origin v0.12.14

Please sign in to comment.