Skip to content

Commit f35567d

Browse files
committed
Reanalyze annotations.
1 parent 2bcece4 commit f35567d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

jscomp/gentype/Annotation.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ let checkUnsupportedGenTypeAsRenaming attributes =
118118
| Some (loc, _) -> error ~loc
119119
| None -> ())
120120

121-
let getAs attributes = attributes |> getAttributePayload tagIsAs
122-
123121
let getAsString attributes =
124122
match attributes |> getAttributePayload tagIsAs with
125123
| Some (_, StringPayload s) -> Some s

jscomp/gentype/GenTypeCommon.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,24 @@ and field = {
8282

8383
and function_ = {
8484
argTypes: argType list;
85-
componentName: string option;
85+
componentName: string option; [@live]
8686
retType: type_;
8787
typeVars: string list;
88-
uncurried: bool;
88+
uncurried: bool; [@live]
8989
}
9090

9191
and ident = {builtin: bool; name: string; typeArgs: type_ list}
9292

9393
and variant = {
94-
bsStringOrInt: bool;
94+
bsStringOrInt: bool; [@live]
9595
inherits: type_ list;
9696
noPayloads: case list;
9797
payloads: payload list;
9898
polymorphic: bool; (* If true, this is a polymorphic variant *)
9999
unboxed: bool;
100100
}
101101

102-
and payload = {case: case; inlineRecord: bool; numArgs: int; t: type_}
102+
and payload = {case: case; inlineRecord: bool [@live]; numArgs: int; [@live] t: type_}
103103

104104
type label = Nolabel | Label of string | OptLabel of string
105105

0 commit comments

Comments
 (0)