Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit d20b149

Browse files
author
Maxim
committed
Sort attribute variant cases on hasAttributes and filterParsingAttrs
1 parent fcd3c32 commit d20b149

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/res_parsetree_viewer.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ let filterParsingAttrs attrs =
192192
match attr with
193193
| ( {
194194
Location.txt =
195-
( "ns.ternary" | "ns.braces" | "res.template" | "res.await"
196-
| "res.async" | "bs" | "ns.iflet" | "ns.namedArgLoc"
197-
| "ns.optional" );
195+
( "bs" | "ns.braces" | "ns.iflet" | "ns.namedArgLoc"
196+
| "ns.optional" | "ns.ternary" | "res.async" | "res.await"
197+
| "res.template" );
198198
},
199199
_ ) ->
200200
false
@@ -341,8 +341,8 @@ let hasAttributes attrs =
341341
match attr with
342342
| ( {
343343
Location.txt =
344-
( "bs" | "res.async" | "res.await" | "res.template" | "ns.ternary"
345-
| "ns.braces" | "ns.iflet" );
344+
( "bs" | "ns.braces" | "ns.iflet" | "ns.ternary" | "res.async"
345+
| "res.await" | "res.template" );
346346
},
347347
_ ) ->
348348
false

0 commit comments

Comments
 (0)