Package

io.github.scalats

core

Permalink

package core

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CompileUniverse[U <: Universe] extends AnyRef

    Permalink
  2. trait DeclarationMapper extends (Resolved, Settings, Resolved, FieldMapper, Declaration, Context, PrintStream) ⇒ Option[Unit]

    Permalink

    The implementations must be class with a no-arg constructor.

    The implementations must be class with a no-arg constructor.

    See: - DeclarationMapper.EnumerationAsEnum

  3. final class Emitter extends AnyRef

    Permalink

    Default emitter.

  4. final class Field extends AnyRef

    Permalink
  5. trait FieldMapper extends (Settings, String, String, TypeRef) ⇒ Field

    Permalink

    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)
    }
  6. trait ImportResolver extends (Declaration) ⇒ Option[ListSet[TypeRef]]

    Permalink

    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.

  7. trait Logger extends AnyRef

    Permalink
  8. trait Printer extends (Settings, Kind, ListSet[Kind], String, ListSet[TypeRef]) ⇒ PrintStream

    Permalink
  9. final class ScalaParser[Uni <: Universe] extends AnyRef

    Permalink
  10. final class Settings extends AnyRef

    Permalink

    Created by Milosz on 09.12.2016.

  11. final class Transpiler extends AnyRef

    Permalink

    Created by Milosz on 09.06.2016.

  12. trait TypeMapper extends (Resolved, Settings, Declaration, Field, TypeRef) ⇒ Option[String]

    Permalink

    The implementations must be class with a no-arg constructor.

  13. trait TypeNaming extends (Settings, TypeRef) ⇒ String

    Permalink

Value Members

  1. object CompileUniverse

    Permalink
  2. object DeclarationMapper

    Permalink
  3. object Field

    Permalink
  4. object FieldMapper

    Permalink
  5. object Generator

    Permalink

    Created by Milosz on 11.06.2016.

  6. object ImportResolver

    Permalink
  7. object Logger extends LoggerCompat

    Permalink
  8. object Printer

    Permalink
  9. object Settings

    Permalink
  10. object TypeMapper

    Permalink
  11. object TypeNaming

    Permalink

Ungrouped