CodeQL library for Swift
codeql/swift-all 4.1.0 (changelog, source)
Search

Member predicate Generated::NamedFunction::getAPrimaryQlClass

Gets the name of a primary CodeQL class to which this element belongs.

This is the most precise syntactic category to which they belong; for example, CallExpr is a primary class, but ApplyExpr is not.

There might be some corner cases when this returns multiple classes, or none.

string getAPrimaryQlClass()