Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
126
Issues
126
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
06989b5d
Commit
06989b5d
authored
May 04, 2020
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bindings for the URL class.
parent
82455f53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
src/trywhy3/bindings.ml
src/trywhy3/bindings.ml
+32
-2
No files found.
src/trywhy3/bindings.ml
View file @
06989b5d
...
...
@@ -17,6 +17,36 @@ let get_global ident =
let
res
:
'
a
Js
.
optdef
=
Js
.
Unsafe
.(
get
global
)
(
Js
.
string
ident
)
in
check_def
ident
res
module
Url
=
struct
class
type
urlSearchParams
=
object
method
get
:
js_string
t
->
js_string
t
opt
meth
method
set
:
js_string
t
->
js_string
t
->
unit
meth
method
delete
:
js_string
t
->
unit
meth
method
toString
:
js_string
t
meth
end
class
type
url
=
object
method
hash
:
js_string
t
prop
method
host
:
js_string
t
prop
method
hostname
:
js_string
t
prop
method
href
:
js_string
t
prop
method
origin
:
js_string
t
readonly_prop
method
password
:
js_string
t
prop
method
pathname
:
js_string
t
prop
method
port
:
js_string
t
prop
method
protocol
:
js_string
t
prop
method
search
:
js_string
t
prop
method
searchParams
:
urlSearchParams
t
readonly_prop
method
username
:
js_string
t
prop
end
let
_URL
:
(
js_string
t
->
url
t
)
constr
=
Unsafe
.
global
##.
_URL
end
module
Ace
()
=
struct
type
marker
...
...
@@ -79,9 +109,9 @@ module Ace () = struct
let
ace
:
ace
Js
.
t
=
get_global
"ace"
let
edit
s
=
ace
##
edit
s
let
range
:
(
int
->
int
->
int
->
int
->
range
Js
.
t
)
Js
.
constr
=
let
range
:
(
int
->
int
->
int
->
int
->
range
t
)
constr
=
let
r
=
Unsafe
.
get
(
ace
##
require
(
Js
.
string
"ace/range"
))
(
Js
.
string
"Range"
)
Unsafe
.
get
(
ace
##
require
(
string
"ace/range"
))
(
string
"Range"
)
in
check_def
"Range"
r
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment