let rec list_of_class_sig_item x acc = match x with | Ast.CgNil _ -> acc | Ast.CgSem (_, x, y) -> list_of_class_sig_item x (list_of_class_sig_item y acc) | x -> x :: acc