private void AddDefinition(VariableDefinition variable, ExpressionStatement expressionStatement) { if (!bannedVariables.Contains(variable)) { DefineUseCount defineUseCount; if (patternContext.VariableToDefineUseCountContext.TryGetValue(variable, out defineUseCount)) { defineUseCount.DefineCount++; patternContext.VariableToSingleAssignmentMap.Remove(variable); } else { DefineUseCount newEntry = new DefineUseCount(); newEntry.DefineCount++; patternContext.VariableToDefineUseCountContext.Add(variable, newEntry); patternContext.VariableToSingleAssignmentMap.Add(variable, expressionStatement); } } }
private void AddDefinition(VariableDefinition variable, ExpressionStatement expressionStatement) { if (!this.bannedVariables.Contains(variable)) { if (this.patternContext.get_VariableToDefineUseCountContext().TryGetValue(variable, out V_0)) { stackVariable25 = V_0; stackVariable25.DefineCount = stackVariable25.DefineCount + 1; dummyVar0 = this.patternContext.get_VariableToSingleAssignmentMap().Remove(variable); return; } V_1 = new DefineUseCount(); stackVariable11 = V_1; stackVariable11.DefineCount = stackVariable11.DefineCount + 1; this.patternContext.get_VariableToDefineUseCountContext().Add(variable, V_1); this.patternContext.get_VariableToSingleAssignmentMap().Add(variable, expressionStatement); } return; }