Useful debug printing function.
This commit is contained in:
parent
aa3923cb56
commit
b5f6593e18
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ let print_name ff n =
|
|||
else n
|
||||
in fprintf ff "%s" n
|
||||
|
||||
let print_raw_qualname ff {qual = q; name = n} =
|
||||
fprintf ff "%s.%a" q print_name n
|
||||
|
||||
let opname qn = match qn with
|
||||
| { qual = "Pervasives"; name = m; } -> m
|
||||
| { qual = qual; name = n; } -> qual ^ "." ^ n
|
||||
|
|
Loading…
Reference in a new issue