183 references to EXPRFLAG
Microsoft.CSharp (183)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (2)
339Debug.Assert((pExpr.Flags & EXPRFLAG.EXF_UNBOXRUNTIME) == 0); 368if ((pExpr.Flags & EXPRFLAG.EXF_UNBOXRUNTIME) != 0)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (12)
404result.Flags |= EXPRFLAG.EXF_LVALUE; 582EXPRFLAG flags = EXPRFLAG.EXF_USERCALLABLE; 586flags |= EXPRFLAG.EXF_DELEGATE; 592flags |= EXPRFLAG.EXF_CTOR; 598flags |= EXPRFLAG.EXF_INDEXER; 712callingObject.Flags |= EXPRFLAG.EXF_UNBOXRUNTIME; 771callingObject.Flags |= EXPRFLAG.EXF_SIMPLENAME; 807memGroup.Flags &= ~EXPRFLAG.EXF_USERCALLABLE; 815memGroup.Flags &= ~EXPRFLAG.EXF_USERCALLABLE; 1123callingObject.Flags |= EXPRFLAG.EXF_UNBOXRUNTIME; 1165callingObject.Flags |= EXPRFLAG.EXF_LVALUE;
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (11)
264_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_REFCHECK); 305_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_REFCHECK); 333_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_REFCHECK); 367_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_REFCHECK); 588_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_UNBOX); 657_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, (_flags & CONVERTTYPE.CHECKOVERFLOW) != 0 ? EXPRFLAG.EXF_CHECKOVERFLOW : 0); 696? EXPRFLAG.EXF_UNBOX 697: EXPRFLAG.EXF_REFCHECK | (_exprSrc?.Flags & EXPRFLAG.EXF_CANTBENULL ?? 0)); 709_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_REFCHECK | (_exprSrc?.Flags & EXPRFLAG.EXF_CANTBENULL ?? 0));
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (15)
262private delegate Expr PfnBindBinOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG flags, Expr op1, Expr op2); 263private delegate Expr PfnBindUnaOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG flags, Expr op); 322: ExprFactoryCreateCastWithSuppressedMessage(EXPRFLAG.EXF_INDEXEXPR, pDestType, pTemp); 337private static ExprCast ExprFactoryCreateCastWithSuppressedMessage(EXPRFLAG flags, CType type, Expr argument) 347private void bindSimpleCast(Expr exprSrc, CType typeDest, out Expr pexprDest, EXPRFLAG exprFlags) 361exprCast.Flags |= EXPRFLAG.EXF_CHECKOVERFLOW; 418pResult.Flags |= EXPRFLAG.EXF_NEWOBJCALL | EXPRFLAG.EXF_CANTBENULL; 452Debug.Assert(BindingFlag.BIND_MEMBERSET == (BindingFlag)EXPRFLAG.EXF_MEMBERSET); 453pResult.Flags |= (EXPRFLAG)(bindFlags & BindingFlag.BIND_MEMBERSET); 716Debug.Assert(grp.SymKind == SYMKIND.SK_MethodSymbol || grp.SymKind == SYMKIND.SK_PropertySymbol && ((grp.Flags & EXPRFLAG.EXF_INDEXER) != 0)); 730Debug.Assert((grp.Flags & EXPRFLAG.EXF_INDEXER) != 0); 959if ((pObject.Flags & EXPRFLAG.EXF_SIMPLENAME) != 0) 1030if ((pObject.Flags & EXPRFLAG.EXF_SAMENAMETYPE) == 0) 1052(((pObject.Flags & EXPRFLAG.EXF_LVALUE) != 0) && (pObject.Kind != ExpressionKind.Property)) ||
Microsoft\CSharp\RuntimeBinder\Semantics\EXPRExtensions.cs (3)
52Debug.Assert(expr?.Kind >= ExpressionKind.TypeLimit && 0 != (expr.Flags & EXPRFLAG.EXF_BINOP)); 56return (expr == null) ? false : 0 != (expr.Flags & EXPRFLAG.EXF_LVALUE); 60return (expr == null) ? false : 0 != (expr.Flags & EXPRFLAG.EXF_CHECKOVERFLOW);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (6)
13public static ExprCall CreateCall(EXPRFLAG flags, CType type, Expr arguments, ExprMemberGroup memberGroup, MethWithInst method) => 25public static ExprMemberGroup CreateMemGroup(EXPRFLAG flags, Name name, TypeArray typeArgs, SYMKIND symKind, CType parentType, Expr obj, CMemberLookupResults memberLookupResults) => 44public static ExprCast CreateCast(EXPRFLAG flags, CType type, Expr argument) => new ExprCast(flags, type, argument); 87public static ExprMultiGet CreateMultiGet(EXPRFLAG flags, CType type, ExprMulti multi) => 91public static ExprMulti CreateMulti(EXPRFLAG flags, CType type, Expr left, Expr op) => 174public static ExprUnaryOp CreateNeg(EXPRFLAG flags, Expr operand)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (6)
93Debug.Assert(_pGroup.SymKind == SYMKIND.SK_MethodSymbol || _pGroup.SymKind == SYMKIND.SK_PropertySymbol && 0 != (_pGroup.Flags & EXPRFLAG.EXF_INDEXER)); 108return (pGroup.Flags & EXPRFLAG.EXF_CTOR) != 0 ? pGroup.ParentType : pGroup.OptionalObject?.Type; 1076Debug.Assert(_pGroup.SymKind == SYMKIND.SK_MethodSymbol || _pGroup.SymKind == SYMKIND.SK_PropertySymbol && 0 != (_pGroup.Flags & EXPRFLAG.EXF_INDEXER)); 1078Debug.Assert(0 == (_pGroup.Flags & EXPRFLAG.EXF_USERCALLABLE) || _results.BestResult.MethProp().isUserCallable()); 1218Debug.Assert(0 == (_pGroup.Flags & EXPRFLAG.EXF_CTOR)); 1222if (0 != (_pGroup.Flags & EXPRFLAG.EXF_CTOR))
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (12)
199_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, _exprSrc.Flags & EXPRFLAG.EXF_CANTBENULL); 289_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_UNBOX); 451_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_BOX); 457_binder.bindSimpleCast(_exprDest, _typeDest, out _exprDest, EXPRFLAG.EXF_FORCE_UNBOX); 488EXPRFLAG grfex = 0; 503grfex = EXPRFLAG.EXF_REFCHECK; 586EXPRFLAG flags = 0x00; 589flags = EXPRFLAG.EXF_BOX | EXPRFLAG.EXF_CANTBENULL; 593flags = _exprSrc.Flags & EXPRFLAG.EXF_CANTBENULL; 616_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_BOX | EXPRFLAG.EXF_CANTBENULL);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (6)
18Ctor = EXPRFLAG.EXF_CTOR, 19NewObj = EXPRFLAG.EXF_NEWOBJCALL, 20Operator = EXPRFLAG.EXF_OPERATOR, 21Indexer = EXPRFLAG.EXF_INDEXER, 22UserCallable = EXPRFLAG.EXF_USERCALLABLE, 23BaseCall = EXPRFLAG.EXF_BASECALL,
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookupResults.cs (1)
31CType qualifyingType, AggregateSymbol context, int arity, EXPRFLAG flags, symbmask_t mask, ArgInfos nonTrailingNamedArguments) =>
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (5)
22private readonly EXPRFLAG _flags; 27public CMethodIterator(Name name, TypeArray containingTypes, CType qualifyingType, AggregateSymbol context, int arity, EXPRFLAG flags, symbmask_t mask, ArgInfos nonTrailingNamedArguments) 650 == (_flags & EXPRFLAG.EXF_CTOR) != !((MethodSymbol)CurrentSymbol).IsConstructor() || 660 == (_flags & EXPRFLAG.EXF_OPERATOR) != !((MethodSymbol)CurrentSymbol).isOperator) || 80if (!ExpressionBinder.IsMethPropCallable(CurrentSymbol, (_flags & EXPRFLAG.EXF_USERCALLABLE) != 0))
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (2)
72return ExprFactory.CreateCall(EXPRFLAG.EXF_NEWOBJCALL | EXPRFLAG.EXF_CANTBENULL, pNubSourceType, exprSrc, memgroup, methwithinst);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (60)
491(BinOpKind kind, EXPRFLAG flags) = GetBinopKindAndFlags(ek); 561private Expr BindStandardBinopCore(BinOpArgInfo info, BinOpFullSig bofs, ExpressionKind ek, EXPRFLAG flags) 603private ExprBinOp BindLiftedStandardBinOp(BinOpArgInfo info, BinOpFullSig bofs, ExpressionKind ek, EXPRFLAG flags) 649Debug.Assert((exprRes.Flags & EXPRFLAG.EXF_LVALUE) == 0); 1076private static (ExpressionKind, UnaOpKind, EXPRFLAG) CalculateExprAndUnaryOpKinds(OperatorKind op, bool bChecked) 1080EXPRFLAG flags = 0; 1091flags = EXPRFLAG.EXF_CHECKOVERFLOW; 1108flags = EXPRFLAG.EXF_ISPOSTOP; 1111flags |= EXPRFLAG.EXF_CHECKOVERFLOW; 1120flags = EXPRFLAG.EXF_CHECKOVERFLOW; 1127flags = EXPRFLAG.EXF_ISPOSTOP; 1130flags |= EXPRFLAG.EXF_CHECKOVERFLOW; 1139flags = EXPRFLAG.EXF_CHECKOVERFLOW; 1178(ExpressionKind ek, UnaOpKind unaryOpKind, EXPRFLAG flags) = 1296private UnaryOperatorSignatureFindResult PopulateSignatureList(Expr pArgument, UnaOpKind unaryOpKind, UnaOpMask unaryOpMask, ExpressionKind exprKind, EXPRFLAG flags, List<UnaOpFullSig> pSignatures, out Expr ppResult) 1359ExprMulti exprMulti = ExprFactory.CreateMulti(EXPRFLAG.EXF_ASSGOP | flags, pArgumentType, pArgument, exprVal); 1513private ExprOperator BindLiftedStandardUnop(ExpressionKind ek, EXPRFLAG flags, Expr arg, UnaOpFullSig uofs) 1530Debug.Assert((exprRes.Flags & EXPRFLAG.EXF_LVALUE) == 0); 1565private static ExprOperator BindIntBinOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 1575private static ExprOperator BindIntUnaOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG flags, Expr arg) 1585private static ExprOperator BindRealBinOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG _, Expr arg1, Expr arg2) 1595private static ExprOperator BindRealUnaOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG _, Expr arg) 1606private Expr BindIncOp(ExpressionKind ek, EXPRFLAG flags, Expr arg, UnaOpFullSig uofs) 1616flags &= ~EXPRFLAG.EXF_CHECKOVERFLOW; 1630private Expr BindIncOpCore(ExpressionKind ek, EXPRFLAG flags, Expr exprVal, CType type) 1688private Expr LScalar(ExpressionKind ek, EXPRFLAG flags, Expr exprVal, CType type, ConstVal cv, CType typeTmp) 1702private ExprMulti BindNonliftedIncOp(ExpressionKind ek, EXPRFLAG flags, Expr arg, UnaOpFullSig uofs) 1708ExprMultiGet exprGet = ExprFactory.CreateMultiGet(EXPRFLAG.EXF_ASSGOP, arg.Type, null); 1723ExprMulti exprMulti = ExprFactory.CreateMulti(EXPRFLAG.EXF_ASSGOP | flags, arg.Type, arg, op); 1729private ExprMulti BindLiftedIncOp(ExpressionKind ek, EXPRFLAG flags, Expr arg, UnaOpFullSig uofs) 1737ExprMultiGet exprGet = ExprFactory.CreateMultiGet(EXPRFLAG.EXF_ASSGOP, arg.Type, null); 1751ExprMulti exprMulti = ExprFactory.CreateMulti(EXPRFLAG.EXF_ASSGOP | flags, arg.Type, arg, exprRes); 1763private static ExprBinOp BindDecBinOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 1805private static ExprUnaryOp BindDecUnaOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg) 1825private static Expr BindStrBinOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 1837private static ExprBinOp BindShiftOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 1855private static ExprBinOp BindBoolBinOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 1866private ExprOperator BindBoolBitwiseOp(ExpressionKind ek, EXPRFLAG flags, Expr expr1, Expr expr2) 1896Debug.Assert((exprRes.Flags & EXPRFLAG.EXF_LVALUE) == 0); 1903private static Expr BindLiftedBoolBitwiseOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr expr1, Expr expr2) => null; 1910private static Expr BindBoolUnaOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg) 1935private static ExprBinOp BindStrCmpOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 1953private static ExprBinOp BindRefCmpOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 1969private static Expr BindDelBinOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 2010private static Expr BindEnumBinOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 2039private Expr BindLiftedEnumArithmeticBinOp(ExpressionKind ek, EXPRFLAG flags, Expr arg1, Expr arg2) 2071Debug.Assert((exprRes.Flags & EXPRFLAG.EXF_LVALUE) == 0); 2086private static Expr BindEnumUnaOp(ExpressionBinder binder, ExpressionKind ek, EXPRFLAG flags, Expr arg) 2110private (BinOpKind, EXPRFLAG) GetBinopKindAndFlags(ExpressionKind ek) 2113EXPRFLAG flags = 0; 2119flags = EXPRFLAG.EXF_CHECKOVERFLOW; 2126flags = EXPRFLAG.EXF_CHECKOVERFLOW; 2134flags = EXPRFLAG.EXF_ASSGOP; 2137flags |= EXPRFLAG.EXF_CHECKOVERFLOW; 2144flags = EXPRFLAG.EXF_CHECKOVERFLOW; 2187private ExprOperator BindIntOp(ExpressionKind kind, EXPRFLAG flags, Expr op1, Expr op2, PredefinedType ptOp) 2206Debug.Assert((exprRes.Flags & EXPRFLAG.EXF_LVALUE) == 0); 2212private ExprOperator BindIntegerNeg(EXPRFLAG flags, Expr op, PredefinedType ptOp) 2260Debug.Assert(0 == (exprRes.Flags & EXPRFLAG.EXF_LVALUE)); 2282exprRes.Flags &= ~EXPRFLAG.EXF_CHECKOVERFLOW;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ArrayIndex.cs (2)
13Flags = EXPRFLAG.EXF_LVALUE | EXPRFLAG.EXF_ASSGOP;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Assignment.cs (1)
15Flags = EXPRFLAG.EXF_ASSGOP;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\BinaryOperator.cs (3)
16Flags = EXPRFLAG.EXF_BINOP; 28Flags = EXPRFLAG.EXF_BINOP; 41Flags |= EXPRFLAG.EXF_ASSGOP;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Call.cs (6)
10public ExprCall(CType type, EXPRFLAG flags, Expr arguments, ExprMemberGroup member, MethWithInst method) 14(flags & ~(EXPRFLAG.EXF_NEWOBJCALL | EXPRFLAG.EXF_CONSTRAINED 15| EXPRFLAG.EXF_NEWSTRUCTASSG | EXPRFLAG.EXF_IMPLICITSTRUCTASSG | EXPRFLAG.EXF_MASK_ANY)) == 0);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Cast.cs (5)
11public ExprCast(EXPRFLAG flags, CType type, Expr argument) 15Debug.Assert((flags & ~(EXPRFLAG.EXF_CAST_ALL | EXPRFLAG.EXF_MASK_ANY)) == 0); 22public bool IsBoxingCast => (Flags & (EXPRFLAG.EXF_BOX | EXPRFLAG.EXF_FORCE_BOX)) != 0;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\CompoundOperator.cs (3)
10public ExprMultiGet(CType type, EXPRFLAG flags, ExprMulti multi) 13Debug.Assert((flags & ~EXPRFLAG.EXF_MASK_ANY) == 0); 23public ExprMulti(CType type, EXPRFLAG flags, Expr left, Expr op)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\EXPR.cs (1)
24public EXPRFLAG Flags { get; set; }
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Field.cs (1)
11Flags = field.Field().isReadOnly ? 0 : EXPRFLAG.EXF_LVALUE;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\LocalVariable.cs (1)
13Flags = EXPRFLAG.EXF_LVALUE;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MemberGroup.cs (9)
11public ExprMemberGroup(EXPRFLAG flags, Name name, TypeArray typeArgs, SYMKIND symKind, CType parentType, Expr optionalObject, CMemberLookupResults memberLookupResults) 15(flags & ~(EXPRFLAG.EXF_CTOR | EXPRFLAG.EXF_INDEXER | EXPRFLAG.EXF_OPERATOR | EXPRFLAG.EXF_NEWOBJCALL 16| EXPRFLAG.EXF_DELEGATE | EXPRFLAG.EXF_USERCALLABLE 17| EXPRFLAG.EXF_MASK_ANY)) == 0); 48public bool IsDelegate => (Flags & EXPRFLAG.EXF_DELEGATE) != 0;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Property.cs (1)
36Flags = EXPRFLAG.EXF_LVALUE;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Temporary.cs (1)
13Flags = EXPRFLAG.EXF_LVALUE;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\TypeOf.cs (1)
13Flags = EXPRFLAG.EXF_CANTBENULL;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\UserDefinedLogicalOperator.cs (1)
15Flags = EXPRFLAG.EXF_ASSGOP;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (6)
175if ((pExpr.Flags & EXPRFLAG.EXF_UNBOXRUNTIME) != 0) 178result.Flags |= EXPRFLAG.EXF_UNBOXRUNTIME; 866newIndex = ExprFactory.CreateCast(EXPRFLAG.EXF_INDEXEXPR, intType, newIndex); 867newIndex.Flags |= EXPRFLAG.EXF_CHECKOVERFLOW; 878EXPRFLAG flags = 0; 891flags = EXPRFLAG.EXF_BOX;