src/Pure/General/position.ML
changeset 74174 a3b0fc510705
parent 74171 a9e79c3645c4
child 74176 b70714530045
--- a/src/Pure/General/position.ML	Mon Aug 23 13:23:48 2021 +0200
+++ b/src/Pure/General/position.ML	Mon Aug 23 14:24:57 2021 +0200
@@ -17,8 +17,8 @@
   val end_offset_of: T -> int option
   val file_of: T -> string option
   val id_of: T -> string option
-  val advance_symbol: Symbol.symbol -> T -> T
-  val advance_symbol_explode: string -> T -> T
+  val symbol: Symbol.symbol -> T -> T
+  val symbol_explode: string -> T -> T
   val advance_offsets: int -> T -> T
   val distance_of: T * T -> int option
   val none: T
@@ -120,10 +120,10 @@
 fun invalid_count (i, j, _: int) =
   not (valid i orelse valid j);
 
-fun advance_symbol sym (pos as (Pos (count, props))) =
+fun symbol sym (pos as (Pos (count, props))) =
   if invalid_count count then pos else Pos (advance_count sym count, props);
 
-val advance_symbol_explode = fold advance_symbol o Symbol.explode;
+val symbol_explode = fold symbol o Symbol.explode;
 
 fun advance_offsets offset (pos as (Pos (count as (i, j, k), props))) =
   if offset = 0 orelse invalid_count count then pos