]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
parser: Use [Flags] for ModifierFlags
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 7 May 2020 18:58:36 +0000 (20:58 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 8 May 2020 11:19:48 +0000 (13:19 +0200)
vala/valaparser.vala

index 26595b3ac063eaf9240c66de768f6b98317c49d2..9f0b976fc46744219ed661c78eec4e447e6d4e3b 100644 (file)
@@ -49,18 +49,19 @@ public class Vala.Parser : CodeVisitor {
                public SourceLocation end;
        }
 
+       [Flags]
        enum ModifierFlags {
-               NONE,
-               ABSTRACT = 1 << 0,
-               CLASS = 1 << 1,
-               EXTERN = 1 << 2,
-               INLINE = 1 << 3,
-               NEW = 1 << 4,
-               OVERRIDE = 1 << 5,
-               STATIC = 1 << 6,
-               VIRTUAL = 1 << 7,
-               ASYNC = 1 << 8,
-               SEALED = 1 << 9
+               NONE = 0,
+               ABSTRACT,
+               CLASS,
+               EXTERN,
+               INLINE,
+               NEW,
+               OVERRIDE,
+               STATIC,
+               VIRTUAL,
+               ASYNC,
+               SEALED
        }
 
        public Parser () {