Skip to content

Commit

Permalink
Have generated module interfaces inherit from "IDisposable" (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz authored Oct 11, 2024
1 parent 6ab9cd9 commit 4d35d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSnakes.SourceGeneration/PythonStaticGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void Dispose()
{{methods.Select(m => m.Syntax).Compile()}}
}
}
public interface I{{pascalFileName}}
public interface I{{pascalFileName}} : IDisposable
{
{{string.Join(Environment.NewLine, methods.Select(m => m.Syntax).Select(m => $"{m.ReturnType.NormalizeWhitespace()} {m.Identifier.Text}{m.ParameterList.NormalizeWhitespace()};"))}}
}
Expand Down

0 comments on commit 4d35d8e

Please sign in to comment.