src/Pure/Syntax/syntax_phases.ML
changeset 55954 a29aefc88c8d
parent 55953 b19373bd7ea8
child 55955 e8f1bf005661
equal deleted inserted replaced
55953:b19373bd7ea8 55954:a29aefc88c8d
   220 
   220 
   221 
   221 
   222 (* decode_term -- transform parse tree into raw term *)
   222 (* decode_term -- transform parse tree into raw term *)
   223 
   223 
   224 fun decode_const ctxt c =
   224 fun decode_const ctxt c =
   225   let val (Const (c', _), _) = Proof_Context.check_const_proper ctxt false (c, Position.none)
   225   let
       
   226     val (Const (c', _), _) =
       
   227       Proof_Context.check_const ctxt {proper = true, strict = false} dummyT (c, Position.none);
   226   in c' end;
   228   in c' end;
   227 
   229 
   228 fun decode_term _ (result as (_: Position.report_text list, Exn.Exn _)) = result
   230 fun decode_term _ (result as (_: Position.report_text list, Exn.Exn _)) = result
   229   | decode_term ctxt (reports0, Exn.Res tm) =
   231   | decode_term ctxt (reports0, Exn.Res tm) =
   230       let
   232       let