src/Pure/defs.ML
changeset 19482 9f11af8f7ef9
parent 19339 59f08f67ed3f
child 19569 1c23356a8ea8
equal deleted inserted replaced
19481:a6205c6203ea 19482:9f11af8f7ef9
    67       |> Symtab.map_entry c (fn specs =>
    67       |> Symtab.map_entry c (fn specs =>
    68         (check_specified c spec specs; Inttab.update spec specs));
    68         (check_specified c spec specs; Inttab.update spec specs));
    69   in (consts', specified') end);
    69   in (consts', specified') end);
    70 
    70 
    71 fun specifications_of (Defs {specified, ...}) c =
    71 fun specifications_of (Defs {specified, ...}) c =
    72   (List.mapPartial
    72   (map_filter
    73     (fn (_, (false, _, _, _)) => NONE
    73     (fn (_, (false, _, _, _)) => NONE
    74       | (_, (true, specname, thyname, ty)) => SOME (ty, (specname, thyname))) o Inttab.dest
    74       | (_, (true, specname, thyname, ty)) => SOME (ty, (specname, thyname))) o Inttab.dest
    75     o the_default Inttab.empty o Symtab.lookup specified) c;
    75     o the_default Inttab.empty o Symtab.lookup specified) c;
    76 
    76 
    77 
    77