/* Ċ Ġ* ĠCopyright Ġ 2 0 1 0 - 2 0 2 1 ĠJetBrains Ġs . r . o . Ġand ĠKotlin ĠProgramming ĠLanguage Ġcontributors . Ċ Ġ* ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe Ġlicense / LICENSE . txt Ġfile . Ċ Ġ*/ Ċ Ċ package Ġorg . jetbrains . kotlin . ir . serialization Ċ Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . Ir Constructor Call Ġas ĠProto Ir Constructor Call Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . Ir Inline Class Representation Ġas ĠProto Ir Inline Class Representation Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . Ir Variable Ġas ĠProto Ir Variable Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Anonymous Initializer Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Class Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Constructor Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Enum Entry Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Error Declaration Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Field Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Function Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Local Deleg ated Property Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Property Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Type Alias Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Type Parameter Carrier Ċ import Ġorg . jetbrains . kotlin . backend . common . serialization . proto . P ir Value Parameter Carrier Ċ import Ġorg . jetbrains . kotlin . descriptors . Descriptor Visibility Ċ import Ġorg . jetbrains . kotlin . descriptors . Inline Class Representation Ċ import Ġorg . jetbrains . kotlin . descriptors . Modal ity Ċ import Ġorg . jetbrains . kotlin . ir . declarations . Ir Declaration Origin Ċ import Ġorg . jetbrains . kotlin . ir . declarations . Ir Variable Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Anonymous Initializer Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Class Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Constructor Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Enum Entry Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Error Declaration Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Field Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Function Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Local Deleg ated Property Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Property Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Type Alias Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Type Parameter Carrier Ċ import Ġorg . jetbrains . kotlin . ir . declarations . persistent . car riers . Value Parameter Carrier Ċ import Ġorg . jetbrains . kotlin . ir . expressions . Ir Block Body Ċ import Ġorg . jetbrains . kotlin . ir . expressions . Ir Body Ċ import Ġorg . jetbrains . kotlin . ir . expressions . Ir Constructor Call Ċ import Ġorg . jetbrains . kotlin . ir . expressions . Ir Expression Body Ċ import Ġorg . jetbrains . kotlin . ir . symbols . Ir Class Symbol Ċ import Ġorg . jetbrains . kotlin . ir . symbols . Ir Field Symbol Ċ import Ġorg . jetbrains . kotlin . ir . symbols . Ir Property Symbol Ċ import Ġorg . jetbrains . kotlin . ir . symbols . Ir Simple Function Symbol Ċ import Ġorg . jetbrains . kotlin . ir . symbols . Ir Symbol Ċ import Ġorg . jetbrains . kotlin . ir . symbols . Ir Type Parameter Symbol Ċ import Ġorg . jetbrains . kotlin . ir . symbols . Ir Value Parameter Symbol Ċ import Ġorg . jetbrains . kotlin . ir . types . Ir Simple Type Ċ import Ġorg . jetbrains . kotlin . ir . types . Ir Type Ċ Ċ // ĠAuto - generated Ġby Ġcompiler / ir / ir . tree . persistent / generator / src / org / jetbrains / kotlin / ir / persistent Ir Generator / Main . kt . ĠDO ĠNOT ĠEDIT ! Ċ Ċ internal Ġabstract Ġclass ĠIr Carrier Serializer Ġ{ ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Parent Symbol ( value : ĠIr Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Origin ( value : ĠIr Declaration Origin ): ĠInt ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Annotation ( value : ĠIr Constructor Call ): ĠProto Ir Constructor Call ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Body ( value : ĠIr Body ): ĠInt ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Block Body ( value : ĠIr Block Body ): ĠInt ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Expression Body ( value : ĠIr Expression Body ): ĠInt ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Value Parameter ( value : ĠIr Value Parameter Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Type Parameter ( value : ĠIr Type Parameter Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Super Type ( value : ĠIr Type ): ĠInt ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Type ( value : ĠIr Type ): ĠInt ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Class ( value : ĠIr Class Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Property Symbol ( value : ĠIr Property Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Simple Function ( value : ĠIr Simple Function Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Simple Function Symbol ( value : ĠIr Simple Function Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Field ( value : ĠIr Field Symbol ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Variable ( value : ĠIr Variable ): ĠProto Ir Variable ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Visibility ( value : ĠDescriptor Visibility ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Modal ity ( value : ĠMod ality ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Inline Class Representation ( value : ĠInline Class Representation < Ir Simple Type >): ĠProto Ir Inline Class Representation ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Is External Class ( value : ĠBoolean ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Is External Field ( value : ĠBoolean ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Is External Function ( value : ĠBoolean ): ĠLong ĊĊĠĠĠ Ġabstract Ġfun Ġserialize Is External Property ( value : ĠBoolean ): ĠLong ĊĊĠĠĠ Ġfun Ġserialize Anonymous Initializer Carrier ( carrier : ĠAn onymous Initializer Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Anonymous Initializer Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġcarrier . body Field ?. let Ġ{ Ġproto . set Body ( serialize Block Body ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Class Carrier ( carrier : ĠClass Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Class Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġcarrier . this Receiver Symbol Field ?. let Ġ{ Ġproto . set This Receiver ( serialize Value Parameter ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Flags ( serialize Visibility ( carrier . visibility Field ) Ġor Ġserialize Modal ity ( carrier . modal ity Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Type Parameters ( carrier . type Parameters Symbol Field . map Ġ{ Ġserialize Type Parameter ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . addAll Super Types ( carrier . super Types Field . map Ġ{ Ġserialize Super Type ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġcarrier . inline Class Representation Field ?. let Ġ{ Ġproto . set Inline Class Representation ( serialize Inline Class Representation ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Constructor Carrier ( carrier : ĠConstructor Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Constructor Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . set ReturnType Field ( serialize Type ( carrier . returnType Field Field )) ĊĠĠĠĠĠĠĠ Ġcarrier . dispatch Receiver Parameter Symbol Field ?. let Ġ{ Ġproto . set Dispatch Receiver Parameter ( serialize Value Parameter ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . extension Receiver Parameter Symbol Field ?. let Ġ{ Ġproto . set Extension Receiver Parameter ( serialize Value Parameter ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . body Field ?. let Ġ{ Ġproto . set Body ( serialize Body ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Flags ( serialize Visibility ( carrier . visibility Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Type Parameters ( carrier . type Parameters Symbol Field . map Ġ{ Ġserialize Type Parameter ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . addAll Value Parameters ( carrier . value Parameters Symbol Field . map Ġ{ Ġserialize Value Parameter ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Enum Entry Carrier ( carrier : ĠEnum Entry Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Enum Entry Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġcarrier . corre sponding Class Symbol Field ?. let Ġ{ Ġproto . set Corre sponding Class ( serialize Class ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . initializer Expression Field ?. let Ġ{ Ġproto . set Initializer Expression ( serialize Expression Body ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Error Declaration Carrier ( carrier : ĠError Declaration Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Error Declaration Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Field Carrier ( carrier : ĠField Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Field Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . setType ( serialize Type ( carrier . type Field )) ĊĠĠĠĠĠĠĠ Ġcarrier . initializer Field ?. let Ġ{ Ġproto . set Initializer ( serialize Expression Body ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . corre sponding Property Symbol Field ?. let Ġ{ Ġproto . set Corre sponding Property Symbol ( serialize Property Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Function Carrier ( carrier : ĠFunction Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Function Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . set ReturnType Field ( serialize Type ( carrier . returnType Field Field )) ĊĠĠĠĠĠĠĠ Ġcarrier . dispatch Receiver Parameter Symbol Field ?. let Ġ{ Ġproto . set Dispatch Receiver Parameter ( serialize Value Parameter ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . extension Receiver Parameter Symbol Field ?. let Ġ{ Ġproto . set Extension Receiver Parameter ( serialize Value Parameter ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . body Field ?. let Ġ{ Ġproto . set Body ( serialize Body ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Flags ( serialize Visibility ( carrier . visibility Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Type Parameters ( carrier . type Parameters Symbol Field . map Ġ{ Ġserialize Type Parameter ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . addAll Value Parameters ( carrier . value Parameters Symbol Field . map Ġ{ Ġserialize Value Parameter ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġcarrier . corre sponding Property Symbol Field ?. let Ġ{ Ġproto . set Corre sponding Property Symbol ( serialize Property Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . addAll Over ridden Symbols ( carrier . over ridden Symbols Field . map Ġ{ Ġserialize Simple Function Symbol ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Local Deleg ated Property Carrier ( carrier : ĠLocal Deleg ated Property Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Local Deleg ated Property Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . setType ( serialize Type ( carrier . type Field )) ĊĠĠĠĠĠĠĠ Ġcarrier . delegate Field ?. let Ġ{ Ġproto . set Delegate ( serialize Variable ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . getter Symbol Field ?. let Ġ{ Ġproto . set Getter ( serialize Simple Function ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . setter Symbol Field ?. let Ġ{ Ġproto . set Setter ( serialize Simple Function ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Property Carrier ( carrier : ĠProperty Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Property Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġcarrier . back ing Field Symbol Field ?. let Ġ{ Ġproto . set Backing Field ( serialize Field ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . getter Symbol Field ?. let Ġ{ Ġproto . set Getter ( serialize Simple Function ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġcarrier . setter Symbol Field ?. let Ġ{ Ġproto . set Setter ( serialize Simple Function ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Type Alias Carrier ( carrier : ĠType Alias Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Type Alias Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . addAll Type Parameters ( carrier . type Parameters Symbol Field . map Ġ{ Ġserialize Type Parameter ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . set Expanded Type ( serialize Type ( carrier . expanded Type Field )) ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Type Parameter Carrier ( carrier : ĠType Parameter Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Type Parameter Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġproto . addAll Super Types ( carrier . super Types Field . map Ġ{ Ġserialize Super Type ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġserialize Value Parameter Carrier ( carrier : ĠValue Parameter Carrier ): ĠByteArray Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproto Ġ= ĠP ir Value Parameter Carrier . newBuilder () ĊĠĠĠĠĠĠĠ Ġproto . set LastModified ( carrier . lastModified ) ĊĠĠĠĠĠĠĠ Ġcarrier . parent Symbol Field ?. let Ġ{ Ġproto . setParent Symbol ( serialize Parent Symbol ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . set Origin ( serialize Origin ( carrier . origin Field )) ĊĠĠĠĠĠĠĠ Ġproto . addAll Annotation ( carrier . annotations Field . map Ġ{ Ġserialize Annotation ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġcarrier . defaultValue Field ?. let Ġ{ Ġproto . set DefaultValue ( serialize Expression Body ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġproto . setType ( serialize Type ( carrier . type Field )) ĊĠĠĠĠĠĠĠ Ġcarrier . var arg ElementType Field ?. let Ġ{ Ġproto . set Var arg ElementType ( serialize Type ( it )) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġproto . build (). toByteArray () ĊĠĠĠ Ġ} Ċ } Ċ