Skip to content

Commit 5428549

Browse files
committed
New Flag: Inline
Added now because it affects purity if expressions: Inlined pure values are pure even if referenced from impure prefixes (i.e. prefix need not be evaluated).
1 parent 1fdc188 commit 5428549

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/dotty/tools/dotc/core/Flags.scala

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ object Flags {
324324
/** Symbol is initialized to the default value, e.g. var x: T = _ */
325325
final val DefaultInit = termFlag(29, "<defaultinit>")
326326

327-
/** Symbol is a macro */
328-
final val Macro = commonFlag(30, "<macro>")
327+
/** Symbol is inlined */
328+
final val Inline = commonFlag(30, "inline")
329329

330330
/** Symbol is defined by a Java class */
331331
final val JavaDefined = commonFlag(31, "<java>")
@@ -395,14 +395,17 @@ object Flags {
395395
/** A definition that's initialized before the super call (Scala 2.x only) */
396396
final val Scala2PreSuper = termFlag(58, "<presuper>")
397397

398+
/** A macro (Scala 2.x only) */
399+
final val Macro = commonFlag(59, "<macro>")
400+
398401
/** A method that is known to have inherited default parameters */
399-
final val InheritedDefaultParams = termFlag(59, "<inherited-default-param>")
402+
final val InheritedDefaultParams = termFlag(60, "<inherited-default-param>")
400403

401-
/** A method that is known to no default parameters */
402-
final val NoDefaultParams = termFlag(60, "<no-default-param>")
404+
/** A method that is known to have no default parameters */
405+
final val NoDefaultParams = termFlag(61, "<no-default-param>")
403406

404407
/** A denotation that is valid in all run-ids */
405-
final val Permanent = commonFlag(61, "<permanent>")
408+
final val Permanent = commonFlag(62, "<permanent>")
406409

407410
// --------- Combined Flag Sets and Conjunctions ----------------------
408411

0 commit comments

Comments
 (0)