ClassDefMethods
trait ClassDefMethods
Extension methods of ClassDef
- Source:
- Quotes.scala
Extensions
Extensions
extension (self: ClassDef)
Statements within the class
Statements within the class
package scala.quoted
trait Snippet0 { self: runtime.QuoteUnpickler & scala.quoted.runtime.QuoteMatching & scala.quoted.Quotes =>
val QuoteUnpickler = self
val QuoteMatching = self
val Quotes = self
trait Snippet1 { self: Quotes.reflect.type /*Quotes.reflectModule*/ & Quotes.reflectModule =>
val reflect = self
val reflectModule = self
trait Snippet2 { self: reflectModule.ClassDefMethods =>
val ClassDefMethods = self
class C {
??? // statements
}
}
}
}
- Source:
- Quotes.scala
List of extended parent classes or traits.
List of extended parent classes or traits. The first parent is always a class.
- Source:
- Quotes.scala
Self-type of the class
Self-type of the class
package scala.quoted
trait Snippet0 { self: runtime.QuoteUnpickler & scala.quoted.runtime.QuoteMatching & scala.quoted.Quotes =>
val QuoteUnpickler = self
val QuoteMatching = self
val Quotes = self
trait Snippet1 { self: Quotes.reflect.type /*Quotes.reflectModule*/ & Quotes.reflectModule =>
val reflect = self
val reflectModule = self
trait Snippet2 { self: reflectModule.ClassDefMethods =>
val ClassDefMethods = self
type T
class C { self: T =>
???
}
}
}
}
- Source:
- Quotes.scala