class KotlinFileCodegen[+IR <: ScalanEx] extends FileCodegen[IR]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KotlinFileCodegen
- FileCodegen
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new KotlinFileCodegen(_scalan: IR, config: CodegenConfig)
Type Members
-
sealed
trait
BaseNumericType extends AnyRef
- Definition Classes
- FileCodegen
-
sealed
trait
SpecialNumericValue extends AnyRef
- Definition Classes
- FileCodegen
-
trait
SrcStringHelper extends AnyRef
- Definition Classes
- FileCodegen
-
class
SrcStringHelperBase extends SrcStringHelper
- Definition Classes
- FileCodegen
- class SrcStringHelperKotlin extends SrcStringHelperBase
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val PairType: SSymName
-
def
applyFunction(f: IR.Sym, args: Seq[IR.Sym]): String
- Definition Classes
- FileCodegen
-
def
argList(f: IR.Sym, x: IR.Sym): List[IR.Sym]
- Definition Classes
- FileCodegen
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
binOp(op: IR.BinOp[_, _], x: IR.Ref[_], y: IR.Ref[_]): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
lazy val
codegenName: String
- Definition Classes
- FileCodegen
-
val
config: CodegenConfig
- Definition Classes
- FileCodegen
- implicit val context: AstContextBase
- implicit def ctxToWriter(implicit ctx: GenCtx): PrintWriter
- val devirtPipeline: DevirtPipeline
-
def
emit(string: String)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
- Definition Classes
- FileCodegen
-
def
emit(lines: Seq[String])(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
- Definition Classes
- FileCodegen
- def emitBody(body: List[SBodyItem])(implicit ctx: GenCtx, l: IndentLevel): Unit
- def emitBodyItem(x: SBodyItem)(implicit ctx: GenCtx, l: IndentLevel): Unit
- def emitClass(c: SClassDef)(implicit ctx: GenCtx, l: IndentLevel): Unit
-
def
emitFooter(graph: IR.PGraph, functionName: String)(implicit stream: PrintWriter): Nothing
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
emitFunction(sym: IR.Sym, args: List[IR.Sym], returnValue: Option[IR.Ref[Any]], lambdaOrThunk: IR.AstGraph, f: (IR.Schedule) ⇒ IR.Schedule)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
- Definition Classes
- FileCodegen
-
def
emitHeader(graph: IR.PGraph, functionName: String)(implicit stream: PrintWriter): Nothing
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
emitKernel(graph: IR.PGraph, functionName: String)(implicit stream: PrintWriter): Unit
- Definition Classes
- FileCodegen
- def emitLambdaFooter(lam: IR.Lambda[_, _], functionName: String)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
- def emitLambdaHeader(f: IR.Ref[_], lam: IR.Lambda[_, _], functionName: String)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
- def emitModule(name: SSymName)(implicit writer: PrintWriter, indentLevel: IndentLevel): Unit
-
def
emitNode(sym: IR.Ref[_], d: IR.Def[_], graph: IR.AstGraph)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
emitSchedule(graph: IR.AstGraph, f: (IR.Schedule) ⇒ IR.Schedule)(implicit stream: PrintWriter, indentLevel: IndentLevel): Unit
- Definition Classes
- FileCodegen
-
def
emitSourceFile(graph: IR.PGraph, functionName: String, sourcesDir: File): File
- Definition Classes
- FileCodegen
- def emitTrait(t: STraitDef)(implicit ctx: GenCtx, l: IndentLevel): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fileExtension: String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
fileName(baseName: String): String
- Definition Classes
- FileCodegen
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
functionFooter(): Option[String]
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
functionHeader(sym: IR.Ref[_], args: List[IR.Ref[_]]): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
functionReturn(y: IR.Ref[_]): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
- def genClassArg(arg: SClassArg)(implicit ctx: GenCtx): String
- def genClassArgs(args: SClassArgs, implicitArgs: SClassArgs)(implicit ctx: GenCtx): List[List[String]]
- def genMethodArg(arg: SMethodArg)(implicit ctx: GenCtx): String
- def genMethodArgs(argSections: List[SMethodArgs])(implicit ctx: GenCtx): List[String]
- def genParents(ancestors: List[STypeApply])(implicit ctx: GenCtx): List[String]
- def genTpeExpr(tpeExpr: STpeExpr)(implicit ctx: GenCtx): String
- def genTuple2(first: String, second: String)(implicit ctx: GenCtx): String
- def genTuples(elems: List[STpeExpr])(implicit ctx: GenCtx): String
- def genTypeArg(arg: STpeArg)(implicit ctx: GenCtx): String
- def genTypeArgs(tpeArgs: STpeArgs)(implicit ctx: GenCtx): List[String]
- def genTypeSel(ref: String, name: String)(implicit ctx: GenCtx): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
id(s: IR.Sym): String
- Definition Classes
- FileCodegen
-
val
importBuilder: ImportBuilder
- Definition Classes
- FileCodegen
-
def
indent: String
- Attributes
- protected
- Definition Classes
- FileCodegen
-
def
indented(f: (IndentLevel) ⇒ Unit)(implicit indentLevel: IndentLevel): Unit
- Definition Classes
- FileCodegen
-
def
init(functionName: String, graph: IR.PGraph): Unit
- Definition Classes
- FileCodegen
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
languageName: String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
literal(value: Any): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
- def mapTypeName(name: String)(implicit ctx: GenCtx): String
- def modules: Map[SSymName, SUnitDef]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
reset(): Unit
- Definition Classes
- FileCodegen
-
def
rhs(d: IR.Def[_]): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
val
scalan: IR
- Definition Classes
- FileCodegen
-
def
simpleNode(sym: IR.Ref[_], d: IR.Def[_]): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
sourceFile(sourcesDir: File, functionName: String): File
- Definition Classes
- FileCodegen
-
def
specialNumericLiteral(x: SpecialNumericValue, t: BaseNumericType): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
implicit
def
srcStringHelper(sc: StringContext): SrcStringHelper
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def tableLit(elems: Iterable[String]): String
-
def
toString(): String
- Definition Classes
- FileCodegen → AnyRef → Any
-
def
tpe(elem: IR.Elem[_]): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
- def transitiveClosureSet(modules: Seq[SUnitDef], deps: (SUnitDef) ⇒ Iterable[SUnitDef]): Set[SSymName]
- def translateMethodArg(arg: AnyRef): Option[String]
-
def
translateToSrc(arg: Any): String
- Attributes
- protected
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
def
unOp(op: IR.UnOp[_, _], x: IR.Ref[_]): String
- Definition Classes
- KotlinFileCodegen → FileCodegen
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
NaN extends SpecialNumericValue with Product with Serializable
- Definition Classes
- FileCodegen
-
object
NegInf extends SpecialNumericValue with Product with Serializable
- Definition Classes
- FileCodegen
-
object
PosInf extends SpecialNumericValue with Product with Serializable
- Definition Classes
- FileCodegen