File tree 5 files changed +49
-9
lines changed
5 files changed +49
-9
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,18 @@ let handle_config (config : Parsetree.expression option) =
46
46
| Pexp_record (
47
47
[
48
48
{txt = Lident " jsType" },
49
- {pexp_desc = Pexp_construct ({txt = Lident (" true" | " false" as x )}, None )}],None )
50
- -> x = " true"
49
+ {pexp_desc =
50
+ (Pexp_construct
51
+ (
52
+ {txt =
53
+ Lident (" true"
54
+ | " false"
55
+ as x)}, None )
56
+ | Pexp_ident {txt = Lident (" jsType" as x)}
57
+ )
58
+ }
59
+ ],None )
60
+ -> not (x = " false" )
51
61
| _ -> invalid_config config)
52
62
| None -> false
53
63
let noloc = Location. none
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ type c =
53
53
| D1
54
54
| D2
55
55
| D3
56
- [@@ bs.deriving {jsMapper = {jsType = true }}]
56
+ [@@ bs.deriving {jsMapper = {jsType }}]
57
57
58
58
let c0 = cToJs D0
59
59
Original file line number Diff line number Diff line change @@ -30923,8 +30923,18 @@ let handle_config (config : Parsetree.expression option) =
30923
30923
| Pexp_record (
30924
30924
[
30925
30925
{txt = Lident "jsType"},
30926
- {pexp_desc = Pexp_construct ({txt = Lident ("true" | "false" as x )}, None)}],None)
30927
- -> x = "true"
30926
+ {pexp_desc =
30927
+ (Pexp_construct
30928
+ (
30929
+ {txt =
30930
+ Lident ("true"
30931
+ | "false"
30932
+ as x)}, None)
30933
+ | Pexp_ident {txt = Lident ("jsType" as x)}
30934
+ )
30935
+ }
30936
+ ],None)
30937
+ -> not (x = "false")
30928
30938
| _ -> invalid_config config)
30929
30939
| None -> false
30930
30940
let noloc = Location.none
Original file line number Diff line number Diff line change @@ -12871,8 +12871,18 @@ let handle_config (config : Parsetree.expression option) =
12871
12871
| Pexp_record (
12872
12872
[
12873
12873
{txt = Lident "jsType"},
12874
- {pexp_desc = Pexp_construct ({txt = Lident ("true" | "false" as x )}, None)}],None)
12875
- -> x = "true"
12874
+ {pexp_desc =
12875
+ (Pexp_construct
12876
+ (
12877
+ {txt =
12878
+ Lident ("true"
12879
+ | "false"
12880
+ as x)}, None)
12881
+ | Pexp_ident {txt = Lident ("jsType" as x)}
12882
+ )
12883
+ }
12884
+ ],None)
12885
+ -> not (x = "false")
12876
12886
| _ -> invalid_config config)
12877
12887
| None -> false
12878
12888
let noloc = Location.none
Original file line number Diff line number Diff line change @@ -105690,8 +105690,18 @@ let handle_config (config : Parsetree.expression option) =
105690
105690
| Pexp_record (
105691
105691
[
105692
105692
{txt = Lident "jsType"},
105693
- {pexp_desc = Pexp_construct ({txt = Lident ("true" | "false" as x )}, None)}],None)
105694
- -> x = "true"
105693
+ {pexp_desc =
105694
+ (Pexp_construct
105695
+ (
105696
+ {txt =
105697
+ Lident ("true"
105698
+ | "false"
105699
+ as x)}, None)
105700
+ | Pexp_ident {txt = Lident ("jsType" as x)}
105701
+ )
105702
+ }
105703
+ ],None)
105704
+ -> not (x = "false")
105695
105705
| _ -> invalid_config config)
105696
105706
| None -> false
105697
105707
let noloc = Location.none
You can’t perform that action at this time.
0 commit comments