after_all
at the module level (in Sys
)
# Methods tagged with `after_all` at the module level (in `Sys`)
private fun after_all: Array[MMethodDef] do
var res = new Array[MMethodDef]
for mmodule in in_importation.greaters do
for mclassdef in mmodule.mclassdefs do
if mclassdef.name != "Sys" then continue
for mpropdef in mclassdef.mpropdefs do
if not mpropdef isa MMethodDef or not mpropdef.is_after_all then continue
res.add mpropdef
end
end
end
var lin = res.to_a
linearize_mpropdefs(lin)
return lin.reversed
end
src/testing/testing_suite.nit:562,2--577,4