C#: Add initial implementation of specific predicates needed to capture summary models.

This commit is contained in:
Michael Nebel
2022-03-04 09:18:24 +01:00
parent 82d93d0f9e
commit e5cce6cca3

View File

@@ -0,0 +1,11 @@
import csharp
import semmle.code.csharp.dataflow.TaintTracking
import semmle.code.csharp.dataflow.internal.DataFlowImplCommon
import semmle.code.csharp.dataflow.internal.DataFlowPrivate
import ModelGeneratorUtils
predicate isOwnInstanceAccess(ReturnStmt rtn) { rtn.getExpr() instanceof ThisAccess }
predicate isOwnInstanceAccessNode(ReturnNode node) { node.asExpr() instanceof ThisAccess }
string qualifierString() { result = "Argument[Qualifier]" }