nitc :: AExpr :: accept_explain_assert
v
to explain this node if the parent assert fails
# Fill `v` to explain this node if the parent assert fails
private fun accept_explain_assert(v: ExplainAssertVisitor)
do if mtype != null then v.explain_expr self
src/frontend/explain_assert.nit:189,2--191,45
redef fun accept_explain_assert(v)
do
v.explain_string "{n_kwnot.text} "
n_expr.accept_explain_assert v
end
src/frontend/explain_assert.nit:245,2--249,4
redef fun accept_explain_assert(v)
do
if n_expr.mtype == null then return
v.explain_expr n_expr
v.explain_string " {n_kwisa.text} "
v.explain_string n_type.collect_text
end
src/frontend/explain_assert.nit:234,2--241,4
# Don't explain the conditions using `and`, `or`, etc.
redef fun accept_explain_assert(v) do end
src/frontend/explain_assert.nit:253,2--254,42
redef fun accept_explain_assert(v)
do
if n_expr.mtype == null then return
v.explain_expr n_expr
v.explain_string "["
v.explain_args n_args
v.explain_string "]"
end
src/frontend/explain_assert.nit:222,2--230,4