Skip to main content

module lang::php::analysis::callgraph::SimpleCG

rascal-0.43.0
org.rascalmpl.php-analysis-0.3.6

Usage​

import lang::php::analysis::callgraph::SimpleCG;

Dependencies​

import lang::php::ast::AbstractSyntax;
import lang::php::analysis::signatures::Summaries;
import lang::php::analysis::signatures::Signatures;
import lang::php::ast::System;

data CallTarget​

data CallTarget  
= functionTarget(str functionName, loc definedAt)
| methodTarget(str className, str methodName, loc definedAt)
| unknownTarget(str functionOrMethodName)
;

alias CallGraph​

rel[loc callSource, CallTarget callTarget]

alias InvertedCallGraph​

rel[CallTarget callTarget, loc callSource]

function computeSystemCallGraph​

CallGraph computeSystemCallGraph(System s)

function computeScriptCallGraph​

CallGraph computeScriptCallGraph(Script s, map[str functionName, set[CallTarget] callTargets] functionTargetsMap, map[str methodName, set[CallTarget] callTargets] methodTargetsMap)