From a24bc6c805e6b42c3c400126b2e1fbed54b55a01 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sat, 9 Nov 2013 01:06:42 +0200 Subject: [PATCH 1/2] Removed comments from internal functions. Changed their access from public to internal. Signed-off-by: Dimitar Dobrev --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index a573fdfc..1fdd75c1 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -2339,7 +2339,6 @@ namespace CppSharp.Generators.CSharp function = function.OriginalFunction; PushBlock(CSharpBlockKind.InternalsClassMethod); - GenerateDeclarationCommon(function); WriteLine("[SuppressUnmanagedCodeSecurity]"); string libName = Options.SharedLibraryName; @@ -2409,7 +2408,7 @@ namespace CppSharp.Generators.CSharp @params.Add("int " + GeneratedIdentifier("forBases")); } - WriteLine("public static extern {0} {1}({2});", retType, + WriteLine("internal static extern {0} {1}({2});", retType, GetFunctionNativeIdentifier(function), string.Join(", ", @params)); PopBlock(NewLineKind.BeforeNextBlock); From c5865293988674420aee41cf571b9b57f59d4b02 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sun, 10 Nov 2013 01:41:18 +0200 Subject: [PATCH 2/2] Added a property to the event to contain the declaration it wraps. Signed-off-by: Dimitar Dobrev --- src/AST/Event.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AST/Event.cs b/src/AST/Event.cs index a9d69d90..59e2ee55 100644 --- a/src/AST/Event.cs +++ b/src/AST/Event.cs @@ -18,5 +18,7 @@ namespace CppSharp.AST public QualifiedType QualifiedType { get; set; } public List Parameters; + + public Declaration OriginalDeclaration { get; set; } } }