Merge pull request #6913 from tamasvajk/feature/improve-stubbing

C#: Remove cartesian product in stubbing (GeneratedType::getStub)
This commit is contained in:
Tamás Vajk
2021-10-19 15:13:26 +02:00
committed by GitHub

View File

@@ -128,6 +128,7 @@ abstract private class GeneratedType extends Type, GeneratedElement {
/** Gets the entire C# stub code for this type. */
pragma[nomagic]
final string getStub(Assembly assembly) {
this.isInAssembly(assembly) and
if this.isDuplicate(assembly)
then
result =