forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRuntime.mli
35 lines (27 loc) · 1.26 KB
/
Runtime.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
open GenTypeCommon
type recordGen
type recordValue
type moduleItem
type moduleAccessPath = Root of string | Dot of moduleAccessPath * moduleItem
val accessVariant : index:int -> string -> string
val checkMutableObjectField : previousName:string -> name:string -> bool
val default : string
val emitModuleAccessPath : config:Config.t -> moduleAccessPath -> string
val emitJSVariantGetLabel : polymorphic:bool -> string -> string
val emitJSVariantGetPayload : polymorphic:bool -> string -> string
val emitJSVariantWithPayload :
label:string -> polymorphic:bool -> string -> string
val emitVariantGetLabel : polymorphic:bool -> string -> string
val emitVariantGetPayload :
inlineRecord:bool -> numArgs:int -> polymorphic:bool -> string -> string
val emitVariantLabel : polymorphic:bool -> string -> string
val emitVariantWithPayload :
inlineRecord:bool -> label:string -> polymorphic:bool -> string list -> string
val isMutableObjectField : string -> bool
val mangleObjectField : string -> string
val newModuleItem : name:string -> moduleItem
val newRecordValue : unboxed:bool -> recordGen -> recordValue
val recordGen : unit -> recordGen
val recordValueToString : recordValue -> string
val jsVariantTag : polymorphic:bool -> string
val jsVariantValue : polymorphic:bool -> string