MatchableLiteral

org.scalajs.ir.Trees$.MatchableLiteral
sealed trait MatchableLiteral extends Literal

Marker for literals that can be used in a Match case.

Matchable literals are:

  • IntLiteral
  • StringLiteral
  • Null

See Match for the rationale about that specific set.

Attributes

Graph
Supertypes
trait Literal
class Tree
class IRNode
class Object
trait Matchable
class Any
Known subtypes
class Null

Members list

Concise view

Value members

Inherited methods

Attributes

Inherited from:
IRNode

Attributes

Inherited from:
IRNode

Inherited fields

val tpe: Type

Attributes

Inherited from:
Tree