PdefCodePrinter

nscn.polaris2.pdefgen.PdefCodePrinter

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def codecExpr(t: PdefType): String

The codec for a value of pdef type t, as an expression.

The codec for a value of pdef type t, as an expression.

Attributes

def gen(pdef: Pdef, packageName: String): PrinterEndo

Renders a whole .pdef as one Scala source file.

Renders a whole .pdef as one Scala source file.

The top-level fields of the pdef become a struct named after the file, so Pdata231.pdef yields case class Pdata231(...) plus codec_Pdata231. A file with no top-level fields only declares types for other files to use, and gets no struct.

Attributes

def scalaType(t: PdefType): String

The Scala type a value of pdef type t is surfaced as.

The Scala type a value of pdef type t is surfaced as.

Attributes