Module Cst.Line
type 'a not_blank
=
{
trailing_blanks : Base.string;
regexp: "
\t
*"orig : Base.string;
Original contents of the line without the trailing blanks or indentation. regexp: "
^\n
*^ \t\n
"data : 'a;
Data associated to the line.
}
type 'a t
=
|
Blank of Base.string
regexp: "
\t
*"|
Not_blank of 'a not_blank
val invariant : ('a -> Base.unit) -> 'a t -> Base.unit
val map : 'a t -> f:(Base.string -> 'a -> 'b) -> 'b t
The callback receive the
orig
anddata
fields
val data : 'a t -> blank:'a -> 'a