Browse Source

Added final AST support for methods and classes.

Conversion of Clang C++ AST state and update of C# generator to come at a later date.
pull/787/head
Joao Matos 9 years ago
parent
commit
df9666d6c4
  1. 4
      src/AST/Class.cs
  2. 5
      src/AST/Method.cs

4
src/AST/Class.cs

@ -93,6 +93,9 @@ namespace CppSharp.AST @@ -93,6 +93,9 @@ namespace CppSharp.AST
// True if the type is to be treated as a union.
public bool IsUnion;
// True if the class is final / sealed.
public bool IsFinal { get; set; }
// True if the type is to be treated as opaque.
public bool IsOpaque;
@ -123,6 +126,7 @@ namespace CppSharp.AST @@ -123,6 +126,7 @@ namespace CppSharp.AST
Specifiers = new List<AccessSpecifierDecl>();
IsAbstract = false;
IsUnion = false;
IsFinal = false;
IsOpaque = false;
IsPOD = false;
Type = ClassType.RefType;

5
src/AST/Method.cs

@ -93,6 +93,7 @@ namespace CppSharp.AST @@ -93,6 +93,7 @@ namespace CppSharp.AST
IsVirtual = method.IsVirtual;
IsConst = method.IsConst;
IsOverride = method.IsOverride;
IsFinal = method.IsFinal;
IsProxy = method.IsProxy;
IsStatic = method.IsStatic;
Kind = method.Kind;
@ -115,6 +116,10 @@ namespace CppSharp.AST @@ -115,6 +116,10 @@ namespace CppSharp.AST
public bool IsConst { get; set; }
public bool IsExplicit { get; set; }
public bool IsOverride { get; set; }
// True if the method is final / sealed.
public bool IsFinal { get; set; }
public bool IsProxy { get; set; }
public RefQualifier RefQualifier { get; set; }

Loading…
Cancel
Save