mirror of
https://github.com/github/codeql.git
synced 2026-01-06 19:20:25 +01:00
9 lines
210 B
Plaintext
9 lines
210 B
Plaintext
import javascript
|
|
|
|
query string getAccessModifier(DataFlow::PropRef ref, Expr prop) {
|
|
prop = ref.getPropertyNameExpr() and
|
|
if ref.isPrivateField() then
|
|
result = "Private"
|
|
else
|
|
result = "Public"
|
|
} |