nitc :: MModule :: before_all
before_all
at the module level (in Sys
)
# Methods tagged with `before_all` at the module level (in `Sys`)
private fun before_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_before_all then continue
res.add mpropdef
end
end
end
var lin = res.to_a
linearize_mpropdefs(lin)
return lin
end
src/testing/testing_suite.nit:545,2--560,4