Re-factor TestOutput into a param module.

This commit is contained in:
Michael Nebel
2024-03-19 11:37:53 +01:00
parent 90db9b330f
commit 5b37ee4ec7
5 changed files with 80 additions and 41 deletions

View File

@@ -1,13 +1,14 @@
import semmle.code.csharp.dataflow.internal.FlowSummaryImpl::Private
import semmle.code.csharp.dataflow.internal.FlowSummaryImpl::Public
import semmle.code.csharp.dataflow.internal.FlowSummaryImpl::Private::TestOutput
private import semmle.code.csharp.dataflow.internal.ExternalFlow
abstract class IncludeSummarizedCallable extends RelevantSummarizedCallable {
class IncludeSummarizedCallable instanceof SummarizedCallableImpl {
IncludeSummarizedCallable() {
[this.(Modifiable), this.(Accessor).getDeclaration()].isEffectivelyPublic()
}
/** Gets a string representing the callable in semi-colon separated format for use in flow summaries. */
final override string getCallableCsv() { result = asPartialModel(this) }
final string getCallableCsv() { result = asPartialModel(this) }
string toString() { result = super.toString() }
}