Module Ast_convenience_411.Constant

module Constant: sig .. end

Provides a unified abstraction over differences in Parsetree.constant and Asttypes.constant types defined in ocaml 4.03 and 4.02 respectively


type t = Migrate_parsetree.Ast_411.Parsetree.constant = 
| Pconst_integer of string * char option
| Pconst_char of char
| Pconst_string of string * Migrate_parsetree.Ast_411.Location.t * string option
| Pconst_float of string * char option
val of_constant : Migrate_parsetree.Ast_411.Parsetree.constant ->
t

Convert Asttypes.constant to Constant.t

val to_constant : t ->
Migrate_parsetree.Ast_411.Parsetree.constant

Convert Constant.t to Asttypes.constant