abstract class DefaultMacroCompiler extends Resolvers with Validators with Errors
- Alphabetic
- By Inheritance
- DefaultMacroCompiler
- Errors
- Traces
- Validators
- Resolvers
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DefaultMacroCompiler()
Type Members
- case class MacroImplRefCompiler (untypedMacroImplRef: tools.nsc.Global.Tree, isImplBundle: Boolean) extends Resolver with Validator with Error with Product with Serializable
-
trait
Error
extends AnyRef
- Definition Classes
- Errors
-
trait
Resolver
extends AnyRef
- Definition Classes
- Resolvers
-
trait
Validator
extends AnyRef
- Definition Classes
- Validators
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to any2stringadd[DefaultMacroCompiler] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (DefaultMacroCompiler, B)
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to ArrowAssoc[DefaultMacroCompiler] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
MacroBundleNonStaticError(): Nothing
- Definition Classes
- Errors
-
def
MacroBundleWrongShapeError(): Nothing
- Definition Classes
- Errors
-
def
MacroImplAmbiguousError(): Nothing
- Definition Classes
- Errors
- def abort(pos: tools.nsc.Global.Position, msg: String): Nothing
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val context: (analyzer)#Context
-
def
ensuring(cond: (DefaultMacroCompiler) ⇒ Boolean, msg: ⇒ Any): DefaultMacroCompiler
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to Ensuring[DefaultMacroCompiler] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (DefaultMacroCompiler) ⇒ Boolean): DefaultMacroCompiler
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to Ensuring[DefaultMacroCompiler] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): DefaultMacroCompiler
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to Ensuring[DefaultMacroCompiler] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): DefaultMacroCompiler
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to Ensuring[DefaultMacroCompiler] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to StringFormat[DefaultMacroCompiler] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def globalSettings: Settings
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
macroDebugLite: Boolean
- Definition Classes
- Traces
-
val
macroDebugVerbose: Boolean
- Definition Classes
- Traces
- lazy val macroDef: tools.nsc.Global.Symbol
-
final
def
macroLogLite(msg: ⇒ Any): Unit
- Definition Classes
- Traces
- Annotations
- @inline()
-
final
def
macroLogVerbose(msg: ⇒ Any): Unit
- Definition Classes
- Traces
- Annotations
- @inline()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
resolveMacroImpl: tools.nsc.Global.Tree
Resolves a macro impl reference provided in the right-hand side of the given macro definition.
Resolves a macro impl reference provided in the right-hand side of the given macro definition.
Acceptable shapes of the right-hand side: 1) [<static object>].<method name>args> // vanilla macro impl ref 2) [<macro bundle>].<method name>args> // shiny new macro bundle impl ref
Produces a tree, which represents a reference to a macro implementation if everything goes well, otherwise reports found errors and returns EmptyTree. The resulting tree should have the following format:
qualifier.method[targs]
Qualifier here might be omitted (local macro defs), be a static object (vanilla macro defs) or be a dummy instance of a macro bundle (e.g. new MyMacro(???).expand).
- val runDefinitions: internal.Definitions.definitions.RunDefinitions
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (DefaultMacroCompiler, B)
- Implicit
- This member is added by an implicit conversion from DefaultMacroCompiler to ArrowAssoc[DefaultMacroCompiler] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
The Scala compiler API.
The following resources are useful for Scala plugin/compiler development: