core :: Sys :: call_analyze_methods
fun call_analyze_methods(mclassdef: MClassDef, model_builder: ModelBuilder, filter: ModelFilter): Array[MMethodDef] do
var mmethoddefs = new Array[MMethodDef]
for m_prop in mclassdef.collect_intro_and_redef_mpropdefs(filter) do
var n_prop = model_builder.mpropdef2node(m_prop)
#Check if the property is a method definition
if n_prop isa AMethPropdef and m_prop isa MMethodDef then
if n_prop.n_methid isa AIdMethid then
#Call visitor to analyse the method
var visitor = new MethodAnalyzeMetrics(n_prop)
visitor.enter_visit(n_prop)
mmethoddefs.add(set_analyse_result_methoddef(m_prop,visitor))
end
end
end
return mmethoddefs
end
src/metrics/method_analyze_metrics.nit:24,1--39,3