Package org.sonar.javascript.se
Class LiveVariableAnalysis
- java.lang.Object
-
- org.sonar.javascript.se.LiveVariableAnalysis
-
public class LiveVariableAnalysis extends Object
This class provides information about symbols which are "live" (which value will be read) at some point of the program. See https://en.wikipedia.org/wiki/Live_variable_analysis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLiveVariableAnalysis.Usages
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LiveVariableAnalysiscreate(ControlFlowGraph cfg, Scope scope)static LiveVariableAnalysiscreateForSymbolicExecution(ControlFlowGraph cfg, Scope scope)Set<Symbol>getLiveInSymbols(CfgBlock block)Set<Symbol>getLiveOutSymbols(CfgBlock block)LiveVariableAnalysis.UsagesgetUsages()
-
-
-
Method Detail
-
create
public static LiveVariableAnalysis create(ControlFlowGraph cfg, Scope scope)
-
createForSymbolicExecution
public static LiveVariableAnalysis createForSymbolicExecution(ControlFlowGraph cfg, Scope scope)
-
getUsages
public LiveVariableAnalysis.Usages getUsages()
-
-