io.joern.swiftsrc2cpg.passes

Members list

Type members

Classlikes

class AstCreationPass(cpg: Cpg, astGenRunnerResult: AstGenRunnerResult, config: Config, report: Report)(implicit withSchemaValidation: ValidationMode) extends ConcurrentWriterCpgPass[String]

Attributes

Supertypes
class ConcurrentWriterCpgPass[String]
class NewStyleCpgPassBase[String]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
class BuiltinTypesPass(cpg: Cpg) extends CpgPass

Attributes

Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
class ConstClosurePass(cpg: Cpg) extends CpgPass

A pass that identifies assignments of closures to constants and updates METHOD nodes accordingly.

A pass that identifies assignments of closures to constants and updates METHOD nodes accordingly.

Attributes

Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
object Defines

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Defines.type
class DependenciesPass(cpg: Cpg) extends CpgPass

Creation of DEPENDENCY nodes from "Package.swift" files.

Creation of DEPENDENCY nodes from "Package.swift" files.

Attributes

Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class ImportsPass(cpg: Cpg) extends XImportsPass

This pass creates IMPORT nodes by looking for calls to require. IMPORT nodes are linked to existing dependency nodes, or, if no suitable dependency node exists, a dependency node is created.

This pass creates IMPORT nodes by looking for calls to require. IMPORT nodes are linked to existing dependency nodes, or, if no suitable dependency node exists, a dependency node is created.

TODO with this, we can have multiple IMPORT nodes that point to the same call: one created during AST creation, and one using this pass.

TODO Dependency node creation is still missing.

Attributes

Supertypes
class XImportsPass
class ConcurrentWriterCpgPass[(Call, Assignment)]
class NewStyleCpgPassBase[(Call, Assignment)]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
class SwiftInheritanceNamePass(cpg: Cpg) extends XInheritanceFullNamePass

Using some basic heuristics, will try to resolve type full names from types found within the CPG. Requires ImportPass as a pre-requisite.

Using some basic heuristics, will try to resolve type full names from types found within the CPG. Requires ImportPass as a pre-requisite.

Attributes

Supertypes
class XInheritanceFullNamePass
class ForkJoinParallelCpgPass[TypeDecl]
class NewStyleCpgPassBase[TypeDecl]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
class SwiftMetaDataPass(cpg: Cpg, hash: String, inputPath: String) extends CpgPass

Attributes

Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all
class SwiftTypeHintCallLinker(cpg: Cpg) extends XTypeHintCallLinker

Attributes

Supertypes
class XTypeHintCallLinker
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class SwiftTypeRecoveryPassGenerator(cpg: Cpg, config: XTypeRecoveryConfig) extends XTypeRecoveryPassGenerator[File]

Attributes

Supertypes
class XTypeRecoveryPassGenerator[File]
class Object
trait Matchable
class Any