src/Pure/ProofGeneral/proof_general_pgip.ML
changeset 48898 9fc880720663
parent 48874 ff9cd47be39b
child 48927 ef462b5558eb
equal deleted inserted replaced
48897:873fdafc5b09 48898:9fc880720663
   592 
   592 
   593         val thy_name = Path.implode o #1 o Path.split_ext o Path.base
   593         val thy_name = Path.implode o #1 o Path.split_ext o Path.base
   594 
   594 
   595         fun filerefs f =
   595         fun filerefs f =
   596             let val thy = thy_name f
   596             let val thy = thy_name f
   597                 val filerefs = map #1 (#uses (Thy_Load.check_thy [] (Path.dir f) thy))
   597                 val filerefs = map #1 (#uses (Thy_Load.check_thy (Path.dir f) thy))
   598             in
   598             in
   599                 issue_pgip (Setrefs {url=url, thyname=NONE, objtype=SOME PgipTypes.ObjFile,
   599                 issue_pgip (Setrefs {url=url, thyname=NONE, objtype=SOME PgipTypes.ObjFile,
   600                                      name=NONE, idtables=[], fileurls=filerefs})
   600                                      name=NONE, idtables=[], fileurls=filerefs})
   601             end
   601             end
   602 
   602 
   603         fun thyrefs thy =
   603         fun thyrefs thy =
   604             let val thyrefs = #imports (Thy_Load.check_thy [] Path.current thy)
   604             let val thyrefs = #imports (Thy_Load.check_thy Path.current thy)
   605             in
   605             in
   606                 issue_pgip (Setrefs {url=url, thyname=thyname, objtype=SOME PgipTypes.ObjTheory,
   606                 issue_pgip (Setrefs {url=url, thyname=thyname, objtype=SOME PgipTypes.ObjTheory,
   607                                      name=NONE, idtables=[{context=NONE, objtype=PgipTypes.ObjTheory,
   607                                      name=NONE, idtables=[{context=NONE, objtype=PgipTypes.ObjTheory,
   608                                                            ids=thyrefs}], fileurls=[]})
   608                                                            ids=thyrefs}], fileurls=[]})
   609             end
   609             end