Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Node,CallGraph.Callsite> |
CallGraph.callsitesByNode
Maps an AST node (with type Token.CALL or Token.NEW) to a Callsite object.
|
private java.util.Collection<CallGraph.Callsite> |
CallGraph.Function.callsitesInFunction |
private java.util.Collection<CallGraph.Callsite> |
CallGraph.Function.callsitesPossiblyTargetingFunction |
Modifier and Type | Method and Description |
---|---|
private CallGraph.Callsite |
CallGraph.createCallsite(Node callsiteNode) |
CallGraph.Callsite |
CallGraph.getCallsiteForAstNode(Node callsiteNode)
Returns the call graph Callsite object corresponding to the provided
AST Token.CALL or Token.NEW node, or null if no such object exists.
|
Modifier and Type | Method and Description |
---|---|
private DiGraph<CallGraph.Function,CallGraph.Callsite> |
CallGraph.constructDirectedGraph(boolean forward)
Constructs a digraph of the call graph.
|
java.util.Collection<CallGraph.Callsite> |
CallGraph.getAllCallsites()
Returns a collection of all callsites in the call graph.
|
DiGraph<CallGraph.Function,CallGraph.Callsite> |
CallGraph.getBackwardDirectedGraph()
Constructs and returns a directed graph where the nodes are functions and
the edges are callsites connecting callees to callers.
|
java.util.Collection<CallGraph.Callsite> |
CallGraph.Function.getCallsitesInFunction()
Returns the callsites in this function.
|
java.util.Collection<CallGraph.Callsite> |
CallGraph.Function.getCallsitesPossiblyTargetingFunction()
Returns a collection of callsites that might call this function.
|
DiGraph<CallGraph.Function,CallGraph.Callsite> |
CallGraph.getForwardDirectedGraph()
Constructs and returns a directed graph where the nodes are functions and
the edges are callsites connecting callers to callees.
|
Modifier and Type | Method and Description |
---|---|
private void |
CallGraph.Function.addCallsiteInFunction(CallGraph.Callsite callsite) |
private void |
CallGraph.Function.addCallsitePossiblyTargetingFunction(CallGraph.Callsite callsite) |
private void |
CallGraph.connectCallsiteToTargets(CallGraph.Callsite callsite,
DefinitionProvider definitionProvider)
Maps a Callsite to the Function(s) it could call
and each Function to the Callsite(s) that could call it.
|
private static void |
CallGraph.digraphConnect(DiGraph<CallGraph.Function,CallGraph.Callsite> digraph,
CallGraph.Function caller,
CallGraph.Callsite callsite,
CallGraph.Function callee,
boolean forward) |
Modifier and Type | Method and Description |
---|---|
private static void |
CallGraph.digraphConnect(DiGraph<CallGraph.Function,CallGraph.Callsite> digraph,
CallGraph.Function caller,
CallGraph.Callsite callsite,
CallGraph.Function callee,
boolean forward) |