|
|
|
@ -417,8 +417,8 @@ namespace CppSharp.Generators.CSharp |
|
|
|
|
|
|
|
|
|
|
|
GenerateDeclContext(@class); |
|
|
|
GenerateDeclContext(@class); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var method in @class.Methods.Where(m => !ASTUtils.CheckIgnoreMethod(m) && |
|
|
|
foreach (var method in @class.Methods.Where(m => |
|
|
|
m.Access == AccessSpecifier.Public)) |
|
|
|
!ASTUtils.CheckIgnoreMethod(m, Options) && m.Access == AccessSpecifier.Public)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
PushBlock(CSharpBlockKind.Method); |
|
|
|
PushBlock(CSharpBlockKind.Method); |
|
|
|
GenerateDeclarationCommon(method); |
|
|
|
GenerateDeclarationCommon(method); |
|
|
|
@ -490,7 +490,7 @@ namespace CppSharp.Generators.CSharp |
|
|
|
PopBlock(NewLineKind.BeforeNextBlock); |
|
|
|
PopBlock(NewLineKind.BeforeNextBlock); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static ISet<Function> GatherClassInternalFunctions(Class @class) |
|
|
|
private ISet<Function> GatherClassInternalFunctions(Class @class) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var functions = new HashSet<Function>(); |
|
|
|
var functions = new HashSet<Function>(); |
|
|
|
|
|
|
|
|
|
|
|
@ -522,7 +522,7 @@ namespace CppSharp.Generators.CSharp |
|
|
|
|
|
|
|
|
|
|
|
foreach (var method in @class.Methods) |
|
|
|
foreach (var method in @class.Methods) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ASTUtils.CheckIgnoreMethod(method)) |
|
|
|
if (ASTUtils.CheckIgnoreMethod(method, Options)) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
if (method.IsConstructor) |
|
|
|
if (method.IsConstructor) |
|
|
|
@ -1142,8 +1142,8 @@ namespace CppSharp.Generators.CSharp |
|
|
|
{ |
|
|
|
{ |
|
|
|
var staticMethods = new List<Method>(); |
|
|
|
var staticMethods = new List<Method>(); |
|
|
|
foreach (var method in @class.Methods) |
|
|
|
foreach (var method in @class.Methods) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ASTUtils.CheckIgnoreMethod(method)) |
|
|
|
if (ASTUtils.CheckIgnoreMethod(method, Options)) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
if (method.IsConstructor) |
|
|
|
if (method.IsConstructor) |
|
|
|
@ -1793,8 +1793,8 @@ namespace CppSharp.Generators.CSharp |
|
|
|
GenerateNativeConstructor(@class); |
|
|
|
GenerateNativeConstructor(@class); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var ctor in @class.Constructors) |
|
|
|
foreach (var ctor in @class.Constructors) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ASTUtils.CheckIgnoreMethod(ctor)) |
|
|
|
if (ASTUtils.CheckIgnoreMethod(ctor, Options)) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
GenerateMethod(ctor, @class); |
|
|
|
GenerateMethod(ctor, @class); |
|
|
|
|