File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ let suppress_fragile_match_warning_attr =
175
175
] )
176
176
let make_braces_attr loc = (Location. mkloc " res.braces" loc, Parsetree. PStr [] )
177
177
let template_literal_attr = (Location. mknoloc " res.template" , Parsetree. PStr [] )
178
- let makePatVariantSpreadAttr =
178
+ let make_pat_variant_spread_attr =
179
179
(Location. mknoloc " res.patVariantSpread" , Parsetree. PStr [] )
180
180
181
181
let tagged_template_literal_attr =
@@ -1083,7 +1083,7 @@ let rec parse_pattern ?(alias = true) ?(or_ = true) p =
1083
1083
Parser. next p;
1084
1084
let ident = parse_value_path p in
1085
1085
let loc = mk_loc start_pos ident.loc.loc_end in
1086
- Ast_helper.Pat. type_ ~loc ~attrs: (makePatVariantSpreadAttr :: attrs) ident
1086
+ Ast_helper.Pat. type_ ~loc ~attrs: (make_pat_variant_spread_attr :: attrs) ident
1087
1087
| Hash -> (
1088
1088
Parser. next p;
1089
1089
if p.Parser. token == DotDotDot then (
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ let has_await_attribute attrs =
97
97
| _ -> false )
98
98
attrs
99
99
100
- let hasResPatVariantSpreadAttribute attrs =
100
+ let has_res_pat_variant_spread_attribute attrs =
101
101
List. exists
102
102
(function
103
103
| {Location. txt = "res.patVariantSpread" } , _ -> true
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ val process_function_attributes :
26
26
Parsetree .attributes -> function_attributes_info
27
27
28
28
val has_await_attribute : Parsetree .attributes -> bool
29
- val hasResPatVariantSpreadAttribute : Parsetree .attributes -> bool
29
+ val has_res_pat_variant_spread_attribute : Parsetree .attributes -> bool
30
30
31
31
type if_condition_kind =
32
32
| If of Parsetree .expression
Original file line number Diff line number Diff line change @@ -2406,7 +2406,8 @@ and print_pattern ~state (p : Parsetree.pattern) cmt_tbl =
2406
2406
Doc. group (Doc. concat [variant_name; args_doc])
2407
2407
| Ppat_type ident ->
2408
2408
let prefix =
2409
- if ParsetreeViewer. hasResPatVariantSpreadAttribute p.ppat_attributes
2409
+ if
2410
+ ParsetreeViewer. has_res_pat_variant_spread_attribute p.ppat_attributes
2410
2411
then " "
2411
2412
else " #"
2412
2413
in
You can’t perform that action at this time.
0 commit comments