|
|
|
@ -36,6 +36,12 @@ namespace CppSharp.AST
@@ -36,6 +36,12 @@ namespace CppSharp.AST
|
|
|
|
|
public abstract object Clone(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public enum TypeQualifiersMode : byte |
|
|
|
|
{ |
|
|
|
|
Default, |
|
|
|
|
Native |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents C++ type qualifiers.
|
|
|
|
|
/// </summary>
|
|
|
|
@ -44,10 +50,11 @@ namespace CppSharp.AST
@@ -44,10 +50,11 @@ namespace CppSharp.AST
|
|
|
|
|
public bool IsConst; |
|
|
|
|
public bool IsVolatile; |
|
|
|
|
public bool IsRestrict; |
|
|
|
|
public TypeQualifiersMode Mode; |
|
|
|
|
|
|
|
|
|
public override int GetHashCode() => |
|
|
|
|
IsConst.GetHashCode() ^ IsVolatile.GetHashCode() ^ |
|
|
|
|
IsRestrict.GetHashCode(); |
|
|
|
|
IsRestrict.GetHashCode() ^ Mode.GetHashCode(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -68,8 +75,8 @@ namespace CppSharp.AST
@@ -68,8 +75,8 @@ namespace CppSharp.AST
|
|
|
|
|
Qualifiers = qualifiers; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Type Type { get; set; } |
|
|
|
|
public TypeQualifiers Qualifiers { get; set; } |
|
|
|
|
public Type Type; |
|
|
|
|
public TypeQualifiers Qualifiers; |
|
|
|
|
|
|
|
|
|
public T Visit<T>(ITypeVisitor<T> visitor) |
|
|
|
|
{ |
|
|
|
|