We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3204c33 commit 3ed6c34Copy full SHA for 3ed6c34
compiler/lib/code.mli
@@ -185,6 +185,9 @@ type constant =
185
| Tuple of int * constant array * array_or_not
186
| Int of int32
187
188
+(** Guaranteed equality in terms of both OCaml [(=)] and Javascript [(==)]: if
189
+ [constant_equal a b = Some v], then [Poly.(=) a b = v] and
190
+ [Js_of_ocaml.Js.equals a b = v]. This is used for optimization purposes. *)
191
val constant_equal : constant -> constant -> bool option
192
193
type loc =
0 commit comments