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
Show all
Known subtypes
class IntLiteral
class Null

Members list

Value members

Inherited methods

def pos: Position

Attributes

Inherited from:
IRNode
def show: String

Attributes

Inherited from:
IRNode

Inherited fields

val tpe: Type

Attributes

Inherited from:
Tree