From bfcc92dfb10aa889675b53c55c03ac42c630cfe5 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Mon, 23 Sep 2013 13:09:30 +0300 Subject: [PATCH] Included properties in the renaming pass. Signed-off-by: Dimitar Dobrev --- src/Generator/Passes/RenamePass.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Generator/Passes/RenamePass.cs b/src/Generator/Passes/RenamePass.cs index 70953f0e..aa7a6b4b 100644 --- a/src/Generator/Passes/RenamePass.cs +++ b/src/Generator/Passes/RenamePass.cs @@ -82,6 +82,14 @@ namespace CppSharp.Passes return base.VisitFieldDecl(field); } + public override bool VisitProperty(Property property) + { + if (!Targets.HasFlag(RenameTargets.Property)) + return false; + + return base.VisitProperty(property); + } + public override bool VisitMethodDecl(Method method) { if (!Targets.HasFlag(RenameTargets.Method)) @@ -129,7 +137,8 @@ namespace CppSharp.Passes Enum = 1 << 5, EnumItem = 1 << 6, Event = 1 << 7, - Any = Function | Method | Parameter | Class | Field | Enum | EnumItem | Event, + Property = 1 << 8, + Any = Function | Method | Parameter | Class | Field | Enum | EnumItem | Event | Property, } ///