Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.lint |
Modifier and Type | Class and Description |
---|---|
private static class |
ControlFlowAnalysis.AstControlFlowGraph
A
ControlFlowGraph which provides a node comparator based on the
pre-order traversal of the AST. |
Modifier and Type | Field and Description |
---|---|
private ControlFlowGraph<N> |
DataFlowAnalysis.cfg |
private ControlFlowGraph<Node> |
UnreachableCodeElimination.EliminationPass.cfg |
private ControlFlowGraph<Node> |
FlowSensitiveInlineVariables.cfg |
private ControlFlowGraph<Node> |
ControlFlowAnalysis.cfg |
private ControlFlowGraph<Node> |
NewTypeInference.cfg |
private ControlFlowGraph<Node> |
DotFormatter.cfg |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Deque<ControlFlowGraph<Node>> |
NodeTraversal.cfgs
Stack of control flow graphs (CFG).
|
Modifier and Type | Method and Description |
---|---|
(package private) ControlFlowGraph<Node> |
Compiler.computeCFG()
Control Flow Analysis.
|
private ControlFlowGraph<Node> |
TypeInferencePass.computeCfg(Node n) |
(package private) ControlFlowGraph<N> |
DataFlowAnalysis.getCfg()
Returns the control flow graph that this analysis was performed on.
|
(package private) ControlFlowGraph<Node> |
ControlFlowAnalysis.getCfg() |
ControlFlowGraph<Node> |
NodeTraversal.getControlFlowGraph()
Gets the control flow graph for the current JS scope.
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
DotFormatter.appendDot(Node n,
ControlFlowGraph<Node> inCFG,
java.lang.Appendable builder)
Converts an AST to dot representation and appends it to the given buffer.
|
private UndiGraph<Var,java.lang.Void> |
CoalesceVariableNames.computeVariableNamesInterferenceGraph(NodeTraversal t,
ControlFlowGraph<Node> cfg,
java.util.Set<Var> escaped) |
private boolean |
CheckMissingReturn.fastAllPathsReturnCheck(ControlFlowGraph<Node> cfg)
Fast check to see if all execution paths contain a return statement.
|
private static boolean |
NewTypeInference.hasPathWithNoReturn(ControlFlowGraph<Node> cfg) |
private void |
CheckUnreachableCode.initScope(ControlFlowGraph<Node> controlFlowGraph) |
(package private) static java.lang.String |
DotFormatter.toDot(Node n,
ControlFlowGraph<Node> inCFG)
Converts an AST to dot representation.
|
private void |
DeadAssignmentsElimination.tryRemoveDeadAssignments(NodeTraversal t,
ControlFlowGraph<Node> cfg)
Try to remove useless assignments from a control flow graph that has been
annotated with liveness information.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
CheckNullableReturn.canReturnNull(ControlFlowGraph<Node> graph) |