https://github.com/ocaml/ocaml/blob/trunk/parsing/parsetree.mli#L144 2017-10-19 11:55 GMT+01:00 Matej Košík : > Hi, > > I am using compiler-libs for getting locations of lexical items I am > interested in. > (modules, values, types, non-polymorphic variants, record labels). > > If I have a code like this: > > type t = [`Foo | `Bar] > > does the parse-tree hold the location of "`Foo" (or "`Bar") somewhere? > > (I am not interested in the location of the whole type definition --- just > the location of a specific polymorphic variant/constructor.) > > The attachment display the available parse-tree I can see > (and not able to find bits I am interested in) >