File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Generator/Generators/CSharp Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ public virtual void GenerateNamespaceFunctionsAndVariables(DeclarationContext co
244244 return ;
245245
246246 PushBlock ( BlockKind . Functions ) ;
247- var parentName = context . TranslationUnit . FileNameWithoutExtension ;
247+ var parentName = SafeIdentifier ( context . TranslationUnit . FileNameWithoutExtension ) ;
248248
249249 var keyword = "class" ;
250250 var classes = EnumerateClasses ( ) . ToList ( ) ;
@@ -740,10 +740,9 @@ public override void GenerateClassSpecifier(Class @class)
740740 }
741741 }
742742
743- if ( @class . IsGenerated && isBindingGen )
743+ if ( @class . IsGenerated && isBindingGen && @class . IsRefType && ! @class . IsOpaque )
744744 {
745- if ( @class . IsRefType && ! @class . IsOpaque )
746- bases . Add ( "IDisposable" ) ;
745+ bases . Add ( "IDisposable" ) ;
747746 }
748747
749748 if ( bases . Count > 0 && ! @class . IsStatic )
Original file line number Diff line number Diff line change 1+ void Func ();
You can’t perform that action at this time.
0 commit comments