Mono.CSharp.ResolveContext.With C# (CSharp) Method

With() public method

public With ( Options options, bool enable ) : FlagsHandle
options Options
enable bool
return FlagsHandle
		public FlagsHandle With (Options options, bool enable)
		{
			return new FlagsHandle (this, options, enable ? options : 0);
		}

Usage Example

Example #1
0
        public void Resolve(ResolveContext ec)
        {
            if (Expr == EmptyExpression.Null)
            {
                return;
            }

            using (ec.With(ResolveContext.Options.DoFlowAnalysis, true)) {
                // Verify that the argument is readable
                if (ArgType != AType.Out)
                {
                    Expr = Expr.Resolve(ec);
                }

                // Verify that the argument is writeable
                if (Expr != null && IsByRef)
                {
                    Expr = Expr.ResolveLValue(ec, EmptyExpression.OutAccess);
                }

                if (Expr == null)
                {
                    Expr = EmptyExpression.Null;
                }
            }
        }
All Usage Examples Of Mono.CSharp.ResolveContext::With