io.joern.php2cpg.passes

Members list

Type members

Classlikes

class AnyTypePass(cpg: Cpg) extends ForkJoinParallelCpgPass[AstNode]

Attributes

Supertypes
class ForkJoinParallelCpgPass[AstNode]
trait CpgPassBase
class Object
trait Matchable
class Any
class AstCreationPass(config: Config, cpg: Cpg, parser: PhpParser, summary: Map[String, Seq[SymbolSummary]]) extends ForkJoinParallelCpgPass[Array[String]], AstParsingPass

Attributes

Supertypes
class ForkJoinParallelCpgPass[Array[String]]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
class AstParentInfoPass(cpg: Cpg) extends ForkJoinParallelCpgPass[AstNode]

Attributes

Supertypes
class ForkJoinParallelCpgPass[AstNode]
trait CpgPassBase
class Object
trait Matchable
class Any
trait AstParsingPass(config: Config, parser: PhpParser)

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
ForkJoinParallelCpgPass[BatchOfPhpScripts]
case class Autoload(psr-0: Map[String, PsrStringOrArray], psr-4: Map[String, PsrStringOrArray])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class ClosureRefPass(cpg: Cpg) extends ForkJoinParallelCpgPass[ClosureBinding]

Attributes

Supertypes
class ForkJoinParallelCpgPass[ClosureBinding]
trait CpgPassBase
class Object
trait Matchable
class Any
case class Composer(require: Map[String, String], autoload: Autoload)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class DependencyPass(cpg: Cpg, composerPaths: List[String]) extends ForkJoinParallelCpgPass[Path]

Parses the composer.json file for all require dependencies.

Parses the composer.json file for all require dependencies.

Attributes

Supertypes
class ForkJoinParallelCpgPass[Path]
trait CpgPassBase
class Object
trait Matchable
class Any
class DependencySymbolsPass(cpg: Cpg, dependencyDir: Path) extends ForkJoinParallelCpgPass[ClassParserClass]

This pass parses the high-level symbols of the dependencies to include their types to the CPG.

This pass parses the high-level symbols of the dependencies to include their types to the CPG.

Value parameters

cpg

the code property graph.

dependencyDir

the directory holding the downloaded dependencies.

Attributes

Supertypes
class ForkJoinParallelCpgPass[ClassParserClass]
trait CpgPassBase
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class LocalCreationPass[ScopeType <: AstNode](cpg: Cpg) extends ForkJoinParallelCpgPass[ScopeType], AstNodeBuilder[AstNode, LocalCreationPass[ScopeType]]

Attributes

Companion
object
Supertypes
trait AstNodeBuilder[AstNode, LocalCreationPass[ScopeType]]
class ForkJoinParallelCpgPass[ScopeType]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
Known subtypes
class MethodLocalPass(cpg: Cpg) extends LocalCreationPass[Method]

Attributes

Supertypes
class LocalCreationPass[Method]
trait AstNodeBuilder[AstNode, LocalCreationPass[Method]]
class ForkJoinParallelCpgPass[Method]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
class NamespaceLocalPass(cpg: Cpg) extends LocalCreationPass[NamespaceBlock]

Attributes

Supertypes
class LocalCreationPass[NamespaceBlock]
trait AstNodeBuilder[AstNode, LocalCreationPass[NamespaceBlock]]
class ForkJoinParallelCpgPass[NamespaceBlock]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
case class PsrArray(obj: Array[String]) extends PsrStringOrArray

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class PsrString(obj: String) extends PsrStringOrArray

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait PsrStringOrArray

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PsrArray
class PsrString

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
class SymbolSummaryPass(config: Config, cpg: Cpg, parser: PhpParser, captureSummary: Map[String, Seq[SymbolSummary]] => Unit) extends ForkJoinParallelCpgPass[BatchOfPhpScripts], AstParsingPass

Gathers all the symbols from namespaces, types, and methods one can import from each PHP script and namespace. Class constants cannot be imported directly, thus we do not handle them.

Gathers all the symbols from namespaces, types, and methods one can import from each PHP script and namespace. Class constants cannot be imported directly, thus we do not handle them.

Value parameters

captureSummary

when the pass has finished summarizing all files, this method captures the result. This is thread safe.

Attributes

Companion
object
Supertypes
class ForkJoinParallelCpgPass[BatchOfPhpScripts]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type