Packages

trait Placeholders extends AnyRef

Emulates hole support (see Holes.scala) in the quasiquote parser (see Parsers.scala). A principled solution to splicing into Scala syntax would be a parser that natively supports holes. Unfortunately, that's outside of our reach in Scala 2.11, so we have to emulate. This trait stores knowledge of how to represent the holes as something understandable by the parser and how to recover holes from the results of parsing the produced representation.

Self Type
Quasiquotes
Source
Placeholders.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Placeholders
  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 HolePlaceholder extends AnyRef

Value Members

  1. lazy val code: String
  2. lazy val posMap: LinkedHashMap[Position, (Int, Int)]
  3. object AnnotPlaceholder extends Quasiquotes.HolePlaceholder
  4. object CasePlaceholder
  5. object EarlyDefPlaceholder
  6. object ForEnumPlaceholder
  7. object FunctionTypePlaceholder
  8. object ModsPlaceholder extends Quasiquotes.HolePlaceholder
  9. object PackageStatPlaceholder
  10. object ParamPlaceholder extends Quasiquotes.HolePlaceholder
  11. object Placeholder extends Quasiquotes.HolePlaceholder
  12. object RefineStatPlaceholder
  13. object SymbolPlaceholder
  14. object TuplePlaceholder
  15. object TupleTypePlaceholder
  16. object holeMap