From 17506c57d1575df3800066c798afb3b85fe0720e Mon Sep 17 00:00:00 2001 From: Tom Spilman Date: Fri, 8 Aug 2014 17:51:38 -0500 Subject: [PATCH] Added Declaration.IsExplicitlyGenerated. --- src/AST/Declaration.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/AST/Declaration.cs b/src/AST/Declaration.cs index af63c65d..fdb37cf8 100644 --- a/src/AST/Declaration.cs +++ b/src/AST/Declaration.cs @@ -215,6 +215,18 @@ namespace CppSharp.AST } } + /// + /// Whether the declaration was explicitly set to be generated via + /// the GenerationKind propery as opposed to its default generated state. + /// + public virtual bool IsExplicitlyGenerated + { + get + { + return generationKind.HasValue && generationKind.Value == GenerationKind.Generate; + } + } + /// /// Whether the declaration internal bindings should be generated. ///