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

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

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

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

class RField(context: IDLRenderingContext) extends Renderable[Field] {
  import context._

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy