nitc :: ANode :: accept_post_typing
private fun accept_post_typing(v: TypeVisitor) do end
src/semantize/typing.nit:952,2--54
redef fun accept_post_typing(v)
do
var mtype = n_expr.mtype
if mtype == null then return
v.check_can_be_null(n_expr, mtype)
end
src/semantize/typing.nit:1904,2--1909,4
redef fun accept_post_typing(v)
do
var t1 = n_expr.mtype
if t1 == null then
return
else
v.check_can_be_null(n_expr, t1)
end
end
src/semantize/typing.nit:1567,2--1575,4
redef fun accept_post_typing(v)
do
var mtype = n_expr.mtype
var mtype2 = n_expr2.mtype
if mtype == null or mtype2 == null then return
if mtype == v.type_bool(self) and (n_expr2 isa AFalseExpr or n_expr2 isa ATrueExpr) then
v.display_warning(self, "useless-truism", "Warning: useless comparison to a Bool literal.")
end
if not mtype2 isa MNullType then return
v.check_can_be_null(n_expr, mtype)
end
src/semantize/typing.nit:2075,2--2089,4