trait DeclarationMapper extends (Resolved, Settings, Resolved, FieldMapper, Declaration, PrintStream) => Option[Unit]
The implementations must be class with a no-arg constructor.
See:
- Companion:
- object
class Object
trait Matchable
class Any
object Defaults.type
class EnumerationAsEnum
class SingletonAsLiteral
class UnionAsSimpleUnion
class ValueClassAsTagged
Value members
Abstract methods
def apply(parent: Resolved, settings: Settings, typeMapper: Resolved, fieldMapper: FieldMapper, declaration: Declaration, out: PrintStream): Option[Unit]
- Value parameters:
- declaration
the transpiled declaration to be emitted
- fieldMapper
the field mapper
- out
the printer to output the code
- parent
the parent declaration mapper
- settings
the current settings
- typeMapper
the resolved type mapper
- Returns:
Some print operation, or None if
declaration
is not handled