1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513(**************************************************************************)(* *)(* OCaml Migrate Parsetree *)(* *)(* Frédéric Bour *)(* Alain Frisch, LexiFi *)(* *)(* Copyright 2017 Institut National de Recherche en Informatique et *)(* en Automatique (INRIA). *)(* *)(* All rights reserved. This file is distributed under the terms of *)(* the GNU Lesser General Public License version 2.1, with the *)(* special exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)moduleFrom=Ast_402moduleTo=Ast_403letextract_predef_optionlabeltyp=letopenFrominletopenLongidentinmatchlabel,typ.Parsetree.ptyp_descwith|To.Asttypes.Optional_,From.Parsetree.Ptyp_constr({Location.txt=Ldot(Lident"*predef*","option");_},[d])->d|_->typletreccopy_expression:From.Parsetree.expression->To.Parsetree.expression=fun{From.Parsetree.pexp_desc=pexp_desc;From.Parsetree.pexp_loc=pexp_loc;From.Parsetree.pexp_attributes=pexp_attributes}->{To.Parsetree.pexp_desc=(copy_expression_descpexp_desc);To.Parsetree.pexp_loc=(copy_locationpexp_loc);To.Parsetree.pexp_attributes=(copy_attributespexp_attributes)}andcopy_expression_desc:From.Parsetree.expression_desc->To.Parsetree.expression_desc=function|From.Parsetree.Pexp_identx0->To.Parsetree.Pexp_ident(copy_loccopy_longidentx0)|From.Parsetree.Pexp_constantx0->To.Parsetree.Pexp_constant(copy_constantx0)|From.Parsetree.Pexp_let(x0,x1,x2)->To.Parsetree.Pexp_let((copy_rec_flagx0),(List.mapcopy_value_bindingx1),(copy_expressionx2))|From.Parsetree.Pexp_functionx0->To.Parsetree.Pexp_function(List.mapcopy_casex0)|From.Parsetree.Pexp_fun(x0,x1,x2,x3)->To.Parsetree.Pexp_fun((copy_arg_labelx0),(copy_optioncopy_expressionx1),(copy_patternx2),(copy_expressionx3))|From.Parsetree.Pexp_apply(x0,x1)->To.Parsetree.Pexp_apply((copy_expressionx0),(List.map(funx->let(x0,x1)=xin((copy_arg_labelx0),(copy_expressionx1)))x1))|From.Parsetree.Pexp_match(x0,x1)->To.Parsetree.Pexp_match((copy_expressionx0),(List.mapcopy_casex1))|From.Parsetree.Pexp_try(x0,x1)->To.Parsetree.Pexp_try((copy_expressionx0),(List.mapcopy_casex1))|From.Parsetree.Pexp_tuplex0->To.Parsetree.Pexp_tuple(List.mapcopy_expressionx0)|From.Parsetree.Pexp_construct(x0,x1)->To.Parsetree.Pexp_construct((copy_loccopy_longidentx0),(copy_optioncopy_expressionx1))|From.Parsetree.Pexp_variant(x0,x1)->To.Parsetree.Pexp_variant((copy_labelx0),(copy_optioncopy_expressionx1))|From.Parsetree.Pexp_record(x0,x1)->To.Parsetree.Pexp_record((List.map(funx->let(x0,x1)=xin((copy_loccopy_longidentx0),(copy_expressionx1)))x0),(copy_optioncopy_expressionx1))|From.Parsetree.Pexp_field(x0,x1)->To.Parsetree.Pexp_field((copy_expressionx0),(copy_loccopy_longidentx1))|From.Parsetree.Pexp_setfield(x0,x1,x2)->To.Parsetree.Pexp_setfield((copy_expressionx0),(copy_loccopy_longidentx1),(copy_expressionx2))|From.Parsetree.Pexp_arrayx0->To.Parsetree.Pexp_array(List.mapcopy_expressionx0)|From.Parsetree.Pexp_ifthenelse(x0,x1,x2)->To.Parsetree.Pexp_ifthenelse((copy_expressionx0),(copy_expressionx1),(copy_optioncopy_expressionx2))|From.Parsetree.Pexp_sequence(x0,x1)->To.Parsetree.Pexp_sequence((copy_expressionx0),(copy_expressionx1))|From.Parsetree.Pexp_while(x0,x1)->To.Parsetree.Pexp_while((copy_expressionx0),(copy_expressionx1))|From.Parsetree.Pexp_for(x0,x1,x2,x3,x4)->To.Parsetree.Pexp_for((copy_patternx0),(copy_expressionx1),(copy_expressionx2),(copy_direction_flagx3),(copy_expressionx4))|From.Parsetree.Pexp_constraint(x0,x1)->To.Parsetree.Pexp_constraint((copy_expressionx0),(copy_core_typex1))|From.Parsetree.Pexp_coerce(x0,x1,x2)->To.Parsetree.Pexp_coerce((copy_expressionx0),(copy_optioncopy_core_typex1),(copy_core_typex2))|From.Parsetree.Pexp_send(x0,x1)->To.Parsetree.Pexp_send((copy_expressionx0),x1)|From.Parsetree.Pexp_newx0->To.Parsetree.Pexp_new(copy_loccopy_longidentx0)|From.Parsetree.Pexp_setinstvar(x0,x1)->To.Parsetree.Pexp_setinstvar((copy_loc(funx->x)x0),(copy_expressionx1))|From.Parsetree.Pexp_overridex0->To.Parsetree.Pexp_override(List.map(funx->let(x0,x1)=xin((copy_loc(funx->x)x0),(copy_expressionx1)))x0)|From.Parsetree.Pexp_letmodule(x0,x1,x2)->To.Parsetree.Pexp_letmodule((copy_loc(funx->x)x0),(copy_module_exprx1),(copy_expressionx2))|From.Parsetree.Pexp_assertx0->To.Parsetree.Pexp_assert(copy_expressionx0)|From.Parsetree.Pexp_lazyx0->To.Parsetree.Pexp_lazy(copy_expressionx0)|From.Parsetree.Pexp_poly(x0,x1)->To.Parsetree.Pexp_poly((copy_expressionx0),(copy_optioncopy_core_typex1))|From.Parsetree.Pexp_objectx0->To.Parsetree.Pexp_object(copy_class_structurex0)|From.Parsetree.Pexp_newtype(x0,x1)->To.Parsetree.Pexp_newtype(x0,(copy_expressionx1))|From.Parsetree.Pexp_packx0->To.Parsetree.Pexp_pack(copy_module_exprx0)|From.Parsetree.Pexp_open(x0,x1,x2)->To.Parsetree.Pexp_open((copy_override_flagx0),(copy_loccopy_longidentx1),(copy_expressionx2))|From.Parsetree.Pexp_extensionx0->To.Parsetree.Pexp_extension(copy_extensionx0)andcopy_direction_flag:From.Asttypes.direction_flag->To.Asttypes.direction_flag=function|From.Asttypes.Upto->To.Asttypes.Upto|From.Asttypes.Downto->To.Asttypes.Downtoandcopy_case:From.Parsetree.case->To.Parsetree.case=fun{From.Parsetree.pc_lhs=pc_lhs;From.Parsetree.pc_guard=pc_guard;From.Parsetree.pc_rhs=pc_rhs}->{To.Parsetree.pc_lhs=(copy_patternpc_lhs);To.Parsetree.pc_guard=(copy_optioncopy_expressionpc_guard);To.Parsetree.pc_rhs=(copy_expressionpc_rhs)}andcopy_value_binding:From.Parsetree.value_binding->To.Parsetree.value_binding=fun{From.Parsetree.pvb_pat=pvb_pat;From.Parsetree.pvb_expr=pvb_expr;From.Parsetree.pvb_attributes=pvb_attributes;From.Parsetree.pvb_loc=pvb_loc}->{To.Parsetree.pvb_pat=(copy_patternpvb_pat);To.Parsetree.pvb_expr=(copy_expressionpvb_expr);To.Parsetree.pvb_attributes=(copy_attributespvb_attributes);To.Parsetree.pvb_loc=(copy_locationpvb_loc)}andcopy_pattern:From.Parsetree.pattern->To.Parsetree.pattern=fun{From.Parsetree.ppat_desc=ppat_desc;From.Parsetree.ppat_loc=ppat_loc;From.Parsetree.ppat_attributes=ppat_attributes}->{To.Parsetree.ppat_desc=(copy_pattern_descppat_desc);To.Parsetree.ppat_loc=(copy_locationppat_loc);To.Parsetree.ppat_attributes=(copy_attributesppat_attributes)}andcopy_pattern_desc:From.Parsetree.pattern_desc->To.Parsetree.pattern_desc=function|From.Parsetree.Ppat_any->To.Parsetree.Ppat_any|From.Parsetree.Ppat_varx0->To.Parsetree.Ppat_var(copy_loc(funx->x)x0)|From.Parsetree.Ppat_alias(x0,x1)->To.Parsetree.Ppat_alias((copy_patternx0),(copy_loc(funx->x)x1))|From.Parsetree.Ppat_constantx0->To.Parsetree.Ppat_constant(copy_constantx0)|From.Parsetree.Ppat_interval(x0,x1)->To.Parsetree.Ppat_interval((copy_constantx0),(copy_constantx1))|From.Parsetree.Ppat_tuplex0->To.Parsetree.Ppat_tuple(List.mapcopy_patternx0)|From.Parsetree.Ppat_construct(x0,x1)->To.Parsetree.Ppat_construct((copy_loccopy_longidentx0),(copy_optioncopy_patternx1))|From.Parsetree.Ppat_variant(x0,x1)->To.Parsetree.Ppat_variant((copy_labelx0),(copy_optioncopy_patternx1))|From.Parsetree.Ppat_record(x0,x1)->To.Parsetree.Ppat_record((List.map(funx->let(x0,x1)=xin((copy_loccopy_longidentx0),(copy_patternx1)))x0),(copy_closed_flagx1))|From.Parsetree.Ppat_arrayx0->To.Parsetree.Ppat_array(List.mapcopy_patternx0)|From.Parsetree.Ppat_or(x0,x1)->To.Parsetree.Ppat_or((copy_patternx0),(copy_patternx1))|From.Parsetree.Ppat_constraint(x0,x1)->To.Parsetree.Ppat_constraint((copy_patternx0),(copy_core_typex1))|From.Parsetree.Ppat_typex0->To.Parsetree.Ppat_type(copy_loccopy_longidentx0)|From.Parsetree.Ppat_lazyx0->To.Parsetree.Ppat_lazy(copy_patternx0)|From.Parsetree.Ppat_unpackx0->To.Parsetree.Ppat_unpack(copy_loc(funx->x)x0)|From.Parsetree.Ppat_exceptionx0->To.Parsetree.Ppat_exception(copy_patternx0)|From.Parsetree.Ppat_extensionx0->To.Parsetree.Ppat_extension(copy_extensionx0)andcopy_core_type:From.Parsetree.core_type->To.Parsetree.core_type=fun{From.Parsetree.ptyp_desc=ptyp_desc;From.Parsetree.ptyp_loc=ptyp_loc;From.Parsetree.ptyp_attributes=ptyp_attributes}->{To.Parsetree.ptyp_desc=(copy_core_type_descptyp_desc);To.Parsetree.ptyp_loc=(copy_locationptyp_loc);To.Parsetree.ptyp_attributes=(copy_attributesptyp_attributes)}andcopy_core_type_desc:From.Parsetree.core_type_desc->To.Parsetree.core_type_desc=function|From.Parsetree.Ptyp_any->To.Parsetree.Ptyp_any|From.Parsetree.Ptyp_varx0->To.Parsetree.Ptyp_varx0|From.Parsetree.Ptyp_arrow(x0,x1,x2)->letlabel=copy_arg_labelx0inTo.Parsetree.Ptyp_arrow(label,copy_core_type(extract_predef_optionlabelx1),copy_core_typex2)|From.Parsetree.Ptyp_tuplex0->To.Parsetree.Ptyp_tuple(List.mapcopy_core_typex0)|From.Parsetree.Ptyp_constr(x0,x1)->To.Parsetree.Ptyp_constr((copy_loccopy_longidentx0),(List.mapcopy_core_typex1))|From.Parsetree.Ptyp_object(x0,x1)->To.Parsetree.Ptyp_object((List.map(funx->let(x0,x1,x2)=xin(x0,(copy_attributesx1),(copy_core_typex2)))x0),(copy_closed_flagx1))|From.Parsetree.Ptyp_class(x0,x1)->To.Parsetree.Ptyp_class((copy_loccopy_longidentx0),(List.mapcopy_core_typex1))|From.Parsetree.Ptyp_alias(x0,x1)->To.Parsetree.Ptyp_alias((copy_core_typex0),x1)|From.Parsetree.Ptyp_variant(x0,x1,x2)->To.Parsetree.Ptyp_variant((List.mapcopy_row_fieldx0),(copy_closed_flagx1),(copy_option(funx->List.mapcopy_labelx)x2))|From.Parsetree.Ptyp_poly(x0,x1)->To.Parsetree.Ptyp_poly((List.map(funx->x)x0),(copy_core_typex1))|From.Parsetree.Ptyp_packagex0->To.Parsetree.Ptyp_package(copy_package_typex0)|From.Parsetree.Ptyp_extensionx0->To.Parsetree.Ptyp_extension(copy_extensionx0)andcopy_package_type:From.Parsetree.package_type->To.Parsetree.package_type=funx->let(x0,x1)=xin((copy_loccopy_longidentx0),(List.map(funx->let(x0,x1)=xin((copy_loccopy_longidentx0),(copy_core_typex1)))x1))andcopy_row_field:From.Parsetree.row_field->To.Parsetree.row_field=function|From.Parsetree.Rtag(x0,x1,x2,x3)->To.Parsetree.Rtag((copy_labelx0),(copy_attributesx1),(copy_boolx2),(List.mapcopy_core_typex3))|From.Parsetree.Rinheritx0->To.Parsetree.Rinherit(copy_core_typex0)andcopy_attributes:From.Parsetree.attributes->To.Parsetree.attributes=funx->List.mapcopy_attributexandcopy_attribute:From.Parsetree.attribute->To.Parsetree.attribute=funx->let(x0,x1)=xin((copy_loc(funx->x)x0),(copy_payloadx1))andcopy_payload:From.Parsetree.payload->To.Parsetree.payload=function|From.Parsetree.PStrx0->To.Parsetree.PStr(copy_structurex0)|From.Parsetree.PTypx0->To.Parsetree.PTyp(copy_core_typex0)|From.Parsetree.PPat(x0,x1)->To.Parsetree.PPat((copy_patternx0),(copy_optioncopy_expressionx1))andcopy_structure:From.Parsetree.structure->To.Parsetree.structure=funx->List.mapcopy_structure_itemxandcopy_structure_item:From.Parsetree.structure_item->To.Parsetree.structure_item=fun{From.Parsetree.pstr_desc=pstr_desc;From.Parsetree.pstr_loc=pstr_loc}->{To.Parsetree.pstr_desc=(copy_structure_item_descpstr_desc);To.Parsetree.pstr_loc=(copy_locationpstr_loc)}andcopy_structure_item_desc:From.Parsetree.structure_item_desc->To.Parsetree.structure_item_desc=function|From.Parsetree.Pstr_eval(x0,x1)->To.Parsetree.Pstr_eval((copy_expressionx0),(copy_attributesx1))|From.Parsetree.Pstr_value(x0,x1)->To.Parsetree.Pstr_value((copy_rec_flagx0),(List.mapcopy_value_bindingx1))|From.Parsetree.Pstr_primitivex0->To.Parsetree.Pstr_primitive(copy_value_descriptionx0)|From.Parsetree.Pstr_typex0->letrecflag,types=type_declarationsx0inTo.Parsetree.Pstr_type(recflag,types)|From.Parsetree.Pstr_typextx0->To.Parsetree.Pstr_typext(copy_type_extensionx0)|From.Parsetree.Pstr_exceptionx0->To.Parsetree.Pstr_exception(copy_extension_constructorx0)|From.Parsetree.Pstr_modulex0->To.Parsetree.Pstr_module(copy_module_bindingx0)|From.Parsetree.Pstr_recmodulex0->To.Parsetree.Pstr_recmodule(List.mapcopy_module_bindingx0)|From.Parsetree.Pstr_modtypex0->To.Parsetree.Pstr_modtype(copy_module_type_declarationx0)|From.Parsetree.Pstr_openx0->To.Parsetree.Pstr_open(copy_open_descriptionx0)|From.Parsetree.Pstr_classx0->To.Parsetree.Pstr_class(List.mapcopy_class_declarationx0)|From.Parsetree.Pstr_class_typex0->To.Parsetree.Pstr_class_type(List.mapcopy_class_type_declarationx0)|From.Parsetree.Pstr_includex0->To.Parsetree.Pstr_include(copy_include_declarationx0)|From.Parsetree.Pstr_attributex0->To.Parsetree.Pstr_attribute(copy_attributex0)|From.Parsetree.Pstr_extension(x0,x1)->To.Parsetree.Pstr_extension((copy_extensionx0),(copy_attributesx1))andcopy_include_declaration:From.Parsetree.include_declaration->To.Parsetree.include_declaration=funx->copy_include_infoscopy_module_exprxandcopy_class_declaration:From.Parsetree.class_declaration->To.Parsetree.class_declaration=funx->copy_class_infoscopy_class_exprxandcopy_class_expr:From.Parsetree.class_expr->To.Parsetree.class_expr=fun{From.Parsetree.pcl_desc=pcl_desc;From.Parsetree.pcl_loc=pcl_loc;From.Parsetree.pcl_attributes=pcl_attributes}->{To.Parsetree.pcl_desc=(copy_class_expr_descpcl_desc);To.Parsetree.pcl_loc=(copy_locationpcl_loc);To.Parsetree.pcl_attributes=(copy_attributespcl_attributes)}andcopy_class_expr_desc:From.Parsetree.class_expr_desc->To.Parsetree.class_expr_desc=function|From.Parsetree.Pcl_constr(x0,x1)->To.Parsetree.Pcl_constr((copy_loccopy_longidentx0),(List.mapcopy_core_typex1))|From.Parsetree.Pcl_structurex0->To.Parsetree.Pcl_structure(copy_class_structurex0)|From.Parsetree.Pcl_fun(x0,x1,x2,x3)->To.Parsetree.Pcl_fun((copy_arg_labelx0),(copy_optioncopy_expressionx1),(copy_patternx2),(copy_class_exprx3))|From.Parsetree.Pcl_apply(x0,x1)->To.Parsetree.Pcl_apply((copy_class_exprx0),(List.map(funx->let(x0,x1)=xin((copy_arg_labelx0),(copy_expressionx1)))x1))|From.Parsetree.Pcl_let(x0,x1,x2)->To.Parsetree.Pcl_let((copy_rec_flagx0),(List.mapcopy_value_bindingx1),(copy_class_exprx2))|From.Parsetree.Pcl_constraint(x0,x1)->To.Parsetree.Pcl_constraint((copy_class_exprx0),(copy_class_typex1))|From.Parsetree.Pcl_extensionx0->To.Parsetree.Pcl_extension(copy_extensionx0)andcopy_class_structure:From.Parsetree.class_structure->To.Parsetree.class_structure=fun{From.Parsetree.pcstr_self=pcstr_self;From.Parsetree.pcstr_fields=pcstr_fields}->{To.Parsetree.pcstr_self=(copy_patternpcstr_self);To.Parsetree.pcstr_fields=(List.mapcopy_class_fieldpcstr_fields)}andcopy_class_field:From.Parsetree.class_field->To.Parsetree.class_field=fun{From.Parsetree.pcf_desc=pcf_desc;From.Parsetree.pcf_loc=pcf_loc;From.Parsetree.pcf_attributes=pcf_attributes}->{To.Parsetree.pcf_desc=(copy_class_field_descpcf_desc);To.Parsetree.pcf_loc=(copy_locationpcf_loc);To.Parsetree.pcf_attributes=(copy_attributespcf_attributes)}andcopy_class_field_desc:From.Parsetree.class_field_desc->To.Parsetree.class_field_desc=function|From.Parsetree.Pcf_inherit(x0,x1,x2)->To.Parsetree.Pcf_inherit((copy_override_flagx0),(copy_class_exprx1),(copy_option(funx->x)x2))|From.Parsetree.Pcf_valx0->To.Parsetree.Pcf_val(let(x0,x1,x2)=x0in((copy_loc(funx->x)x0),(copy_mutable_flagx1),(copy_class_field_kindx2)))|From.Parsetree.Pcf_methodx0->To.Parsetree.Pcf_method(let(x0,x1,x2)=x0in((copy_loc(funx->x)x0),(copy_private_flagx1),(copy_class_field_kindx2)))|From.Parsetree.Pcf_constraintx0->To.Parsetree.Pcf_constraint(let(x0,x1)=x0in((copy_core_typex0),(copy_core_typex1)))|From.Parsetree.Pcf_initializerx0->To.Parsetree.Pcf_initializer(copy_expressionx0)|From.Parsetree.Pcf_attributex0->To.Parsetree.Pcf_attribute(copy_attributex0)|From.Parsetree.Pcf_extensionx0->To.Parsetree.Pcf_extension(copy_extensionx0)andcopy_class_field_kind:From.Parsetree.class_field_kind->To.Parsetree.class_field_kind=function|From.Parsetree.Cfk_virtualx0->To.Parsetree.Cfk_virtual(copy_core_typex0)|From.Parsetree.Cfk_concrete(x0,x1)->To.Parsetree.Cfk_concrete((copy_override_flagx0),(copy_expressionx1))andcopy_module_binding:From.Parsetree.module_binding->To.Parsetree.module_binding=fun{From.Parsetree.pmb_name=pmb_name;From.Parsetree.pmb_expr=pmb_expr;From.Parsetree.pmb_attributes=pmb_attributes;From.Parsetree.pmb_loc=pmb_loc}->{To.Parsetree.pmb_name=(copy_loc(funx->x)pmb_name);To.Parsetree.pmb_expr=(copy_module_exprpmb_expr);To.Parsetree.pmb_attributes=(copy_attributespmb_attributes);To.Parsetree.pmb_loc=(copy_locationpmb_loc)}andcopy_module_expr:From.Parsetree.module_expr->To.Parsetree.module_expr=fun{From.Parsetree.pmod_desc=pmod_desc;From.Parsetree.pmod_loc=pmod_loc;From.Parsetree.pmod_attributes=pmod_attributes}->{To.Parsetree.pmod_desc=(copy_module_expr_descpmod_desc);To.Parsetree.pmod_loc=(copy_locationpmod_loc);To.Parsetree.pmod_attributes=(copy_attributespmod_attributes)}andcopy_module_expr_desc:From.Parsetree.module_expr_desc->To.Parsetree.module_expr_desc=function|From.Parsetree.Pmod_identx0->To.Parsetree.Pmod_ident(copy_loccopy_longidentx0)|From.Parsetree.Pmod_structurex0->To.Parsetree.Pmod_structure(copy_structurex0)|From.Parsetree.Pmod_functor(x0,x1,x2)->To.Parsetree.Pmod_functor((copy_loc(funx->x)x0),(copy_optioncopy_module_typex1),(copy_module_exprx2))|From.Parsetree.Pmod_apply(x0,x1)->To.Parsetree.Pmod_apply((copy_module_exprx0),(copy_module_exprx1))|From.Parsetree.Pmod_constraint(x0,x1)->To.Parsetree.Pmod_constraint((copy_module_exprx0),(copy_module_typex1))|From.Parsetree.Pmod_unpackx0->To.Parsetree.Pmod_unpack(copy_expressionx0)|From.Parsetree.Pmod_extensionx0->To.Parsetree.Pmod_extension(copy_extensionx0)andcopy_module_type:From.Parsetree.module_type->To.Parsetree.module_type=fun{From.Parsetree.pmty_desc=pmty_desc;From.Parsetree.pmty_loc=pmty_loc;From.Parsetree.pmty_attributes=pmty_attributes}->{To.Parsetree.pmty_desc=(copy_module_type_descpmty_desc);To.Parsetree.pmty_loc=(copy_locationpmty_loc);To.Parsetree.pmty_attributes=(copy_attributespmty_attributes)}andcopy_module_type_desc:From.Parsetree.module_type_desc->To.Parsetree.module_type_desc=function|From.Parsetree.Pmty_identx0->To.Parsetree.Pmty_ident(copy_loccopy_longidentx0)|From.Parsetree.Pmty_signaturex0->To.Parsetree.Pmty_signature(copy_signaturex0)|From.Parsetree.Pmty_functor(x0,x1,x2)->To.Parsetree.Pmty_functor((copy_loc(funx->x)x0),(copy_optioncopy_module_typex1),(copy_module_typex2))|From.Parsetree.Pmty_with(x0,x1)->To.Parsetree.Pmty_with((copy_module_typex0),(List.mapcopy_with_constraintx1))|From.Parsetree.Pmty_typeofx0->To.Parsetree.Pmty_typeof(copy_module_exprx0)|From.Parsetree.Pmty_extensionx0->To.Parsetree.Pmty_extension(copy_extensionx0)|From.Parsetree.Pmty_aliasx0->To.Parsetree.Pmty_alias(copy_loccopy_longidentx0)andcopy_with_constraint:From.Parsetree.with_constraint->To.Parsetree.with_constraint=function|From.Parsetree.Pwith_type(x0,x1)->To.Parsetree.Pwith_type((copy_loccopy_longidentx0),(copy_type_declarationx1))|From.Parsetree.Pwith_module(x0,x1)->To.Parsetree.Pwith_module((copy_loccopy_longidentx0),(copy_loccopy_longidentx1))|From.Parsetree.Pwith_typesubstx0->To.Parsetree.Pwith_typesubst(copy_type_declarationx0)|From.Parsetree.Pwith_modsubst(x0,x1)->To.Parsetree.Pwith_modsubst((copy_loc(funx->x)x0),(copy_loccopy_longidentx1))andcopy_signature:From.Parsetree.signature->To.Parsetree.signature=funx->List.mapcopy_signature_itemxandcopy_signature_item:From.Parsetree.signature_item->To.Parsetree.signature_item=fun{From.Parsetree.psig_desc=psig_desc;From.Parsetree.psig_loc=psig_loc}->{To.Parsetree.psig_desc=(copy_signature_item_descpsig_desc);To.Parsetree.psig_loc=(copy_locationpsig_loc)}andcopy_signature_item_desc:From.Parsetree.signature_item_desc->To.Parsetree.signature_item_desc=function|From.Parsetree.Psig_valuex0->To.Parsetree.Psig_value(copy_value_descriptionx0)|From.Parsetree.Psig_typex0->letrecflag,types=type_declarationsx0inTo.Parsetree.Psig_type(recflag,types)|From.Parsetree.Psig_typextx0->To.Parsetree.Psig_typext(copy_type_extensionx0)|From.Parsetree.Psig_exceptionx0->To.Parsetree.Psig_exception(copy_extension_constructorx0)|From.Parsetree.Psig_modulex0->To.Parsetree.Psig_module(copy_module_declarationx0)|From.Parsetree.Psig_recmodulex0->To.Parsetree.Psig_recmodule(List.mapcopy_module_declarationx0)|From.Parsetree.Psig_modtypex0->To.Parsetree.Psig_modtype(copy_module_type_declarationx0)|From.Parsetree.Psig_openx0->To.Parsetree.Psig_open(copy_open_descriptionx0)|From.Parsetree.Psig_includex0->To.Parsetree.Psig_include(copy_include_descriptionx0)|From.Parsetree.Psig_classx0->To.Parsetree.Psig_class(List.mapcopy_class_descriptionx0)|From.Parsetree.Psig_class_typex0->To.Parsetree.Psig_class_type(List.mapcopy_class_type_declarationx0)|From.Parsetree.Psig_attributex0->To.Parsetree.Psig_attribute(copy_attributex0)|From.Parsetree.Psig_extension(x0,x1)->To.Parsetree.Psig_extension((copy_extensionx0),(copy_attributesx1))andcopy_class_type_declaration:From.Parsetree.class_type_declaration->To.Parsetree.class_type_declaration=funx->copy_class_infoscopy_class_typexandcopy_class_description:From.Parsetree.class_description->To.Parsetree.class_description=funx->copy_class_infoscopy_class_typexandcopy_class_type:From.Parsetree.class_type->To.Parsetree.class_type=fun{From.Parsetree.pcty_desc=pcty_desc;From.Parsetree.pcty_loc=pcty_loc;From.Parsetree.pcty_attributes=pcty_attributes}->{To.Parsetree.pcty_desc=(copy_class_type_descpcty_desc);To.Parsetree.pcty_loc=(copy_locationpcty_loc);To.Parsetree.pcty_attributes=(copy_attributespcty_attributes)}andcopy_class_type_desc:From.Parsetree.class_type_desc->To.Parsetree.class_type_desc=function|From.Parsetree.Pcty_constr(x0,x1)->To.Parsetree.Pcty_constr((copy_loccopy_longidentx0),(List.mapcopy_core_typex1))|From.Parsetree.Pcty_signaturex0->To.Parsetree.Pcty_signature(copy_class_signaturex0)|From.Parsetree.Pcty_arrow(x0,x1,x2)->letlabel=copy_arg_labelx0inTo.Parsetree.Pcty_arrow(label,copy_core_type(extract_predef_optionlabelx1),copy_class_typex2)|From.Parsetree.Pcty_extensionx0->To.Parsetree.Pcty_extension(copy_extensionx0)andcopy_class_signature:From.Parsetree.class_signature->To.Parsetree.class_signature=fun{From.Parsetree.pcsig_self=pcsig_self;From.Parsetree.pcsig_fields=pcsig_fields}->{To.Parsetree.pcsig_self=(copy_core_typepcsig_self);To.Parsetree.pcsig_fields=(List.mapcopy_class_type_fieldpcsig_fields)}andcopy_class_type_field:From.Parsetree.class_type_field->To.Parsetree.class_type_field=fun{From.Parsetree.pctf_desc=pctf_desc;From.Parsetree.pctf_loc=pctf_loc;From.Parsetree.pctf_attributes=pctf_attributes}->{To.Parsetree.pctf_desc=(copy_class_type_field_descpctf_desc);To.Parsetree.pctf_loc=(copy_locationpctf_loc);To.Parsetree.pctf_attributes=(copy_attributespctf_attributes)}andcopy_class_type_field_desc:From.Parsetree.class_type_field_desc->To.Parsetree.class_type_field_desc=function|From.Parsetree.Pctf_inheritx0->To.Parsetree.Pctf_inherit(copy_class_typex0)|From.Parsetree.Pctf_valx0->To.Parsetree.Pctf_val(let(x0,x1,x2,x3)=x0in(x0,(copy_mutable_flagx1),(copy_virtual_flagx2),(copy_core_typex3)))|From.Parsetree.Pctf_methodx0->To.Parsetree.Pctf_method(let(x0,x1,x2,x3)=x0in(x0,(copy_private_flagx1),(copy_virtual_flagx2),(copy_core_typex3)))|From.Parsetree.Pctf_constraintx0->To.Parsetree.Pctf_constraint(let(x0,x1)=x0in((copy_core_typex0),(copy_core_typex1)))|From.Parsetree.Pctf_attributex0->To.Parsetree.Pctf_attribute(copy_attributex0)|From.Parsetree.Pctf_extensionx0->To.Parsetree.Pctf_extension(copy_extensionx0)andcopy_extension:From.Parsetree.extension->To.Parsetree.extension=funx->let(x0,x1)=xin((copy_loc(funx->x)x0),(copy_payloadx1))andcopy_class_infos:'f0'g0.('f0->'g0)->'f0From.Parsetree.class_infos->'g0To.Parsetree.class_infos=funf0->fun{From.Parsetree.pci_virt=pci_virt;From.Parsetree.pci_params=pci_params;From.Parsetree.pci_name=pci_name;From.Parsetree.pci_expr=pci_expr;From.Parsetree.pci_loc=pci_loc;From.Parsetree.pci_attributes=pci_attributes}->{To.Parsetree.pci_virt=(copy_virtual_flagpci_virt);To.Parsetree.pci_params=(List.map(funx->let(x0,x1)=xin((copy_core_typex0),(copy_variancex1)))pci_params);To.Parsetree.pci_name=(copy_loc(funx->x)pci_name);To.Parsetree.pci_expr=(f0pci_expr);To.Parsetree.pci_loc=(copy_locationpci_loc);To.Parsetree.pci_attributes=(copy_attributespci_attributes)}andcopy_virtual_flag:From.Asttypes.virtual_flag->To.Asttypes.virtual_flag=function|From.Asttypes.Virtual->To.Asttypes.Virtual|From.Asttypes.Concrete->To.Asttypes.Concreteandcopy_include_description:From.Parsetree.include_description->To.Parsetree.include_description=funx->copy_include_infoscopy_module_typexandcopy_include_infos:'f0'g0.('f0->'g0)->'f0From.Parsetree.include_infos->'g0To.Parsetree.include_infos=funf0->fun{From.Parsetree.pincl_mod=pincl_mod;From.Parsetree.pincl_loc=pincl_loc;From.Parsetree.pincl_attributes=pincl_attributes}->{To.Parsetree.pincl_mod=(f0pincl_mod);To.Parsetree.pincl_loc=(copy_locationpincl_loc);To.Parsetree.pincl_attributes=(copy_attributespincl_attributes)}andcopy_open_description:From.Parsetree.open_description->To.Parsetree.open_description=fun{From.Parsetree.popen_lid=popen_lid;From.Parsetree.popen_override=popen_override;From.Parsetree.popen_loc=popen_loc;From.Parsetree.popen_attributes=popen_attributes}->{To.Parsetree.popen_lid=(copy_loccopy_longidentpopen_lid);To.Parsetree.popen_override=(copy_override_flagpopen_override);To.Parsetree.popen_loc=(copy_locationpopen_loc);To.Parsetree.popen_attributes=(copy_attributespopen_attributes)}andcopy_override_flag:From.Asttypes.override_flag->To.Asttypes.override_flag=function|From.Asttypes.Override->To.Asttypes.Override|From.Asttypes.Fresh->To.Asttypes.Freshandcopy_module_type_declaration:From.Parsetree.module_type_declaration->To.Parsetree.module_type_declaration=fun{From.Parsetree.pmtd_name=pmtd_name;From.Parsetree.pmtd_type=pmtd_type;From.Parsetree.pmtd_attributes=pmtd_attributes;From.Parsetree.pmtd_loc=pmtd_loc}->{To.Parsetree.pmtd_name=(copy_loc(funx->x)pmtd_name);To.Parsetree.pmtd_type=(copy_optioncopy_module_typepmtd_type);To.Parsetree.pmtd_attributes=(copy_attributespmtd_attributes);To.Parsetree.pmtd_loc=(copy_locationpmtd_loc)}andcopy_module_declaration:From.Parsetree.module_declaration->To.Parsetree.module_declaration=fun{From.Parsetree.pmd_name=pmd_name;From.Parsetree.pmd_type=pmd_type;From.Parsetree.pmd_attributes=pmd_attributes;From.Parsetree.pmd_loc=pmd_loc}->{To.Parsetree.pmd_name=(copy_loc(funx->x)pmd_name);To.Parsetree.pmd_type=(copy_module_typepmd_type);To.Parsetree.pmd_attributes=(copy_attributespmd_attributes);To.Parsetree.pmd_loc=(copy_locationpmd_loc)}andcopy_type_extension:From.Parsetree.type_extension->To.Parsetree.type_extension=fun{From.Parsetree.ptyext_path=ptyext_path;From.Parsetree.ptyext_params=ptyext_params;From.Parsetree.ptyext_constructors=ptyext_constructors;From.Parsetree.ptyext_private=ptyext_private;From.Parsetree.ptyext_attributes=ptyext_attributes}->{To.Parsetree.ptyext_path=(copy_loccopy_longidentptyext_path);To.Parsetree.ptyext_params=(List.map(funx->let(x0,x1)=xin((copy_core_typex0),(copy_variancex1)))ptyext_params);To.Parsetree.ptyext_constructors=(List.mapcopy_extension_constructorptyext_constructors);To.Parsetree.ptyext_private=(copy_private_flagptyext_private);To.Parsetree.ptyext_attributes=(copy_attributesptyext_attributes)}andcopy_extension_constructor:From.Parsetree.extension_constructor->To.Parsetree.extension_constructor=fun{From.Parsetree.pext_name=pext_name;From.Parsetree.pext_kind=pext_kind;From.Parsetree.pext_loc=pext_loc;From.Parsetree.pext_attributes=pext_attributes}->{To.Parsetree.pext_name=(copy_loc(funx->x)pext_name);To.Parsetree.pext_kind=(copy_extension_constructor_kindpext_kind);To.Parsetree.pext_loc=(copy_locationpext_loc);To.Parsetree.pext_attributes=(copy_attributespext_attributes)}andcopy_extension_constructor_kind:From.Parsetree.extension_constructor_kind->To.Parsetree.extension_constructor_kind=function|From.Parsetree.Pext_decl(x0,x1)->To.Parsetree.Pext_decl(To.Parsetree.Pcstr_tuple(List.mapcopy_core_typex0),(copy_optioncopy_core_typex1))|From.Parsetree.Pext_rebindx0->To.Parsetree.Pext_rebind(copy_loccopy_longidentx0)andcopy_type_declaration:From.Parsetree.type_declaration->To.Parsetree.type_declaration=fun{From.Parsetree.ptype_name=ptype_name;From.Parsetree.ptype_params=ptype_params;From.Parsetree.ptype_cstrs=ptype_cstrs;From.Parsetree.ptype_kind=ptype_kind;From.Parsetree.ptype_private=ptype_private;From.Parsetree.ptype_manifest=ptype_manifest;From.Parsetree.ptype_attributes=ptype_attributes;From.Parsetree.ptype_loc=ptype_loc}->{To.Parsetree.ptype_name=(copy_loc(funx->x)ptype_name);To.Parsetree.ptype_params=(List.map(funx->let(x0,x1)=xin((copy_core_typex0),(copy_variancex1)))ptype_params);To.Parsetree.ptype_cstrs=(List.map(funx->let(x0,x1,x2)=xin((copy_core_typex0),(copy_core_typex1),(copy_locationx2)))ptype_cstrs);To.Parsetree.ptype_kind=(copy_type_kindptype_kind);To.Parsetree.ptype_private=(copy_private_flagptype_private);To.Parsetree.ptype_manifest=(copy_optioncopy_core_typeptype_manifest);To.Parsetree.ptype_attributes=(copy_attributesptype_attributes);To.Parsetree.ptype_loc=(copy_locationptype_loc)}andcopy_private_flag:From.Asttypes.private_flag->To.Asttypes.private_flag=function|From.Asttypes.Private->To.Asttypes.Private|From.Asttypes.Public->To.Asttypes.Publicandcopy_type_kind:From.Parsetree.type_kind->To.Parsetree.type_kind=function|From.Parsetree.Ptype_abstract->To.Parsetree.Ptype_abstract|From.Parsetree.Ptype_variantx0->To.Parsetree.Ptype_variant(List.mapcopy_constructor_declarationx0)|From.Parsetree.Ptype_recordx0->To.Parsetree.Ptype_record(List.mapcopy_label_declarationx0)|From.Parsetree.Ptype_open->To.Parsetree.Ptype_openandcopy_label_declaration:From.Parsetree.label_declaration->To.Parsetree.label_declaration=fun{From.Parsetree.pld_name=pld_name;From.Parsetree.pld_mutable=pld_mutable;From.Parsetree.pld_type=pld_type;From.Parsetree.pld_loc=pld_loc;From.Parsetree.pld_attributes=pld_attributes}->{To.Parsetree.pld_name=(copy_loc(funx->x)pld_name);To.Parsetree.pld_mutable=(copy_mutable_flagpld_mutable);To.Parsetree.pld_type=(copy_core_typepld_type);To.Parsetree.pld_loc=(copy_locationpld_loc);To.Parsetree.pld_attributes=(copy_attributespld_attributes)}andcopy_mutable_flag:From.Asttypes.mutable_flag->To.Asttypes.mutable_flag=function|From.Asttypes.Immutable->To.Asttypes.Immutable|From.Asttypes.Mutable->To.Asttypes.Mutableandcopy_constructor_declaration:From.Parsetree.constructor_declaration->To.Parsetree.constructor_declaration=fun{From.Parsetree.pcd_name=pcd_name;From.Parsetree.pcd_args=pcd_args;From.Parsetree.pcd_res=pcd_res;From.Parsetree.pcd_loc=pcd_loc;From.Parsetree.pcd_attributes=pcd_attributes}->{To.Parsetree.pcd_name=(copy_loc(funx->x)pcd_name);To.Parsetree.pcd_args=To.Parsetree.Pcstr_tuple(List.mapcopy_core_typepcd_args);To.Parsetree.pcd_res=(copy_optioncopy_core_typepcd_res);To.Parsetree.pcd_loc=(copy_locationpcd_loc);To.Parsetree.pcd_attributes=(copy_attributespcd_attributes)}andcopy_variance:From.Asttypes.variance->To.Asttypes.variance=function|From.Asttypes.Covariant->To.Asttypes.Covariant|From.Asttypes.Contravariant->To.Asttypes.Contravariant|From.Asttypes.Invariant->To.Asttypes.Invariantandcopy_value_description:From.Parsetree.value_description->To.Parsetree.value_description=fun{From.Parsetree.pval_name=pval_name;From.Parsetree.pval_type=pval_type;From.Parsetree.pval_prim=pval_prim;From.Parsetree.pval_attributes=pval_attributes;From.Parsetree.pval_loc=pval_loc}->{To.Parsetree.pval_name=(copy_loc(funx->x)pval_name);To.Parsetree.pval_type=(copy_core_typepval_type);To.Parsetree.pval_prim=(List.map(funx->x)pval_prim);To.Parsetree.pval_attributes=(copy_attributespval_attributes);To.Parsetree.pval_loc=(copy_locationpval_loc)}andcopy_closed_flag:From.Asttypes.closed_flag->To.Asttypes.closed_flag=function|From.Asttypes.Closed->To.Asttypes.Closed|From.Asttypes.Open->To.Asttypes.Openandcopy_label:From.Asttypes.label->To.Asttypes.label=funx->xandcopy_arg_label:From.Asttypes.label->To.Asttypes.arg_label=funx->ifx<>""thenifx.[0]='?'thenTo.Asttypes.Optional(String.subx1(String.lengthx-1))elseTo.Asttypes.LabelledxelseTo.Asttypes.Nolabelandcopy_rec_flag:From.Asttypes.rec_flag->To.Asttypes.rec_flag=function|From.Asttypes.Nonrecursive->To.Asttypes.Nonrecursive|From.Asttypes.Recursive->To.Asttypes.Recursiveandcopy_constant:From.Asttypes.constant->To.Parsetree.constant=function|From.Asttypes.Const_intx0->To.Parsetree.Pconst_integer(string_of_intx0,None)|From.Asttypes.Const_charx0->To.Parsetree.Pconst_charx0|From.Asttypes.Const_string(x0,x1)->To.Parsetree.Pconst_string(x0,(copy_option(funx->x)x1))|From.Asttypes.Const_floatx0->To.Parsetree.Pconst_float(x0,None)|From.Asttypes.Const_int32x0->To.Parsetree.Pconst_integer(Int32.to_stringx0,Some'l')|From.Asttypes.Const_int64x0->To.Parsetree.Pconst_integer(Int64.to_stringx0,Some'L')|From.Asttypes.Const_nativeintx0->To.Parsetree.Pconst_integer(Nativeint.to_stringx0,Some'n')andcopy_option:'f0'g0.('f0->'g0)->'f0option->'g0option=funf0->function|None->None|Somex0->Some(f0x0)andcopy_longident:Longident.t->Longident.t=funx->xandcopy_loc:'f0'g0.('f0->'g0)->'f0From.Asttypes.loc->'g0To.Asttypes.loc=funf0->fun{From.Asttypes.txt=txt;From.Asttypes.loc=loc}->{To.Asttypes.txt=(f0txt);To.Asttypes.loc=(copy_locationloc)}andcopy_location:Location.t->Location.t=funx->xandcopy_bool:bool->bool=function|false->false|true->trueandtype_declarationstypes=letis_nonrec(attr,_)=attr.Location.txt="nonrec"inmatchList.mapcopy_type_declarationtypeswith|(x::xs)whenList.existsis_nonrecx.To.Parsetree.ptype_attributes->letptype_attributes=List.filter(funx->not(is_nonrecx))x.To.Parsetree.ptype_attributesin(To.Asttypes.Nonrecursive,{xwithTo.Parsetree.ptype_attributes}::xs)|types->(To.Asttypes.Recursive,types)letreccopy_toplevel_phrase:From.Parsetree.toplevel_phrase->To.Parsetree.toplevel_phrase=function|From.Parsetree.Ptop_defx0->To.Parsetree.Ptop_def(copy_structurex0)|From.Parsetree.Ptop_dir(x0,x1)->To.Parsetree.Ptop_dir(x0,(copy_directive_argumentx1))andcopy_directive_argument:From.Parsetree.directive_argument->To.Parsetree.directive_argument=function|From.Parsetree.Pdir_none->To.Parsetree.Pdir_none|From.Parsetree.Pdir_stringx0->To.Parsetree.Pdir_stringx0|From.Parsetree.Pdir_intx0->To.Parsetree.Pdir_int(string_of_intx0,None)|From.Parsetree.Pdir_identx0->To.Parsetree.Pdir_ident(copy_longidentx0)|From.Parsetree.Pdir_boolx0->To.Parsetree.Pdir_bool(copy_boolx0)letcopy_casesx=List.mapcopy_casexletcopy_pat=copy_patternletcopy_expr=copy_expressionletcopy_typ=copy_core_type