All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.general.list-funcs.sc Maven / Gradle / Ivy

The newest version!
/* 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy