Browse Source

Added some helper methods in `Enumeration` to work with scoped enumerations.

pull/1170/head
Joao Matos 7 years ago committed by Dimitar Dobrev
parent
commit
2296f8b63c
  1. 8
      src/AST/Enumeration.cs

8
src/AST/Enumeration.cs

@ -72,11 +72,15 @@ namespace CppSharp.AST
return this; return this;
} }
public bool IsFlags public Enumeration SetScoped()
{ {
get { return Modifiers.HasFlag(EnumModifiers.Flags); } Modifiers |= EnumModifiers.Scoped;
return this;
} }
public bool IsFlags => Modifiers.HasFlag(EnumModifiers.Flags);
public bool IsScoped => Modifiers.HasFlag(EnumModifiers.Scoped);
public Type Type { get; set; } public Type Type { get; set; }
public BuiltinType BuiltinType { get; set; } public BuiltinType BuiltinType { get; set; }
public EnumModifiers Modifiers { get; set; } public EnumModifiers Modifiers { get; set; }

Loading…
Cancel
Save