Skip to content

Commit 12d7f0c

Browse files
authored
Merge pull request github#6913 from tamasvajk/feature/improve-stubbing
C#: Remove cartesian product in stubbing (GeneratedType::getStub)
2 parents 662852b + c7c3540 commit 12d7f0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/src/Stubs/Stubs.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ abstract private class GeneratedType extends Type, GeneratedElement {
128128
/** Gets the entire C# stub code for this type. */
129129
pragma[nomagic]
130130
final string getStub(Assembly assembly) {
131+
this.isInAssembly(assembly) and
131132
if this.isDuplicate(assembly)
132133
then
133134
result =

0 commit comments

Comments
 (0)