File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/Generator/Generators/Registrable/Lua/Sol Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -261,9 +261,6 @@ public virtual void GenerateNamespace(Namespace @namespace)
261
261
262
262
public virtual bool CanGenerateNamespace ( Namespace @namespace )
263
263
{
264
- // if not self:isNonTemplateAllowed(context) then
265
- // return true
266
- // end
267
264
if ( AlreadyVisited ( @namespace ) )
268
265
{
269
266
return false ;
@@ -272,6 +269,10 @@ public virtual bool CanGenerateNamespace(Namespace @namespace)
272
269
{
273
270
return false ;
274
271
}
272
+ else if ( ! NonTemplateAllowed )
273
+ {
274
+ return false ;
275
+ }
275
276
return @namespace . IsGenerated ;
276
277
}
277
278
@@ -466,9 +467,6 @@ public virtual void GenerateEnumDecl(Enumeration enumeration)
466
467
467
468
public virtual bool CanGenerateEnumDecl ( Enumeration enumeration )
468
469
{
469
- // if not self:isNonTemplateAllowed(context) then
470
- // return true
471
- // end
472
470
if ( AlreadyVisited ( enumeration ) )
473
471
{
474
472
return false ;
@@ -477,6 +475,10 @@ public virtual bool CanGenerateEnumDecl(Enumeration enumeration)
477
475
{
478
476
return false ;
479
477
}
478
+ else if ( ! NonTemplateAllowed )
479
+ {
480
+ return false ;
481
+ }
480
482
return enumeration . IsGenerated ;
481
483
}
482
484
You can’t perform that action at this time.
0 commit comments