Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Feb 27, 2020
1 parent 26c67a3 commit a839c5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/static/bindings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,12 @@ function mark_binding!(x::EXPR, val = x)
mark_binding!(x.args[1], x)
elseif typof(x) === CSTParser.InvisBrackets
mark_binding!(CSTParser.rem_invis(x), val)
elseif typof(x) == CSTParser.UnaryOpCall &&
elseif typof(x) === CSTParser.UnaryOpCall &&
kindof(x.args[1]) === CSTParser.Tokens.DECLARATION
return x
elseif typof(x) === CSTParser.Ref
# https://github.com/JunoLab/Juno.jl/issues/502
return x
else# if typof(x) === IDENTIFIER || (typof(x) === BinaryOpCall && kindof(x.args[2]) === CSTParser.Tokens.DECLARATION)
x.meta = Binding(CSTParser.get_name(x), val)
end
Expand Down

0 comments on commit a839c5d

Please sign in to comment.