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

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