Skip to content

Commit c169d85

Browse files
committed
Remove meth attribute when running formatter
1 parent 91c465c commit c169d85

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

compiler/frontend/ast_attributes.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ let process_method_attributes_rev (attrs : t) =
7777
type attr_kind = Nothing | Meth_callback of attr
7878

7979
let process_attributes_rev (attrs : t) : attr_kind * t =
80-
Ext_list.fold_left attrs (Nothing, [])
81-
(fun (st, acc) (({txt}, _) as attr) ->
80+
Ext_list.fold_left attrs (Nothing, []) (fun (st, acc) (({txt}, _) as attr) ->
8281
match (txt, st) with
8382
| "this", (Nothing | Meth_callback _) -> (Meth_callback attr, acc)
8483
| _, _ -> (st, attr :: acc))

compiler/syntax/src/res_parsetree_viewer.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ let filter_parsing_attrs attrs =
198198
match attr with
199199
| ( {
200200
Location.txt =
201-
( "res.braces" | "ns.braces" | "res.iflet" | "res.ternary"
202-
| "res.await" | "res.template" | "res.taggedTemplate"
203-
| "res.patVariantSpread" | "res.dictPattern"
204-
| "res.inlineRecordDefinition" );
201+
( "meth" | "res.braces" | "ns.braces" | "res.iflet"
202+
| "res.ternary" | "res.await" | "res.template"
203+
| "res.taggedTemplate" | "res.patVariantSpread"
204+
| "res.dictPattern" | "res.inlineRecordDefinition" );
205205
},
206206
_ ) ->
207207
false

0 commit comments

Comments
 (0)