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
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Placeholders
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- trait HolePlaceholder extends AnyRef
Value Members
- lazy val code: String
- lazy val posMap: LinkedHashMap[Position, (Int, Int)]
- object AnnotPlaceholder extends Quasiquotes.HolePlaceholder
- object CasePlaceholder
- object EarlyDefPlaceholder
- object ForEnumPlaceholder
- object FunctionTypePlaceholder
- object ModsPlaceholder extends Quasiquotes.HolePlaceholder
- object PackageStatPlaceholder
- object ParamPlaceholder extends Quasiquotes.HolePlaceholder
- object Placeholder extends Quasiquotes.HolePlaceholder
- object RefineStatPlaceholder
- object SymbolPlaceholder
- object TuplePlaceholder
- object TupleTypePlaceholder
- object holeMap
The Scala compiler and reflection APIs.