What is # = none: 1 = # in expression?

Hellow!
what is # = none: 4 = #, is it possible to create an expression without this?
or is bad idea to generate src-files based on expressions?

julia> ex = quote
           x = 1
           y = 2
           x + y
       end
quote
    #= none:2 =#
    x = 1
    #= none:3 =#
    y = 2
    #= none:4 =#
    x + y
end

That’s a line number node — the none is a stand-in for the filename, which you don’t have since you’re at the REPL, and the number is the line.

You can strip them out with Base.remove_linenums!:

julia> Base.remove_linenums!(ex)
quote
    x = 1
    y = 2
    x + y
end
8 Likes

thanks!