Browse Source

Added helper property to represent if a property is an indexer.

pull/219/merge
triton 11 years ago
parent
commit
547ffc440a
  1. 9
      src/AST/Property.cs

9
src/AST/Property.cs

@ -100,6 +100,15 @@ namespace CppSharp.AST @@ -100,6 +100,15 @@ namespace CppSharp.AST
get { return parameters; }
}
public bool IsIndexer
{
get
{
return GetMethod != null &&
GetMethod.OperatorKind == CXXOperatorKind.Subscript;
}
}
public override T Visit<T>(IDeclVisitor<T> visitor)
{
return visitor.VisitProperty(this);

Loading…
Cancel
Save