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 |