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

Member predicate Generated::TypeExpr::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()