Skip to content

Commit e24b15b

Browse files
committed
C#: Only create flow summaries for declarations that are effectively public
1 parent 9239d40 commit e24b15b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

csharp/ql/test/shared/FlowSummaries.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import semmle.code.csharp.dataflow.FlowSummary
22
import semmle.code.csharp.dataflow.internal.FlowSummaryImpl::Private::TestOutput
33

44
abstract class IncludeSummarizedCallable extends RelevantSummarizedCallable {
5+
IncludeSummarizedCallable() {
6+
[this.(Modifiable), this.(Accessor).getDeclaration()].isEffectivelyPublic()
7+
}
8+
59
/** Gets the qualified parameter types of this callable as a comma-separated string. */
610
private string parameterQualifiedTypeNamesToString() {
711
result =

0 commit comments

Comments
 (0)