Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eabf6b0

Browse files
committed
Only stub effectively public declarations
1 parent 66eca53 commit eabf6b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

csharp/ql/src/Stubs/MinimalStubsFromSource.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class UsedInSource extends GeneratedDeclaration {
2525
or
2626
this = any(Attribute a).getType().getAConstructor()
2727
) and
28-
this.fromLibrary()
28+
this.fromLibrary() and
29+
this.(Modifiable).isEffectivelyPublic()
2930
}
3031
}
3132

0 commit comments

Comments
 (0)