Skip to content

Commit 657f894

Browse files
committed
Added CCodeGenerator.GenerateClassBody extension point.
1 parent 26a5525 commit 657f894

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Generator/Generators/C/CCodeGenerator.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public override bool VisitClassDecl(Class @class)
234234
NewLine();
235235
WriteOpenBraceAndIndent();
236236

237-
VisitDeclContext(@class);
237+
GenerateClassBody(@class);
238238

239239
Unindent();
240240
WriteLine("};");
@@ -244,6 +244,11 @@ public override bool VisitClassDecl(Class @class)
244244
return true;
245245
}
246246

247+
public virtual bool GenerateClassBody(Class @class)
248+
{
249+
return VisitDeclContext(@class);
250+
}
251+
247252
public override bool VisitTypedefNameDecl(TypedefNameDecl typedef)
248253
{
249254
return true;

0 commit comments

Comments
 (0)