Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Method and Description |
---|---|
CallGraph.Function |
CallGraph.Callsite.getContainingFunction() |
CallGraph.Function |
CallGraph.getFunctionForAstNode(Node functionNode)
Returns the call graph Function object corresponding to the provided
AST Token.FUNCTION node, or null if no such object exists.
|
CallGraph.Function |
CallGraph.getMainFunction()
Returns a Function object representing the "main" global function.
|
CallGraph.Function |
CallGraph.getUniqueFunctionWithName(String desiredName)
Finds a function with the given name.
|
Modifier and Type | Method and Description |
---|---|
Collection<CallGraph.Function> |
CallGraph.getAllFunctions()
Returns a collection of all functions (including the main function)
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.
|
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.
|
Collection<CallGraph.Function> |
CallGraph.Callsite.getPossibleTargets()
Returns the possible target functions that this callsite could call.
|
Copyright © 2009-2017 Google. All Rights Reserved.