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 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); if (target is VariableReference vr) { if (vr.VariableInfo != null) { fc.SetVariableAssigned(vr.VariableInfo); } return; } if (target is FieldExpr fe) { fe.SetFieldAssigned(fc); return; } if (target is PropertyExpr pe) { pe.SetBackingFieldAssigned(fc); return; } }
public void FlowAnalysis(FlowAnalysisContext fc) { if (ArgType == AType.Out) { if (Expr is VariableReference vr) { if (vr.VariableInfo != null) { fc.SetVariableAssigned(vr.VariableInfo); } return; } if (Expr is FieldExpr fe) { fe.SetFieldAssigned(fc); return; } return; } Expr.FlowAnalysis(fc); }
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; } }