| 28 | | match List.nth cpool#multiname @@ Int32.to_int i - 1 with |
|---|
| 29 | | `QName obj -> |
|---|
| 30 | | Printf.sprintf "%s.%s" (namespace cpool obj#ns) (string cpool obj#name) |
|---|
| 31 | | | `Multiname obj -> |
|---|
| 32 | | Printf.sprintf "%s.%s" (namespace_set cpool obj#ns_set) (string cpool obj#name) |
|---|
| 33 | | | _ -> |
|---|
| 34 | | failwith "not yet" |
|---|
| | 28 | let ns,name = |
|---|
| | 29 | match List.nth cpool#multiname @@ Int32.to_int i - 1 with |
|---|
| | 30 | `QName obj -> |
|---|
| | 31 | (namespace cpool obj#ns),(string cpool obj#name) |
|---|
| | 32 | | `Multiname obj -> |
|---|
| | 33 | (namespace_set cpool obj#ns_set),(string cpool obj#name) |
|---|
| | 34 | | _ -> |
|---|
| | 35 | failwith "not yet" in |
|---|
| | 36 | if ns = "" then |
|---|
| | 37 | name |
|---|
| | 38 | else |
|---|
| | 39 | ns ^ "." ^name |
|---|