mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
Python: ObjectAPI.qll: Adds getOrigin predicate
This commit is contained in:
@@ -44,6 +44,12 @@ class Value extends TObject {
|
||||
PointsToInternal::pointsTo(result, _, this, _)
|
||||
}
|
||||
|
||||
/** Gets the origin AST node for this value. */
|
||||
AstNode getOrigin() {
|
||||
result = this.(ObjectInternal).getOrigin().getNode()
|
||||
}
|
||||
|
||||
|
||||
/** Gets the class of this object.
|
||||
* Strictly, the `Value` representing the class of the objects
|
||||
* represented by this Value.
|
||||
|
||||
Reference in New Issue
Block a user