scripts.general.list-funcs.sc Maven / Gradle / Ivy
/* list-funcs.scala
This script simply returns a list of the names as String of all methods contained in the currently loaded CPG.
Input: A valid CPG
Output: scala.List[String]
Running the Script
------------------
see: README.md
Sample Output
-------------
List(".indirectMemberAccess", ".assignment", "free_list", "free", ".notEquals")
*/
@main def main(): List[String] = {
cpg.method.name.l
}