@@ -270,14 +270,14 @@ and goutput_permission _env os p =
270270
271271
272272 match p with
273- | PermissionSet ( sa, b) ->
273+ | ILSecurityDecl ( sa, b) ->
274274 output_ string os " .permissionset "
275275 output_ security_ action os sa
276276 output_ string os " = ("
277277 output_ bytes os b
278278 output_ string os " )"
279279
280- and goutput_security_decls env os ( ps : ILPermissions ) = output_ seq " " ( goutput_ permission env) os ps.AsList
280+ and goutput_security_decls env os ( ps : ILSecurityDecls ) = output_ seq " " ( goutput_ permission env) os ps.AsList
281281
282282and goutput_gparam env os ( gf : ILGenericParameterDef ) =
283283 output_ string os ( tyvar_ generator gf.Name);
@@ -469,30 +469,30 @@ let output_custom_attr_data os data =
469469 output_ string os " = " ; output_ parens output_ bytes os data
470470
471471let goutput_custom_attr env os attr =
472- output_ string os " .custom " ;
473- goutput_ mspec env os attr.Method;
472+ output_ string os " .custom "
473+ goutput_ mspec env os attr.Method
474474 output_ custom_ attr_ data os attr.Data
475475
476476let goutput_custom_attrs env os ( attrs : ILAttributes ) =
477477 List.iter ( fun attr -> goutput_ custom_ attr env os attr; output_ string os " \n " ) attrs.AsList
478478
479- let goutput_fdef _tref env os fd =
480- output_ string os " .field " ;
479+ let goutput_fdef _tref env os ( fd : ILFieldDef ) =
480+ output_ string os " .field "
481481 match fd.Offset with Some i -> output_ string os " [" ; output_ i32 os i; output_ string os " ] " | None -> ()
482482 match fd.Marshal with Some _ i -> output_ string os " // marshal attribute not printed\n " ; | None -> ()
483- output_ member_ access os fd.Access;
484- output_ string os " " ;
485- if fd.IsStatic then output_ string os " static " ;
486- if fd.IsLiteral then output_ string os " literal " ;
487- if fd.IsSpecialName then output_ string os " specialname rtspecialname " ;
488- if fd.IsInitOnly then output_ string os " initonly " ;
489- if fd.NotSerialized then output_ string os " notserialized " ;
490- goutput_ typ env os fd.Type ;
491- output_ string os " " ;
492- output_ id os fd.Name;
493- output_ option output_ at os fd.Data;
494- output_ option output_ field_ init os fd.LiteralValue;
495- output_ string os " \n " ;
483+ output_ member_ access os fd.Access
484+ output_ string os " "
485+ if fd.IsStatic then output_ string os " static "
486+ if fd.IsLiteral then output_ string os " literal "
487+ if fd.IsSpecialName then output_ string os " specialname rtspecialname "
488+ if fd.IsInitOnly then output_ string os " initonly "
489+ if fd.NotSerialized then output_ string os " notserialized "
490+ goutput_ typ env os fd.FieldType
491+ output_ string os " "
492+ output_ id os fd.Name
493+ output_ option output_ at os fd.Data
494+ output_ option output_ field_ init os fd.LiteralValue
495+ output_ string os " \n "
496496 goutput_ custom_ attrs env os fd.CustomAttrs
497497
498498
@@ -768,7 +768,7 @@ let goutput_ilmbody env os (il: ILMethodBody) =
768768 output_ string os " )\n "
769769
770770
771- let goutput_mbody is_entrypoint env os md =
771+ let goutput_mbody is_entrypoint env os ( md : ILMethodDef ) =
772772 if md.ImplAttributes &&& MethodImplAttributes.Native <> enum 0 then output_ string os " native "
773773 elif md.ImplAttributes &&& MethodImplAttributes.IL <> enum 0 then output_ string os " cil "
774774 else output_ string os " runtime "
@@ -779,7 +779,7 @@ let goutput_mbody is_entrypoint env os md =
779779 output_ string os " \n { \n " ;
780780 goutput_ security_ decls env os md.SecurityDecls;
781781 goutput_ custom_ attrs env os md.CustomAttrs;
782- match md.mdBody .Contents with
782+ match md.Body .Contents with
783783 | MethodBody.IL il -> goutput_ ilmbody env os il
784784 | _ -> ()
785785 if is_ entrypoint then output_ string os " .entrypoint" ;
@@ -799,7 +799,7 @@ let goutput_mdef env os (md:ILMethodDef) =
799799 elif md.IsConstructor then " rtspecialname"
800800 elif md.IsStatic then
801801 " static " ^
802- ( match md.mdBody .Contents with
802+ ( match md.Body .Contents with
803803 MethodBody.PInvoke ( attr) ->
804804 " pinvokeimpl(\" " ^ attr.Where.Name^ " \" as \" " ^ attr.Name ^ " \" " ^
805805 ( match attr.CallingConv with
@@ -852,7 +852,7 @@ let goutput_mdef env os (md:ILMethodDef) =
852852 ( goutput_ mbody is_ entrypoint menv) os md;
853853 output_ string os " \n "
854854
855- let goutput_pdef env os pd =
855+ let goutput_pdef env os ( pd : ILPropertyDef ) =
856856 output_ string os " property\n\t getter: " ;
857857 ( match pd.GetMethod with None -> () | Some mref -> goutput_ mref env os mref);
858858 output_ string os " \n\t setter: " ;
@@ -891,7 +891,7 @@ let goutput_mdefs env os (mdefs: ILMethodDefs) =
891891let goutput_pdefs env os ( pdefs : ILPropertyDefs ) =
892892 List.iter ( fun f -> ( goutput_ pdef env) os f; output_ string os " \n " ) pdefs.AsList
893893
894- let rec goutput_tdef ( enc ) env contents os cd =
894+ let rec goutput_tdef enc env contents os ( cd : ILTypeDef ) =
895895 let env = ppenv_ enter_ tdef cd.GenericParams env
896896 let layout_attr , pp_layout_decls = splitTypeLayout cd.Layout
897897 if isTypeNameForGlobalFunctions cd.Name then
@@ -939,26 +939,26 @@ and output_init_semantics os f =
939939and goutput_lambdas env os lambdas =
940940 match lambdas with
941941 | Lambdas_ forall ( gf, l) ->
942- output_ angled ( goutput_ gparam env) os gf;
943- output_ string os " " ;
942+ output_ angled ( goutput_ gparam env) os gf
943+ output_ string os " "
944944 ( goutput_ lambdas env) os l
945945 | Lambdas_ lambda ( ps, l) ->
946946 output_ parens ( goutput_ param env) os ps;
947- output_ string os " " ;
947+ output_ string os " "
948948 ( goutput_ lambdas env) os l
949949 | Lambdas_ return typ -> output_ string os " --> " ; ( goutput_ typ env) os typ
950950
951- and goutput_tdefs contents ( enc ) env os ( td : ILTypeDefs ) =
951+ and goutput_tdefs contents enc env os ( td : ILTypeDefs ) =
952952 List.iter ( goutput_ tdef enc env contents os) td.AsList
953953
954954let output_ver os ( a , b , c , d ) =
955- output_ string os " .ver " ;
956- output_ u16 os a;
957- output_ string os " : " ;
958- output_ u16 os b;
959- output_ string os " : " ;
960- output_ u16 os c;
961- output_ string os " : " ;
955+ output_ string os " .ver "
956+ output_ u16 os a
957+ output_ string os " : "
958+ output_ u16 os b
959+ output_ string os " : "
960+ output_ u16 os c
961+ output_ string os " : "
962962 output_ u16 os d
963963
964964let output_locale os s = output_ string os " .Locale " ; output_ qstring os s
0 commit comments