src/Pure/Isar/proof_context.ML
changeset 69349 7cef9e386ffe
parent 69289 bf6937af7fe8
child 69575 f77cc54f6d47
--- a/src/Pure/Isar/proof_context.ML	Tue Nov 27 16:22:12 2018 +0100
+++ b/src/Pure/Isar/proof_context.ML	Tue Nov 27 21:07:39 2018 +0100
@@ -460,7 +460,7 @@
 fun read_class ctxt text =
   let
     val source = Syntax.read_input text;
-    val (c, reports) = check_class ctxt (Input.source_content source, Input.pos_of source);
+    val (c, reports) = check_class ctxt (Input.source_content source);
     val _ = Position.reports reports;
   in c end;
 
@@ -525,8 +525,7 @@
 fun read_type_name ctxt flags text =
   let
     val source = Syntax.read_input text;
-    val (T, reports) =
-      check_type_name ctxt flags (Input.source_content source, Input.pos_of source);
+    val (T, reports) = check_type_name ctxt flags (Input.source_content source);
     val _ = Position.reports reports;
   in T end;
 
@@ -573,7 +572,8 @@
 fun read_const ctxt flags text =
   let
     val source = Syntax.read_input text;
-    val (t, reports) = check_const ctxt flags (Input.source_content source, [Input.pos_of source]);
+    val (c, pos) = Input.source_content source;
+    val (t, reports) = check_const ctxt flags (c, [pos]);
     val _ = Position.reports reports;
   in t end;