File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ let translate_ffi
382
382
383
383
(* TODO #11
384
384
1. check args -- error checking
385
- 2. support [@@bs. scope "window"]
385
+ 2. support [@@scope "window"]
386
386
we need know whether we should call [add_js_module] or not
387
387
*)
388
388
translate_scoped_module_val external_module_name name scopes
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ let parse_external_attributes
315
315
| _ ->
316
316
Bs_syntaxerr. err loc Illegal_attribute
317
317
end
318
- | "bs.scope" ->
318
+ | "bs.scope" | "scope" ->
319
319
begin match Ast_payload. assert_strings loc payload with
320
320
| [] ->
321
321
Bs_syntaxerr. err loc Illegal_attribute
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ let u () = "xx %s" ^^ "yy"
14
14
15
15
module M = struct
16
16
external infinity : float = " POSITIVE_INFINITY"
17
- [@@ bs. val] [@@ bs. scope "Number" ]
17
+ [@@ val] [@@ scope "Number" ]
18
18
external neg_infinity : float = " NEGATIVE_INFINITY"
19
19
[@@ bs.val] [@@ bs.scope "Number" ]
20
20
external nan : float = " NaN"
Original file line number Diff line number Diff line change @@ -109025,7 +109025,7 @@ let translate_ffi
109025
109025
109026
109026
(* TODO #11
109027
109027
1. check args -- error checking
109028
- 2. support [@@bs. scope "window"]
109028
+ 2. support [@@scope "window"]
109029
109029
we need know whether we should call [add_js_module] or not
109030
109030
*)
109031
109031
translate_scoped_module_val external_module_name name scopes
@@ -404913,7 +404913,7 @@ let parse_external_attributes
404913
404913
| _ ->
404914
404914
Bs_syntaxerr.err loc Illegal_attribute
404915
404915
end
404916
- | "bs.scope" ->
404916
+ | "bs.scope" | "scope" ->
404917
404917
begin match Ast_payload.assert_strings loc payload with
404918
404918
| [] ->
404919
404919
Bs_syntaxerr.err loc Illegal_attribute
Original file line number Diff line number Diff line change @@ -84648,7 +84648,7 @@ type call_info =
84648
84648
| Call_ml (* called by plain ocaml expression *)
84649
84649
| Call_builtin_runtime (* built-in externals *)
84650
84650
| Call_na
84651
- (* either from [@@bs. val] or not available,
84651
+ (* either from [@@val] or not available,
84652
84652
such calls does not follow such rules
84653
84653
{[ fun x y -> f x y === f ]} when [f] is an atom
84654
84654
*)
@@ -109025,7 +109025,7 @@ let translate_ffi
109025
109025
109026
109026
(* TODO #11
109027
109027
1. check args -- error checking
109028
- 2. support [@@bs. scope "window"]
109028
+ 2. support [@@scope "window"]
109029
109029
we need know whether we should call [add_js_module] or not
109030
109030
*)
109031
109031
translate_scoped_module_val external_module_name name scopes
@@ -404913,7 +404913,7 @@ let parse_external_attributes
404913
404913
| _ ->
404914
404914
Bs_syntaxerr.err loc Illegal_attribute
404915
404915
end
404916
- | "bs.scope" ->
404916
+ | "bs.scope" | "scope" ->
404917
404917
begin match Ast_payload.assert_strings loc payload with
404918
404918
| [] ->
404919
404919
Bs_syntaxerr.err loc Illegal_attribute
Original file line number Diff line number Diff line change @@ -391552,7 +391552,7 @@ let translate_ffi
391552
391552
391553
391553
(* TODO #11
391554
391554
1. check args -- error checking
391555
- 2. support [@@bs. scope "window"]
391555
+ 2. support [@@scope "window"]
391556
391556
we need know whether we should call [add_js_module] or not
391557
391557
*)
391558
391558
translate_scoped_module_val external_module_name name scopes
@@ -407793,7 +407793,7 @@ let parse_external_attributes
407793
407793
| _ ->
407794
407794
Bs_syntaxerr.err loc Illegal_attribute
407795
407795
end
407796
- | "bs.scope" ->
407796
+ | "bs.scope" | "scope" ->
407797
407797
begin match Ast_payload.assert_strings loc payload with
407798
407798
| [] ->
407799
407799
Bs_syntaxerr.err loc Illegal_attribute
You can’t perform that action at this time.
0 commit comments