File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3075,6 +3075,7 @@ ContentApprox getContentApprox(Content c) {
3075
3075
* ensuring that they are visible to the taint tracking / data flow library.
3076
3076
*/
3077
3077
private module SyntheticFields {
3078
+ private import semmle.code.csharp.dataflow.internal.ExternalFlow
3078
3079
private import semmle.code.csharp.frameworks.system.threading.Tasks
3079
3080
private import semmle.code.csharp.frameworks.system.runtime.CompilerServices
3080
3081
}
Original file line number Diff line number Diff line change @@ -431,6 +431,17 @@ Declaration interpretElement(
431
431
)
432
432
}
433
433
434
+ private predicate parseSynthField ( AccessPathToken c , string name ) {
435
+ c .getName ( ) = "SyntheticField" and name = c .getAnArgument ( )
436
+ }
437
+
438
+ /**
439
+ * An adapter class for adding synthetic fields from MaD.
440
+ */
441
+ private class SyntheticFieldAdapter extends SyntheticField {
442
+ SyntheticFieldAdapter ( ) { parseSynthField ( _, this ) }
443
+ }
444
+
434
445
cached
435
446
private module Cached {
436
447
/**
You can’t perform that action at this time.
0 commit comments