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 =
175175 ] )
176176let make_braces_attr loc = (Location. mkloc " res.braces" loc, Parsetree. PStr [] )
177177let template_literal_attr = (Location. mknoloc " res.template" , Parsetree. PStr [] )
178- let makePatVariantSpreadAttr =
178+ let make_pat_variant_spread_attr =
179179 (Location. mknoloc " res.patVariantSpread" , Parsetree. PStr [] )
180180
181181let tagged_template_literal_attr =
@@ -1083,7 +1083,7 @@ let rec parse_pattern ?(alias = true) ?(or_ = true) p =
10831083 Parser. next p;
10841084 let ident = parse_value_path p in
10851085 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
10871087 | Hash -> (
10881088 Parser. next p;
10891089 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 =
9797 | _ -> false )
9898 attrs
9999
100- let hasResPatVariantSpreadAttribute attrs =
100+ let has_res_pat_variant_spread_attribute attrs =
101101 List. exists
102102 (function
103103 | {Location. txt = "res.patVariantSpread" } , _ -> true
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ val process_function_attributes :
2626 Parsetree .attributes -> function_attributes_info
2727
2828val has_await_attribute : Parsetree .attributes -> bool
29- val hasResPatVariantSpreadAttribute : Parsetree .attributes -> bool
29+ val has_res_pat_variant_spread_attribute : Parsetree .attributes -> bool
3030
3131type if_condition_kind =
3232 | 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 =
24062406 Doc. group (Doc. concat [variant_name; args_doc])
24072407 | Ppat_type ident ->
24082408 let prefix =
2409- if ParsetreeViewer. hasResPatVariantSpreadAttribute p.ppat_attributes
2409+ if
2410+ ParsetreeViewer. has_res_pat_variant_spread_attribute p.ppat_attributes
24102411 then " "
24112412 else " #"
24122413 in
You can’t perform that action at this time.
0 commit comments