Const

scala.scalanative.nir.Defn$.Const
final case class Const(attrs: Attrs, name: Member, ty: Type, rhs: Val)(implicit pos: SourcePosition) extends Defn

A unique, read-only instance of some type.

A constant definition is distinct from a constant literal, which would be represented by a Val.

Attributes

Graph
Supertypes
trait Product
trait Equals
class Defn
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

Returns true iff this is considered as an entry point by reachability analysis.

Returns true iff this is considered as an entry point by reachability analysis.

Attributes

Inherited from:
Defn

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def show: String

Returns a textual representation of this.

Returns a textual representation of this.

Attributes

Inherited from:
Defn

Implicits

Implicits

implicit val pos: SourcePosition

Returns the site in the program sources corresponding to the definition.

Returns the site in the program sources corresponding to the definition.

Attributes