Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 183dd68

Browse files
committed
add qldoc to isPrivateField
1 parent 8fc273b commit 183dd68

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,9 @@ module DataFlow {
536536
pragma[noinline]
537537
predicate accesses(Node base, string p) { getBase() = base and getPropertyName() = p }
538538

539+
/**
540+
* Holds if this data flow node reads or writes a private field in a class.
541+
*/
539542
predicate isPrivateField() {
540543
getPropertyName().charAt(0) = "#" and getPropertyNameExpr() instanceof Label
541544
}

0 commit comments

Comments
 (0)