mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
This refactors SelfApplyExpr.getFunction() as MethodLookupExpr().getMethodRef(). This is simpler, because we are not hiding DeclRefExprs or reinventing hidden AST resolution.
15 lines
528 B
Plaintext
Generated
15 lines
528 B
Plaintext
Generated
// generated by codegen/codegen.py
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
from MethodLookupExpr x, string hasType, Expr getBase, string hasMember, Expr getMethodRef
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
(if x.hasType() then hasType = "yes" else hasType = "no") and
|
|
getBase = x.getBase() and
|
|
(if x.hasMember() then hasMember = "yes" else hasMember = "no") and
|
|
getMethodRef = x.getMethodRef()
|
|
select x, "hasType:", hasType, "getBase:", getBase, "hasMember:", hasMember, "getMethodRef:",
|
|
getMethodRef
|