All Downloads are FREE. Search and download functionalities are using the official Maven repository.

izumi.idealingua.translator.toprotobuf.IdentifierRenderer.scala Maven / Gradle / Ivy

The newest version!
package izumi.idealingua.translator.toprotobuf

import izumi.idealingua.model.il.ast.typed.TypeDef.Identifier
import izumi.idealingua.translator.toprotobuf.products.CogenProducts

final class IdentifierRenderer(ctx: PBTContext) {
  def defns(i: Identifier): CogenProducts.Message = {
    val self   = ctx.conv.toProtobuf(i.id)
    val fields = ctx.conv.toProtobuf(i.fields)
    ctx.ext.extend(i, CogenProducts.Message(self, fields), _.handleIdentifier)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy