mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
add qldoc to isPrivateField
This commit is contained in:
@@ -536,6 +536,9 @@ module DataFlow {
|
||||
pragma[noinline]
|
||||
predicate accesses(Node base, string p) { getBase() = base and getPropertyName() = p }
|
||||
|
||||
/**
|
||||
* Holds if this data flow node reads or writes a private field in a class.
|
||||
*/
|
||||
predicate isPrivateField() {
|
||||
getPropertyName().charAt(0) = "#" and getPropertyNameExpr() instanceof Label
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user