t

scala.tools.nsc.typechecker

DestructureTypes

trait DestructureTypes extends AnyRef

A generic means of breaking down types into their subcomponents. Types are decomposed top down, and recognizable substructure is dispatched via self-apparently named methods. Those methods can be overridden for custom behavior, but only the abstract methods require implementations, each of which must create some unknown "Node" type from its inputs.

  • wrapProduct create Node from a product of Nodes
  • wrapSequence create Node from a sequence of Nodes
  • wrapAtom create Node from an arbitrary value

This is a work in progress.

Source
DestructureTypes.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DestructureTypes
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait DestructureType[Node] extends (Global.Type) ⇒ Node

Abstract Value Members

  1. abstract val global: Global