Skip to content
Snippets Groups Projects
Commit 5a9d5ea4 authored by Kilyan Le Gallic's avatar Kilyan Le Gallic
Browse files

[wp] Applied infix conversion only to last element of scopes when building name

parent 91da20da
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,12 @@ let of_infix s =
let construct_acsl_name (id : W.Ident.ident) =
let (paths,name,scopes) = T.restore_path id in
let modscopes = "::" ^ name ^ "::" ^ (String.concat "::" (List.map (of_infix) scopes)) in
(String.concat "::" paths) ^ modscopes
match List.rev scopes with
| (t::q) ->
let modscopes = "::" ^ name ^ "::" ^ (String.concat "::" (List.rev_append q [(of_infix t)])) in
(String.concat "::" paths) ^ modscopes
| [] -> ""
(* For debug only*)
let pp_id fmt (id: W.Ident.ident) =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment