We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent febc9e5 commit ca861a4Copy full SHA for ca861a4
src/model_macro.jl
@@ -19,7 +19,7 @@ struct walk_until_occurrence{E}
19
end
20
21
not_enter_indexed_walk = guarded_walk((x) -> (x isa Expr && x.head == :ref) || (x isa Expr && x.head == :call && x.args[1] == :new))
22
-not_created_by = guarded_walk((x) -> (x isa Expr && length(x.args) > 0 && x.args[1] == :created_by))
+not_created_by = guarded_walk((x) -> (x isa Expr && !isempty(x.args) && x.args[1] == :created_by))
23
24
function (w::walk_until_occurrence{E})(f, x) where {E <: Tuple}
25
return walk(x, z -> any(pattern -> @capture(x, $(pattern)), w.patterns) ? z : w(f, z), f)
0 commit comments