Skip to content

Commit 5acfc22

Browse files
committed
C#: Bi-directional import of synthetic field declarations.
1 parent afb604e commit 5acfc22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,6 +2212,15 @@ predicate allowParameterReturnInSelf(ParameterNode p) {
22122212
FlowSummaryImpl::Private::summaryAllowParameterReturnInSelf(p)
22132213
}
22142214

2215+
/**
2216+
* A module importing the modules that provide synthetic field declarations,
2217+
* ensuring that they are visible to the taint tracking / data flow library.
2218+
*/
2219+
private module SyntheticFields {
2220+
private import semmle.code.csharp.frameworks.system.threading.Tasks
2221+
private import semmle.code.csharp.frameworks.system.runtime.CompilerServices
2222+
}
2223+
22152224
/** A synthetic field. */
22162225
abstract class SyntheticField extends string {
22172226
bindingset[this]

0 commit comments

Comments
 (0)