public void FlowAnalysis(FlowAnalysisContext fc) { if (ArgType == AType.Out) { var vr = Expr as VariableReference; if (vr != null) { if (vr.VariableInfo != null) { fc.SetVariableAssigned(vr.VariableInfo); } return; } var fe = Expr as FieldExpr; if (fe != null) { fe.SetFieldAssigned(fc); return; } return; } Expr.FlowAnalysis(fc); }
public override void FlowAnalysis(FlowAnalysisContext fc) { base.FlowAnalysis(fc); var vr = target as VariableReference; if (vr != null) { if (vr.VariableInfo != null) { fc.SetVariableAssigned(vr.VariableInfo); } return; } var fe = target as FieldExpr; if (fe != null) { fe.SetFieldAssigned(fc); return; } var pe = target as PropertyExpr; if (pe != null) { pe.SetBackingFieldAssigned(fc); return; } }
public void SetGeneratedFieldAssigned(FlowAnalysisContext fc) { if (variablesToInfer == null) { return; } foreach (var lv in variablesToInfer) { fc.SetVariableAssigned(lv.VariableInfo); } }
public override void FlowAnalysis (FlowAnalysisContext fc) { base.FlowAnalysis (fc); var vr = target as VariableReference; if (vr != null) { if (vr.VariableInfo != null) fc.SetVariableAssigned (vr.VariableInfo); return; } var fe = target as FieldExpr; if (fe != null) { fe.SetFieldAssigned (fc); return; } }
public void FlowAnalysis (FlowAnalysisContext fc) { if (ArgType == AType.Out) { var vr = Expr as VariableReference; if (vr != null) { if (vr.VariableInfo != null) fc.SetVariableAssigned (vr.VariableInfo); return; } var fe = Expr as FieldExpr; if (fe != null) { fe.SetFieldAssigned (fc); return; } return; } Expr.FlowAnalysis (fc); }