src/Pure/General/name_space.ML
changeset 63003 bf5fcc65586b
parent 62987 dc8a8a7559e7
child 63231 54197a7c1bbd
equal deleted inserted replaced
63002:56cf1249ee20 63003:bf5fcc65586b
   379 val root_path = map_path (fn _ => []);
   379 val root_path = map_path (fn _ => []);
   380 val parent_path = map_path (perhaps (try (#1 o split_last)));
   380 val parent_path = map_path (perhaps (try (#1 o split_last)));
   381 fun mandatory_path elems = map_path (fn path => path @ [(elems, true)]);
   381 fun mandatory_path elems = map_path (fn path => path @ [(elems, true)]);
   382 
   382 
   383 fun qualified_path mandatory binding = map_path (fn path =>
   383 fun qualified_path mandatory binding = map_path (fn path =>
   384   path @ Binding.path_of (Binding.qualified mandatory "" binding));
   384   path @ Binding.path_of (Binding.qualify_name mandatory binding ""));
   385 
   385 
   386 val global_naming = make_naming ([], NONE, false, NONE, "", []);
   386 val global_naming = make_naming ([], NONE, false, NONE, "", []);
   387 val local_naming = global_naming |> add_path Long_Name.localN;
   387 val local_naming = global_naming |> add_path Long_Name.localN;
   388 
   388 
   389 
   389