Skip to content

Commit 19cc356

Browse files
committed
Convert typedef handling in C# generator to visitor model
1 parent 4fdee9a commit 19cc356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/Generators/CSharp/CSharpSources.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public override bool VisitDeclContext(DeclarationContext context)
223223
@enum.Visit(this);
224224

225225
foreach (var typedef in context.Typedefs)
226-
GenerateTypedef(typedef);
226+
typedef.Visit(this);
227227

228228
foreach (var @class in context.Classes)
229229
@class.Visit(this);
@@ -2999,7 +2999,7 @@ select string.Format("{0}{1} {2}", GetParameterUsage(param.Usage),
29992999

30003000
#endregion
30013001

3002-
public bool GenerateTypedef(TypedefNameDecl typedef)
3002+
public override bool VisitTypedefDecl(TypedefDecl typedef)
30033003
{
30043004
if (!typedef.IsGenerated)
30053005
return false;

0 commit comments

Comments
 (0)