Skip to content

Commit 54a5352

Browse files
committed
more pattern matching
1 parent 5011f24 commit 54a5352

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/typing/typeloadParse.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ let resolve_module_file com m remap p =
123123
| (EEnum d,_) :: _ -> d.d_meta
124124
| (EAbstract d,_) :: _ -> d.d_meta
125125
| (ETypedef d,_) :: _ -> d.d_meta
126+
| (EStatic d,_) :: _ -> d.d_meta
126127
| [] -> []
127128
in
128-
let meta = match parse_result with
129+
let meta = match parse_result with
129130
| ParseSuccess((_,decls),_,_) -> loop decls
130131
| ParseError _ -> []
131132
in
@@ -332,6 +333,7 @@ let parse_module ctx m p =
332333
| EEnum d -> build EPrivate d
333334
| ETypedef d -> build EPrivate d
334335
| EAbstract d -> build AbPrivate d
336+
| EStatic d -> build (AStatic,null_pos) d
335337
| EImport _ | EUsing _ -> acc
336338
) [(EImport (List.map (fun s -> s,null_pos) (!remap @ [snd m]),INormal),null_pos)] decls)
337339
else

0 commit comments

Comments
 (0)