Class type Metrics_cilast.sloc_visitor

class type sloc_visitor = object .. end
Visitor to compute various syntactic metrics. In particular, it fetches all necessary informations to compute cyclomatic complexity .

Syntactic metrics ================= The goal is to collect various (syntactic) information about the source code (slocs, assignments, loops, ...). From those one can compute McCabe's cyclomatic complexity.

Inherits
method fundecl_calls : int Metrics_base.VInfoMap.t
method fundef_calls : int Metrics_base.VInfoMap.t
method extern_global_vars : Metrics_base.VInfoSet.t
method get_metrics : Metrics_base.BasicMetrics.t
method pp_file_metrics : Format.formatter -> string -> unit
method pp_detailed_text_metrics : Format.formatter -> unit
Print results of all file and functions to the given formatter as text

Print results of all file and functions to the given formatter as text

method print_stats : Format.formatter -> unit
Print computed metrics to a formatter

Print computed metrics to a formatter