src/Pure/context.ML
changeset 48992 0518bf89c777
parent 48638 22d65e375c01
child 50431 955c4aa44f60
equal deleted inserted replaced
48991:0350245dec1c 48992:0518bf89c777
   133 
   133 
   134 fun invoke name f k x =
   134 fun invoke name f k x =
   135   (case Datatab.lookup (Synchronized.value kinds) k of
   135   (case Datatab.lookup (Synchronized.value kinds) k of
   136     SOME kind =>
   136     SOME kind =>
   137       if ! timing andalso name <> "" then
   137       if ! timing andalso name <> "" then
   138         Timing.cond_timeit true ("Theory_Data." ^ name ^ Position.str_of (#pos kind))
   138         Timing.cond_timeit true ("Theory_Data." ^ name ^ Position.here (#pos kind))
   139           (fn () => f kind x)
   139           (fn () => f kind x)
   140       else f kind x
   140       else f kind x
   141   | NONE => raise Fail "Invalid theory data identifier");
   141   | NONE => raise Fail "Invalid theory data identifier");
   142 
   142 
   143 in
   143 in