Browse Source

Added Field to Property Declaration so now we can generate the property from a field instead of get or set methods.

pull/16/head
marcos henrich 13 years ago
parent
commit
c02b7bf3a8
  1. 20
      src/AST/Property.cs

20
src/AST/Property.cs

@ -5,11 +5,6 @@ namespace CppSharp.AST
/// </summary> /// </summary>
public class Property : Declaration, ITypedDecl public class Property : Declaration, ITypedDecl
{ {
public Property()
{
}
public Type Type public Type Type
{ {
get { return QualifiedType.Type; } get { return QualifiedType.Type; }
@ -17,17 +12,12 @@ namespace CppSharp.AST
public QualifiedType QualifiedType { get; set; } public QualifiedType QualifiedType { get; set; }
public Method GetMethod public Method GetMethod { get; set; }
{
get;
set;
}
public Method SetMethod public Method SetMethod { get; set; }
{
get; // The field that should be get and set by this property
set; public Field Field { get; set; }
}
public override T Visit<T>(IDeclVisitor<T> visitor) public override T Visit<T>(IDeclVisitor<T> visitor)
{ {

Loading…
Cancel
Save