-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d153871
commit e524201
Showing
317 changed files
with
7,447 additions
and
7,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
profile=janestreet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] | ||
[@@@ocaml.warning "-7-32-39"] | ||
|
||
open! Core | ||
open! Import | ||
open Gen_js_api | ||
type t = { | ||
x: int ; | ||
y: int ; | ||
w: int ; | ||
h: int } | ||
|
||
type t = | ||
{ x : int | ||
; y : int | ||
; w : int | ||
; h : int | ||
} | ||
|
||
let rec t_of_js : Ojs.t -> t = | ||
fun (x2 : Ojs.t) -> | ||
{ | ||
x = (Ojs.int_of_js (Ojs.get_prop_ascii x2 "x")); | ||
y = (Ojs.int_of_js (Ojs.get_prop_ascii x2 "y")); | ||
w = (Ojs.int_of_js (Ojs.get_prop_ascii x2 "w")); | ||
h = (Ojs.int_of_js (Ojs.get_prop_ascii x2 "h")) | ||
} | ||
{ x = Ojs.int_of_js (Ojs.get_prop_ascii x2 "x") | ||
; y = Ojs.int_of_js (Ojs.get_prop_ascii x2 "y") | ||
; w = Ojs.int_of_js (Ojs.get_prop_ascii x2 "w") | ||
; h = Ojs.int_of_js (Ojs.get_prop_ascii x2 "h") | ||
} | ||
|
||
and t_to_js : t -> Ojs.t = | ||
fun (x1 : t) -> | ||
Ojs.obj | ||
[|("x", (Ojs.int_to_js x1.x));("y", (Ojs.int_to_js x1.y));("w", | ||
(Ojs.int_to_js | ||
x1.w)); | ||
("h", (Ojs.int_to_js x1.h))|] | ||
Ojs.obj | ||
[| "x", Ojs.int_to_js x1.x | ||
; "y", Ojs.int_to_js x1.y | ||
; "w", Ojs.int_to_js x1.w | ||
; "h", Ojs.int_to_js x1.h | ||
|] | ||
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
open! Core | ||
open Import | ||
open Import | ||
|
||
include Js_obj.Make (struct | ||
type t = Dom_html.canvasRenderingContext2D | ||
end) | ||
type t = Dom_html.canvasRenderingContext2D | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
open! Core | ||
open Import | ||
open Import | ||
include Js_obj.S with type t = Dom_html.canvasRenderingContext2D Js.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
open! Core | ||
open! Import | ||
open Gen_js_api | ||
open Gen_js_api | ||
|
||
type t = Css_gen.Color.t [@@deriving sexp] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
open! Core | ||
open! Import | ||
open Gen_js_api | ||
open Gen_js_api | ||
|
||
type t = Css_gen.Color.t [@@deriving sexp] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.