We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10665b8 commit 5e89084Copy full SHA for 5e89084
compiler/ml/printtyp.ml
@@ -64,14 +64,14 @@ let non_shadowed_pervasive_or_stdlib = function
64
65
let rec tree_of_path = function
66
| Pident id -> Oide_ident (ident_name id)
67
+ | Pdot (_, s, _pos) as path when non_shadowed_pervasive_or_stdlib path ->
68
+ Oide_ident s
69
| Pdot (p, s, _pos) when String.starts_with (Path.name p) ~prefix:"Stdlib_" ->
70
let path_name = Path.name p in
71
let ident_without_stdlib_prefix =
72
String.sub path_name 7 (String.length path_name - 7)
73
in
74
Oide_dot (Oide_ident ident_without_stdlib_prefix, s)
- | Pdot (_, s, _pos) as path when non_shadowed_pervasive_or_stdlib path ->
- Oide_ident s
75
| Pdot (p, s, _pos) -> Oide_dot (tree_of_path p, s)
76
| Papply (p1, p2) -> Oide_apply (tree_of_path p1, tree_of_path p2)
77
0 commit comments