Merge pull request #6536 from github/igfoo/getPrimaryQlClasses

All languages: Add getPrimaryQlClasses()
This commit is contained in:
Ian Lynagh
2021-08-23 19:49:37 +01:00
committed by GitHub
13 changed files with 34 additions and 6 deletions

View File

@@ -58,6 +58,11 @@ class ElementBase extends @element {
/** DEPRECATED: use `getAPrimaryQlClass` instead. */
deprecated string getCanonicalQLClass() { result = this.getAPrimaryQlClass() }
/**
* Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.
*/
final string getPrimaryQlClasses() { result = concat(getAPrimaryQlClass(), ",") }
/**
* Gets the name of a primary CodeQL class to which this element belongs.
*