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

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

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

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

class RSimpleStructure(context: IDLRenderingContext) extends Renderable[SimpleStructure] {
  import context._

  override def render(signature: SimpleStructure): String = {
    Seq(
      signature.concepts.map(_.render()).map(t => s"+ $t"),
      signature.fields.map(_.render()),
    ).flatten.mkString(", ")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy