From 80444acb33dc990d887a03a89cf87607f3f68a0b Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 27 Mar 2018 22:08:55 +0200 Subject: [PATCH] More accurate description of FromStartFlags/AfterLoadFlags --- compiler/src/dotty/tools/dotc/core/Flags.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/Flags.scala b/compiler/src/dotty/tools/dotc/core/Flags.scala index 9f88fdbc0cf3..15c19b2d5fd9 100644 --- a/compiler/src/dotty/tools/dotc/core/Flags.scala +++ b/compiler/src/dotty/tools/dotc/core/Flags.scala @@ -454,7 +454,7 @@ object Flags { /** Flags representing access rights */ final val AccessFlags = Private | Protected | Local - /** Flags guaranteed to be set upon symbol creation */ + /** Flags that are not (re)set when completing the denotation */ final val FromStartFlags = Module | Package | Deferred | MethodOrHKCommon | Param | ParamAccessor.toCommonFlags | Scala2ExistentialCommon | Mutable.toCommonFlags | Touched | JavaStatic | @@ -462,9 +462,10 @@ object Flags { NonMember | Erroneous | ImplicitCommon | Permanent | Synthetic | SuperAccessorOrScala2x | Inline - /** Flags guaranteed to be set upon symbol creation, or, if symbol is a top-level - * class or object, when the class file defining the symbol is loaded (which - * is generally before the symbol is completed + /** Flags that are not (re)set when completing the denotation, or, if symbol is + * a top-level class or object, when completing the denotation once the class + * file defining the symbol is loaded (which is generally before the denotation + * is completed) */ final val AfterLoadFlags = FromStartFlags | AccessFlags | Final | AccessorOrSealed | LazyOrTrait | SelfNameOrImplClass