object ContextMode
- Source
- Contexts.scala
- Alphabetic
- By Inheritance
- ContextMode
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final val AmbiguousErrors: ContextMode
-
final
val
ConstructorSuffix: ContextMode
Are we in a secondary constructor after the this constructor call?
- final val DefaultMode: ContextMode
-
final
val
DiagUsedDefaults: ContextMode
Were default arguments used?
-
final
val
EnrichmentEnabled: ContextMode
To selectively allow enrichment in patterns, where other kinds of implicit conversions are not allowed
-
final
val
FormerNonStickyModes: ContextMode
TODO: The "sticky modes" are EXPRmode, PATTERNmode, TYPEmode.
TODO: The "sticky modes" are EXPRmode, PATTERNmode, TYPEmode. To mimic the sticky mode behavior, when captain stickyfingers comes around we need to propagate those modes but forget the other context modes which were once mode bits; those being so far the ones listed here.
- final val ImplicitsEnabled: ContextMode
- final val MacrosEnabled: ContextMode
- final val NOmode: ContextMode
-
final
val
PatternAlternative: ContextMode
Are we typechecking pattern alternatives.
Are we typechecking pattern alternatives. Formerly ALTmode.
-
final
val
ReTyping: ContextMode
Are we retypechecking arguments independently from the function applied to them? See
Typer.tryTypedApply
TODO - iron out distinction/overlap with SecondTry. -
final
val
ReturnExpr: ContextMode
Are we in return position? Formerly RETmode.
-
final
val
ReturnsSeen: ContextMode
For method context: were returns encountered?
- final val SecondTry: ContextMode
-
final
val
SelfSuperCall: ContextMode
Is this context (enclosed in) a constructor call? (the call to the super or self constructor in the first line of a constructor.) In such a context, the object's fields should not be in scope
-
final
val
StarPatterns: ContextMode
Are star patterns allowed.
Are star patterns allowed. Formerly STARmode.
-
final
val
SuperInit: ContextMode
Are we typing the "super" in a superclass constructor call super.<init>.
Are we typing the "super" in a superclass constructor call super.<init>. Formerly SUPERCONSTRmode.
-
final
val
SuppressDeadArgWarning: ContextMode
Should a dead code warning be issued for a Nothing-typed argument to the current application.
-
final
val
TypeConstructorAllowed: ContextMode
Are unapplied type constructors allowed here? Formerly HKmode.
- def apply(bits: Int): ContextMode
The Scala compiler and reflection APIs.