Browse Source

Added helper properties to functions AST node to check the usage of the function.

pull/28/head
triton 12 years ago
parent
commit
ae0b136c73
  1. 4
      src/AST/Function.cs

4
src/AST/Function.cs

@ -44,6 +44,10 @@ namespace CppSharp.AST
public ParameterUsage Usage { get; set; } public ParameterUsage Usage { get; set; }
public bool HasDefaultValue { get; set; } public bool HasDefaultValue { get; set; }
public bool IsIn { get { return Usage == ParameterUsage.In; } }
public bool IsOut { get { return Usage == ParameterUsage.Out; } }
public bool IsInOut { get { return Usage == ParameterUsage.InOut; } }
public bool IsSynthetized public bool IsSynthetized
{ {
get { return Kind != ParameterKind.Regular; } get { return Kind != ParameterKind.Regular; }

Loading…
Cancel
Save