mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
992 B
36 lines
992 B
namespace CppSharp.AST |
|
{ |
|
/// <summary> |
|
/// Base class for declarations which introduce a typedef-name. |
|
/// </summary> |
|
public abstract class TypedefNameDecl : Declaration, ITypedDecl |
|
{ |
|
public Type Type { get { return QualifiedType.Type; } } |
|
public QualifiedType QualifiedType { get; set; } |
|
public bool IsSynthetized { get; set; } |
|
} |
|
|
|
/// <summary> |
|
/// Represents a type definition in C++. |
|
/// </summary> |
|
public class TypedefDecl : TypedefNameDecl |
|
{ |
|
public override T Visit<T>(IDeclVisitor<T> visitor) |
|
{ |
|
return visitor.VisitTypedefDecl(this); |
|
} |
|
} |
|
|
|
/// <summary> |
|
/// Represents a type alias in C++. |
|
/// </summary> |
|
public class TypeAlias : TypedefNameDecl |
|
{ |
|
public TypeAliasTemplate DescribedAliasTemplate { get; set; } |
|
|
|
public override T Visit<T>(IDeclVisitor<T> visitor) |
|
{ |
|
return visitor.VisitTypeAliasDecl(this); |
|
} |
|
} |
|
} |