From ae0b136c7393a75a88cfd679027ae72e81aac7fa Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 14 Aug 2013 00:21:39 +0100 Subject: [PATCH] Added helper properties to functions AST node to check the usage of the function. --- src/AST/Function.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AST/Function.cs b/src/AST/Function.cs index 1ee18ecb..9d7431c2 100644 --- a/src/AST/Function.cs +++ b/src/AST/Function.cs @@ -44,6 +44,10 @@ namespace CppSharp.AST public ParameterUsage Usage { 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 { get { return Kind != ParameterKind.Regular; }