This repository was archived by the owner on Apr 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -166,16 +166,15 @@ let import_desc (d : import_desc) =
166166let export (e : export ) = export_desc e.it.edesc
167167let import (i : import ) = import_desc i.it.idesc
168168
169- let start (s : idx option ) =
170- funcs (Lib.Option. get (Lib.Option. map idx s) Set. empty)
169+ let start (s : idx ) = funcs (idx s)
171170
172171let module_ (m : module_ ) =
173172 list type_ m.it.types ++
174173 list global m.it.globals ++
175174 list table m.it.tables ++
176175 list memory m.it.memories ++
177176 list func m.it.funcs ++
178- start m.it.start ++
177+ opt start m.it.start ++
179178 list elem m.it.elems ++
180179 list data m.it.datas ++
181180 list import m.it.imports ++
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ val elem : Ast.elem_segment -> t
2929val data : Ast .data_segment -> t
3030val export : Ast .export -> t
3131val import : Ast .import -> t
32- val start : Ast .idx option -> t
32+ val start : Ast .idx -> t
3333
3434val module_ : Ast .module_ -> t
3535
36+ val opt : ('a -> t ) -> 'a option -> t
3637val list : ('a -> t ) -> 'a list -> t
You can’t perform that action at this time.
0 commit comments