Package org.sonar.python.checks.utils
Class DeadStoreUtils
java.lang.Object
org.sonar.python.checks.utils.DeadStoreUtils
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfindUnnecessaryAssignments(CfgBlock block, LiveVariablesAnalysis.LiveVariables blockLiveVariables, FunctionDef functionDef) Bottom-up approach, keeping track of which variables will be read by successor elements.static booleanisParameter(Tree element) static booleanisUsedInSubFunction(Symbol symbol, FunctionDef functionDef)
-
Method Details
-
findUnnecessaryAssignments
public static List<DeadStoreUtils.UnnecessaryAssignment> findUnnecessaryAssignments(CfgBlock block, LiveVariablesAnalysis.LiveVariables blockLiveVariables, FunctionDef functionDef) Bottom-up approach, keeping track of which variables will be read by successor elements. -
isParameter
-
isUsedInSubFunction
-