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
382382
383383 (* TODO #11
384384 1. check args -- error checking
385- 2. support [@@bs. scope "window"]
385+ 2. support [@@scope "window"]
386386 we need know whether we should call [add_js_module] or not
387387 *)
388388 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
315315 | _ ->
316316 Bs_syntaxerr. err loc Illegal_attribute
317317 end
318- | "bs.scope" ->
318+ | "bs.scope" | "scope" ->
319319 begin match Ast_payload. assert_strings loc payload with
320320 | [] ->
321321 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"
1414
1515module M = struct
1616 external infinity : float = " POSITIVE_INFINITY"
17- [@@ bs. val] [@@ bs. scope "Number" ]
17+ [@@ val] [@@ scope "Number" ]
1818 external neg_infinity : float = " NEGATIVE_INFINITY"
1919 [@@ bs.val] [@@ bs.scope "Number" ]
2020 external nan : float = " NaN"
Original file line number Diff line number Diff line change @@ -109025,7 +109025,7 @@ let translate_ffi
109025109025
109026109026 (* TODO #11
109027109027 1. check args -- error checking
109028- 2. support [@@bs. scope "window"]
109028+ 2. support [@@scope "window"]
109029109029 we need know whether we should call [add_js_module] or not
109030109030 *)
109031109031 translate_scoped_module_val external_module_name name scopes
@@ -404913,7 +404913,7 @@ let parse_external_attributes
404913404913 | _ ->
404914404914 Bs_syntaxerr.err loc Illegal_attribute
404915404915 end
404916- | "bs.scope" ->
404916+ | "bs.scope" | "scope" ->
404917404917 begin match Ast_payload.assert_strings loc payload with
404918404918 | [] ->
404919404919 Bs_syntaxerr.err loc Illegal_attribute
Original file line number Diff line number Diff line change @@ -84648,7 +84648,7 @@ type call_info =
8464884648 | Call_ml (* called by plain ocaml expression *)
8464984649 | Call_builtin_runtime (* built-in externals *)
8465084650 | Call_na
84651- (* either from [@@bs. val] or not available,
84651+ (* either from [@@val] or not available,
8465284652 such calls does not follow such rules
8465384653 {[ fun x y -> f x y === f ]} when [f] is an atom
8465484654 *)
@@ -109025,7 +109025,7 @@ let translate_ffi
109025109025
109026109026 (* TODO #11
109027109027 1. check args -- error checking
109028- 2. support [@@bs. scope "window"]
109028+ 2. support [@@scope "window"]
109029109029 we need know whether we should call [add_js_module] or not
109030109030 *)
109031109031 translate_scoped_module_val external_module_name name scopes
@@ -404913,7 +404913,7 @@ let parse_external_attributes
404913404913 | _ ->
404914404914 Bs_syntaxerr.err loc Illegal_attribute
404915404915 end
404916- | "bs.scope" ->
404916+ | "bs.scope" | "scope" ->
404917404917 begin match Ast_payload.assert_strings loc payload with
404918404918 | [] ->
404919404919 Bs_syntaxerr.err loc Illegal_attribute
Original file line number Diff line number Diff line change @@ -391552,7 +391552,7 @@ let translate_ffi
391552391552
391553391553 (* TODO #11
391554391554 1. check args -- error checking
391555- 2. support [@@bs. scope "window"]
391555+ 2. support [@@scope "window"]
391556391556 we need know whether we should call [add_js_module] or not
391557391557 *)
391558391558 translate_scoped_module_val external_module_name name scopes
@@ -407793,7 +407793,7 @@ let parse_external_attributes
407793407793 | _ ->
407794407794 Bs_syntaxerr.err loc Illegal_attribute
407795407795 end
407796- | "bs.scope" ->
407796+ | "bs.scope" | "scope" ->
407797407797 begin match Ast_payload.assert_strings loc payload with
407798407798 | [] ->
407799407799 Bs_syntaxerr.err loc Illegal_attribute
You can’t perform that action at this time.
0 commit comments