PythonModuleDefinedCallLinker
Attempts to set the methodFullName
and dispatchType
properties of calls where the callees
are defined under a module.
- Value parameters:
- cpg
the target code property graph.
Type members
Classlikes
Defines how a procedure is available to be called in the current scope.
Defines how a procedure is available to be called in the current scope.
- Value parameters:
- callingName
how this procedure is to be called, i.e., alias name, name with path, etc.
- fullNameAsPyFile
the full name to where this method is defined where it's assumed to be defined under a named Python file.
Inherited types
Value members
Concrete methods
Returns all method declarations within this module that are not defined under a class definition.
Returns all method declarations within this module that are not defined under a class definition.
TODO: Some classes may annotate their methods as static
- Value parameters:
- module
the module to search within.
- Returns:
a mapping of the method names and their procedures.
Parses all imports and identifies their full names and how they are to be called in this scope.
Parses all imports and identifies their full names and how they are to be called in this scope.
- Value parameters:
- i
the import call.
- Returns:
the procedure information in this scope.
Inherited methods
- Definition Classes
- ForkJoinParallelCpgPass -> CpgPassBase
- Inherited from:
- ForkJoinParallelCpgPass
Name of the pass. By default it is inferred from the name of the class, override if needed.
Name of the pass. By default it is inferred from the name of the class, override if needed.
- Inherited from:
- CpgPassBase
Wraps runWithBuilder with logging, and swallows raised exceptions. Use with caution -- API is unstable. A return value of -1 indicates failure, otherwise the return value of runWithBuilder is passed through.
Wraps runWithBuilder with logging, and swallows raised exceptions. Use with caution -- API is unstable. A return value of -1 indicates failure, otherwise the return value of runWithBuilder is passed through.
- Inherited from:
- CpgPassBase