@@ -118,7 +118,7 @@ class MessageGenerator {
118118
119119 let conformances : String
120120 if isExtensible {
121- conformances = " : \( Version . moduleName ) .ExtensibleMessage "
121+ conformances = " : \( SwiftProtobufInfo . name ) .ExtensibleMessage "
122122 } else {
123123 conformances = " "
124124 }
@@ -127,7 +127,7 @@ class MessageGenerator {
127127 descriptor. protoSourceComments ( ) ,
128128 " \( visibility) struct \( swiftRelativeName) \( conformances) { \n " )
129129 p. indent ( )
130- p. print ( " // \( Version . moduleName ) .Message conformance is added in an extension below. See the \n " ,
130+ p. print ( " // \( SwiftProtobufInfo . name ) .Message conformance is added in an extension below. See the \n " ,
131131 " // `Message` and `Message+*Additions` files in the SwiftProtobuf library for \n " ,
132132 " // methods supported on all messages. \n " )
133133
@@ -137,7 +137,7 @@ class MessageGenerator {
137137
138138 p. print (
139139 " \n " ,
140- " \( visibility) var unknownFields = \( Version . moduleName ) .UnknownStorage() \n " )
140+ " \( visibility) var unknownFields = \( SwiftProtobufInfo . name ) .UnknownStorage() \n " )
141141
142142 for o in oneofs {
143143 o. generateMainEnum ( printer: & p)
@@ -164,7 +164,7 @@ class MessageGenerator {
164164 if isExtensible {
165165 p. print (
166166 " \n " ,
167- " \( visibility) var _protobuf_extensionFieldValues = \( Version . moduleName ) .ExtensionFieldValueSet() \n " )
167+ " \( visibility) var _protobuf_extensionFieldValues = \( SwiftProtobufInfo . name ) .ExtensionFieldValueSet() \n " )
168168 }
169169 if let storage = storage {
170170 if !isExtensible {
@@ -200,7 +200,7 @@ class MessageGenerator {
200200 func generateRuntimeSupport( printer p: inout CodePrinter , file: FileGenerator , parent: MessageGenerator ? ) {
201201 p. print (
202202 " \n " ,
203- " extension \( swiftFullName) : \( Version . moduleName ) .Message, \( Version . moduleName ) ._MessageImplementationBase, \( Version . moduleName ) ._ProtoNameProviding { \n " )
203+ " extension \( swiftFullName) : \( SwiftProtobufInfo . name ) .Message, \( SwiftProtobufInfo . name ) ._MessageImplementationBase, \( SwiftProtobufInfo . name ) ._ProtoNameProviding { \n " )
204204 p. indent ( )
205205
206206 if let parent = parent {
@@ -239,9 +239,9 @@ class MessageGenerator {
239239
240240 private func generateProtoNameProviding( printer p: inout CodePrinter ) {
241241 if fields. isEmpty {
242- p. print ( " \( visibility) static let _protobuf_nameMap = \( Version . moduleName ) ._NameMap() \n " )
242+ p. print ( " \( visibility) static let _protobuf_nameMap = \( SwiftProtobufInfo . name ) ._NameMap() \n " )
243243 } else {
244- p. print ( " \( visibility) static let _protobuf_nameMap: \( Version . moduleName ) ._NameMap = [ \n " )
244+ p. print ( " \( visibility) static let _protobuf_nameMap: \( SwiftProtobufInfo . name ) ._NameMap = [ \n " )
245245 p. indent ( )
246246 for f in fields {
247247 p. print ( " \( f. number) : \( f. fieldMapNames) , \n " )
@@ -256,7 +256,7 @@ class MessageGenerator {
256256 ///
257257 /// - Parameter p: The code printer.
258258 private func generateDecodeMessage( printer p: inout CodePrinter ) {
259- p. print ( " \( visibility) mutating func decodeMessage<D: \( Version . moduleName ) .Decoder>(decoder: inout D) throws { \n " )
259+ p. print ( " \( visibility) mutating func decodeMessage<D: \( SwiftProtobufInfo . name ) .Decoder>(decoder: inout D) throws { \n " )
260260 p. indent ( )
261261 if storage != nil {
262262 p. print ( " _ = _uniqueStorage() \n " )
@@ -319,7 +319,7 @@ class MessageGenerator {
319319 ///
320320 /// - Parameter p: The code printer.
321321 private func generateTraverse( printer p: inout CodePrinter ) {
322- p. print ( " \( visibility) func traverse<V: \( Version . moduleName ) .Visitor>(visitor: inout V) throws { \n " )
322+ p. print ( " \( visibility) func traverse<V: \( SwiftProtobufInfo . name ) .Visitor>(visitor: inout V) throws { \n " )
323323 p. indent ( )
324324 generateWithLifetimeExtension ( printer: & p, throws: true ) { p in
325325 if let storage = storage {
0 commit comments