Skip to content

Commit 44d7d01

Browse files
committed
add bs_get_index attribute
1 parent 34b830a commit 44d7d01

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

jscomp/syntax/ast_attributes.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ let is_bs (attr : attr) =
357357

358358

359359
let bs_get : attr
360-
= {txt = "bs.get"; loc = locg}, Ast_payload.empty
360+
= {txt = "bs.get"; loc = locg}, Ast_payload.empty
361+
362+
let bs_get_index : attr =
363+
{txt = "bs.get_index"; loc = locg}, Ast_payload.empty
361364

362365
let bs_get_arity : attr
363366
= {txt = "internal.arity"; loc = locg},

jscomp/syntax/ast_attributes.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ val is_bs_as : attr -> bool *)
107107

108108

109109
val bs_get : attr
110+
val bs_get_index : attr
110111
val bs_get_arity : attr
111112
val bs_set : attr
112113
val bs_return_undefined : attr

0 commit comments

Comments
 (0)