Skip to content
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

longdef1 strips lines #102

Closed
cstjean opened this issue Nov 2, 2018 · 0 comments
Closed

longdef1 strips lines #102

cstjean opened this issue Nov 2, 2018 · 0 comments

Comments

@cstjean
Copy link
Collaborator

cstjean commented Nov 2, 2018

longdef1 gets rid of line numbers:

julia> fun = :(f(x) = x+2)
:(f(x) = begin
          #= REPL[37]:1 =#
          x + 2
      end)

julia> MacroTools.longdef1(fun)
:(function f(x)
      x + 2
  end)

And since it's relied upon by splitdef, we lose line numbers there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant