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

izumi.idealingua.il.renderer.RIdField.scala Maven / Gradle / Ivy

The newest version!
package izumi.idealingua.il.renderer

import izumi.functional.Renderable
import izumi.idealingua.model.il.ast.typed.IdField

class RIdField(context: IDLRenderingContext) extends Renderable[IdField] {
  import context._

  override def render(field: IdField): String = {
    val repr = s"${field.name}: ${field.typeId.render()}"
    context.meta.withMeta(field.meta, repr)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy