src/Pure/Thy/thy_info.ML
changeset 17192 0cfbf76ed313
parent 16504 7c1cb7ce24eb
child 17365 a8e19032497d
equal deleted inserted replaced
17191:ae9901f856aa 17192:0cfbf76ed313
   250 
   250 
   251 fun provide path name info (deps as SOME {present, outdated, master, files}) =
   251 fun provide path name info (deps as SOME {present, outdated, master, files}) =
   252      (if exists (equal path o #1) files then ()
   252      (if exists (equal path o #1) files then ()
   253       else warning (loader_msg "undeclared dependency of theory" [name] ^
   253       else warning (loader_msg "undeclared dependency of theory" [name] ^
   254         " on file: " ^ quote (Path.pack path));
   254         " on file: " ^ quote (Path.pack path));
   255       SOME (make_deps present outdated master (overwrite (files, (path, SOME info)))))
   255       SOME (make_deps present outdated master (AList.update (op =) (path, SOME info) files)))
   256   | provide _ _ _ NONE = NONE;
   256   | provide _ _ _ NONE = NONE;
   257 
   257 
   258 fun run_file path =
   258 fun run_file path =
   259   (case Option.map Context.theory_name (Context.get_context ()) of
   259   (case Option.map Context.theory_name (Context.get_context ()) of
   260     NONE => (ThyLoad.load_file NONE path; ())
   260     NONE => (ThyLoad.load_file NONE path; ())