diff --git a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs index 5c9e328e..45ab2364 100644 --- a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs +++ b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using CppSharp.AST; using CppSharp.Types; namespace CppSharp.Generators.CLI @@ -347,7 +348,7 @@ namespace CppSharp.Generators.CLI PushIndent(); foreach (var field in @class.Fields) { - if (CheckIgnoreField(@class, field)) continue; + if (Utils.CheckIgnoreField(@class, field)) continue; GenerateDeclarationCommon(field); if (@class.IsUnion) @@ -404,7 +405,7 @@ namespace CppSharp.Generators.CLI var staticMethods = new List(); foreach (var method in @class.Methods) { - if (CheckIgnoreMethod(@class, method)) + if (Utils.CheckIgnoreMethod(@class, method)) continue; if (method.IsConstructor) @@ -482,7 +483,7 @@ namespace CppSharp.Generators.CLI PushIndent(); foreach (var field in @class.Fields) { - if (CheckIgnoreField(@class, field)) + if (Utils.CheckIgnoreField(@class, field)) continue; GenerateDeclarationCommon(field); diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 1091e04e..8eb4043b 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; +using CppSharp.AST; namespace CppSharp.Generators.CSharp { @@ -350,7 +351,7 @@ namespace CppSharp.Generators.CSharp foreach (var method in @class.Methods) { - if (CheckIgnoreMethod(@class, method)) + if (Utils.CheckIgnoreMethod(@class, method)) continue; if (method.IsConstructor) @@ -408,7 +409,7 @@ namespace CppSharp.Generators.CSharp foreach (var field in @class.Fields) { - if (CheckIgnoreField(@class, field)) continue; + if (Utils.CheckIgnoreField(@class, field)) continue; var nativeField = string.Format("{0}->{1}", Helpers.GeneratedIdentifier("ptr"), field.OriginalName); @@ -558,7 +559,7 @@ namespace CppSharp.Generators.CSharp foreach (var field in @class.Fields) { - if (CheckIgnoreField(@class, field)) continue; + if (Utils.CheckIgnoreField(@class, field)) continue; NewLineIfNeeded(); @@ -755,7 +756,7 @@ namespace CppSharp.Generators.CSharp var staticMethods = new List(); foreach (var method in @class.Methods) { - if (CheckIgnoreMethod(@class, method)) + if (Utils.CheckIgnoreMethod(@class, method)) continue; if (method.IsConstructor) @@ -953,7 +954,7 @@ namespace CppSharp.Generators.CSharp foreach (var ctor in @class.Constructors) { - if (CheckIgnoreMethod(@class, ctor)) + if (Utils.CheckIgnoreMethod(@class, ctor)) continue; NewLineIfNeeded();