package core
- Alphabetic
- Public
- Protected
Type Members
- sealed trait CompileUniverse[U <: Universe] extends AnyRef
- trait DeclarationMapper extends (Resolved, Settings, Resolved, FieldMapper, Declaration, PrintStream) => Option[Unit]
The implementations must be class with a no-arg constructor.
The implementations must be class with a no-arg constructor.
- final class Emitter extends AnyRef
Default emitter.
- final class Field extends AnyRef
- trait FieldMapper extends (Settings, String, String, TypeRef) => Field
Functional type to customize the field naming and access.
Functional type to customize the field naming and access.
import scala.collection.immutable.Set import io.github.scalats.ast.TypeRef import io.github.scalats.core.{ Settings, Field, FieldMapper } class CustomFieldMapper extends FieldMapper { def apply( settings: Settings, ownerType: String, propertyName: String, propertyType: TypeRef) = Field("_" + propertyName, Set.empty) }
- trait ImportResolver extends (Declaration) => Option[ListSet[TypeRef]]
Resolves the imports for TypeScript declarations.
Resolves the imports for TypeScript declarations. Must be consistent with applied Printer and DeclarationMapper.
The implementations must be class with a no-arg constructor.
- trait Logger extends AnyRef
- trait Printer extends (Settings, Kind, String, ListSet[TypeRef]) => PrintStream
- final class ScalaParser[Uni <: Universe] extends AnyRef
- final class Settings extends AnyRef
Created by Milosz on 09.12.2016.
- final class Transpiler extends AnyRef
Created by Milosz on 09.06.2016.
- trait TypeMapper extends (Resolved, Settings, Declaration, Field, TypeRef) => Option[String]
The implementations must be class with a no-arg constructor.
The implementations must be class with a no-arg constructor.
See: - TypeMapper.ArrayAsGeneric - TypeMapper.ArrayAsBrackets - TypeMapper.DateAsString - TypeMapper.NumberAsString - TypeMapper.NullableAsOption
- trait TypeNaming extends (Settings, TypeRef) => String
Value Members
- object CompileUniverse
- object DeclarationMapper
- object Field
- object FieldMapper
- object Generator
Created by Milosz on 11.06.2016.
- object ImportResolver
- object Logger extends LoggerCompat
- object Printer
- object Settings
- object TypeMapper
- object TypeNaming