src/Pure/General/name_space.ML
changeset 59883 12a89103cae6
parent 59881 547bf78e5d4d
child 59884 bbf49d7dfd6f
--- a/src/Pure/General/name_space.ML	Tue Mar 31 19:39:05 2015 +0200
+++ b/src/Pure/General/name_space.ML	Tue Mar 31 20:07:37 2015 +0200
@@ -12,7 +12,6 @@
   type T
   val empty: string -> T
   val kind_of: T -> string
-  val defined_entry: T -> string -> bool
   val the_entry: T -> string ->
     {concealed: bool, group: serial option, theory_name: string, pos: Position.T, serial: serial}
   val entry_ord: T -> string * string -> order
@@ -62,6 +61,7 @@
   val check_reports: Context.generic -> 'a table ->
     xstring * Position.T list -> (string * Position.report list) * 'a
   val check: Context.generic -> 'a table -> xstring * Position.T -> string * 'a
+  val defined: 'a table -> string -> bool
   val lookup_key: 'a table -> string -> (string * 'a) option
   val get: 'a table -> string -> 'a
   val define: Context.generic -> bool -> binding * 'a -> 'a table -> string * 'a table
@@ -147,8 +147,6 @@
 
 fun kind_of (Name_Space {kind, ...}) = kind;
 
-fun defined_entry (Name_Space {entries, ...}) = Change_Table.defined entries;
-
 fun the_entry (Name_Space {kind, entries, ...}) name =
   (case Change_Table.lookup entries name of
     NONE => error (undefined kind name)
@@ -497,6 +495,7 @@
     val _ = Position.reports reports;
   in (name, x) end;
 
+fun defined (Table (_, tab)) name = Change_Table.defined tab name;
 fun lookup_key (Table (_, tab)) name = Change_Table.lookup_key tab name;
 
 fun get table name =