Example #1
0
        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;
            }
        }
Example #2
0
        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);
        }
Example #3
0
        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;
            }
        }
Example #4
0
        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);
        }
Example #5
0
		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);
		}
Example #6
0
		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;
			}
		}