NirCodeGen

scala.scalanative.nscplugin.NirCodeGen
class NirCodeGen(val settings: Settings)(using ctx: Context) extends NirGenStat with NirGenExpr with NirGenType with NirGenName with NirGenUtil with GenReflectiveInstantisation

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Classlikes

class CollectMethodInfo extends TreeTraverser

Attributes

Graph
Supertypes
class TreeTraverser
class TreeAccumulator[Unit]
class Object
trait Matchable
class Any
class MethodEnv(val fresh: Fresh)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class MethodLabelsEnv(val fresh: Fresh)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

sealed case class ContTree(f: () => Val) extends Tree[Type]

Attributes

Inherited from:
NirGenExpr
Graph
Supertypes
trait Serializable
class Tree[Type]
trait Showable
trait Container
trait LinkSource
class Positioned
trait Cloneable
trait Product
trait Equals
trait SrcPos
class Object
trait Matchable
class Any
class ExprBuffer(using fresh: Fresh) extends FixupBuffer

Attributes

Inherited from:
NirGenExpr
Graph
Supertypes
class Buffer
class Object
trait Matchable
class Any
sealed class FixupBuffer(using fresh: Fresh) extends Buffer

Attributes

Inherited from:
NirGenExpr
Graph
Supertypes
class Buffer
class Object
trait Matchable
class Any
Known subtypes
sealed case class SimpleType(sym: Symbol, targs: Seq[SimpleType])

Attributes

Inherited from:
NirGenType
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
protected case class StaticForwarderClass(defn: Class, forwarders: Seq[Define])

Attributes

Inherited from:
NirGenStat
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed case class ValTree(value: Val) extends Tree[Type]

Attributes

Inherited from:
NirGenExpr
Graph
Supertypes
trait Serializable
class Tree[Type]
trait Showable
trait Container
trait LinkSource
class Positioned
trait Cloneable
trait Product
trait Equals
trait SrcPos
class Object
trait Matchable
class Any

Value members

Concrete methods

def run(): Unit

Inherited methods

protected def checkExplicitReturnTypeAnnotation(externDef: ValOrDefDef, methodKind: String): Unit

Attributes

Inherited from:
NirGenStat

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType
def genClass(td: TypeDef)(using Context): Unit

Attributes

Inherited from:
NirGenStat
def genExternMethod(attrs: Attrs, name: Global, origSig: Type, rhs: Tree): Option[Defn]

Attributes

Inherited from:
NirGenStat
def genExternMethodSig(sym: Symbol): Function

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType
def genFieldName(sym: Symbol): Global

Attributes

Inherited from:
NirGenName
protected def genLinktimeResolved(dd: DefDef, name: Global)(using Position): Option[Defn]

Attributes

Inherited from:
NirGenStat
def genMethodName(sym: Symbol): Global

Attributes

Inherited from:
NirGenName
def genMethodSig(sym: Symbol): Function

Attributes

Inherited from:
NirGenType
def genModuleName(sym: Symbol): Top

Attributes

Inherited from:
NirGenName
def genName(sym: Symbol): Global

Attributes

Inherited from:
NirGenName

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
GenReflectiveInstantisation
def genStaticMemberName(sym: Symbol, explicitOwner: Symbol): Global

Attributes

Inherited from:
NirGenName

Attributes

Inherited from:
NirGenType
def genTypeName(sym: Symbol): Top

Attributes

Inherited from:
NirGenName

Attributes

Inherited from:
NirGenType
def validateExternCtor(rhs: Tree): Unit

Attributes

Inherited from:
NirGenStat

Concrete fields

Inherited fields

Attributes

Inherited from:
NirGenStat

Attributes

Inherited from:
NirGenStat

Attributes

Inherited from:
NirGenStat

Givens

Inherited givens

given fromSymbol: Conversion[Symbol, SimpleType]

Attributes

Inherited from:
NirGenType
given fromType: Conversion[Type, SimpleType]

Attributes

Inherited from:
NirGenType

Extensions

Inherited extensions

extension (sym: Symbol)

Tests if this type inherits from CFuncPtr

Tests if this type inherits from CFuncPtr

Attributes

Inherited from:
NirGenType

Tests if this type is implementations of CFuncPtr

Tests if this type is implementations of CFuncPtr

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType

Attributes

Inherited from:
NirGenType
extension (tpe: Type)

Attributes

Inherited from:
NirGenType