55 references to PT_BOOL
Microsoft.CSharp (55)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (3)
955
Expr result = _binder.tryConvert(arg1, SymbolLoader.GetPredefindType(PredefinedType.
PT_BOOL
));
967
?? _binder.mustConvert(arg1, SymbolLoader.GetPredefindType(PredefinedType.
PT_BOOL
));
1296
CType boolType = SymbolLoader.GetPredefindType(PredefinedType.
PT_BOOL
);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
147
CreateConstant(TypeManager.GetPredefAgg(PredefinedType.
PT_BOOL
).getThisType(), ConstVal.Get(b));
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
646
aggTypeSrc.OwningAggregate.GetPredefType() != PredefinedType.
PT_BOOL
&&
691
((ptSrc == PredefinedType.PT_INT && ptDest != PredefinedType.
PT_BOOL
&& ptDest != PredefinedType.PT_CHAR) ||
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (36)
104
new BinOpSig (PredefinedType.
PT_BOOL
, PredefinedType.
PT_BOOL
, BinOpMask.BoolNorm, 0, BindBoolBinOp, OpSigFlags.Value, BinOpFuncKind.BoolBinOp ),
107
new BinOpSig (PredefinedType.
PT_BOOL
, PredefinedType.
PT_BOOL
, BinOpMask.Logical, 0, BindBoolBinOp, OpSigFlags.BoolBit, BinOpFuncKind.BoolBinOp ),
108
new BinOpSig (PredefinedType.
PT_BOOL
, PredefinedType.
PT_BOOL
, BinOpMask.Bitwise, 0, BindLiftedBoolBitwiseOp, OpSigFlags.BoolBit, BinOpFuncKind.BoolBitwiseOp ),
127
new UnaOpSig( PredefinedType.
PT_BOOL
, UnaOpMask.Bool, 0, BindBoolUnaOp, UnaOpFuncKind.BoolUnaOp ),
458
CType typeBool = GetPredefindType(PredefinedType.
PT_BOOL
);
631
resultType = GetPredefindType(PredefinedType.
PT_BOOL
);
1791
typeRet = GetPredefindType(PredefinedType.
PT_BOOL
);
1859
Debug.Assert(arg1.Type.IsPredefType(PredefinedType.
PT_BOOL
) || arg1.Type is NullableType argNubType1 && argNubType1.UnderlyingType.IsPredefType(PredefinedType.
PT_BOOL
));
1860
Debug.Assert(arg2.Type.IsPredefType(PredefinedType.
PT_BOOL
) || arg2.Type is NullableType argNubType2 && argNubType2.UnderlyingType.IsPredefType(PredefinedType.
PT_BOOL
));
1862
return ExprFactory.CreateBinop(ek, GetPredefindType(PredefinedType.
PT_BOOL
), arg1, arg2);
1869
Debug.Assert(expr1.Type.IsPredefType(PredefinedType.
PT_BOOL
) || expr1.Type is NullableType expNubType1 && expNubType1.UnderlyingType.IsPredefType(PredefinedType.
PT_BOOL
));
1870
Debug.Assert(expr2.Type.IsPredefType(PredefinedType.
PT_BOOL
) || expr2.Type is NullableType expNubType2 && expNubType2.UnderlyingType.IsPredefType(PredefinedType.
PT_BOOL
));
1874
CType typeBool = GetPredefindType(PredefinedType.
PT_BOOL
);
1912
Debug.Assert(arg.Type.IsPredefType(PredefinedType.
PT_BOOL
));
1916
CType typeBool = GetPredefindType(PredefinedType.
PT_BOOL
);
1945
return CreateBinopForPredefMethodCall(ek, predefMeth, GetPredefindType(PredefinedType.
PT_BOOL
), arg1, arg2);
1961
return ExprFactory.CreateBinop(ek, GetPredefindType(PredefinedType.
PT_BOOL
), arg1, arg2);
1992
RetType = GetPredefindType(PredefinedType.
PT_BOOL
);
1998
RetType = GetPredefindType(PredefinedType.
PT_BOOL
);
2031
Debug.Assert(!typeDst.IsPredefType(PredefinedType.
PT_BOOL
));
2202
CType typeDest = kind.IsRelational() ? GetPredefindType(PredefinedType.
PT_BOOL
) : typeOp;
2279
CType typeDest = kind.IsRelational() ? GetPredefindType(PredefinedType.
PT_BOOL
) : op1.Type;
2365
pCallT = mustConvert(pCallT, GetPredefindType(PredefinedType.
PT_BOOL
));
2366
pCallF = mustConvert(pCallF, GetPredefindType(PredefinedType.
PT_BOOL
));
2424
if (!typeRet.IsPredefType(PredefinedType.
PT_BOOL
))
2437
if (!typeRet.IsPredefType(PredefinedType.
PT_BOOL
))
2642
Debug.Assert(typeRetRaw.IsPredefType(PredefinedType.
PT_BOOL
));
2650
Debug.Assert(typeRetRaw.IsPredefType(PredefinedType.
PT_BOOL
));
2713
typeDst = GetPredefindType(PredefinedType.
PT_BOOL
);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (10)
433
new PredefinedMethodInfo( PREDEFMETH.PM_DELEGATE_OPEQUALITY, PredefinedType.PT_DELEGATE, PredefinedName.PN_OPEQUALITY, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.
PT_BOOL
, 2, (int)PredefinedType.PT_DELEGATE, (int)PredefinedType.PT_DELEGATE }),
434
new PredefinedMethodInfo( PREDEFMETH.PM_DELEGATE_OPINEQUALITY, PredefinedType.PT_DELEGATE, PredefinedName.PN_OPINEQUALITY, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.
PT_BOOL
, 2, (int)PredefinedType.PT_DELEGATE, (int)PredefinedType.PT_DELEGATE }),
455
new PredefinedMethodInfo( PREDEFMETH.PM_EXPRESSION_EQUAL_USER_DEFINED, PredefinedType.PT_EXPRESSION, PredefinedName.PN_EQUAL, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.PT_BINARYEXPRESSION, 4, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.
PT_BOOL
, (int)PredefinedType.PT_METHODINFO }),
460
new PredefinedMethodInfo( PREDEFMETH.PM_EXPRESSION_GREATERTHAN_USER_DEFINED, PredefinedType.PT_EXPRESSION, PredefinedName.PN_GREATERTHAN, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.PT_BINARYEXPRESSION, 4, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.
PT_BOOL
, (int)PredefinedType.PT_METHODINFO }),
462
new PredefinedMethodInfo( PREDEFMETH.PM_EXPRESSION_GREATERTHANOREQUAL_USER_DEFINED, PredefinedType.PT_EXPRESSION, PredefinedName.PN_GREATERTHANOREQUAL, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.PT_BINARYEXPRESSION, 4, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.
PT_BOOL
, (int)PredefinedType.PT_METHODINFO }),
467
new PredefinedMethodInfo( PREDEFMETH.PM_EXPRESSION_LESSTHAN_USER_DEFINED, PredefinedType.PT_EXPRESSION, PredefinedName.PN_LESSTHAN, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.PT_BINARYEXPRESSION, 4, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.
PT_BOOL
, (int)PredefinedType.PT_METHODINFO }),
469
new PredefinedMethodInfo( PREDEFMETH.PM_EXPRESSION_LESSTHANOREQUAL_USER_DEFINED, PredefinedType.PT_EXPRESSION, PredefinedName.PN_LESSTHANOREQUAL, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.PT_BINARYEXPRESSION, 4, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.
PT_BOOL
, (int)PredefinedType.PT_METHODINFO }),
477
new PredefinedMethodInfo( PREDEFMETH.PM_EXPRESSION_NOTEQUAL_USER_DEFINED, PredefinedType.PT_EXPRESSION, PredefinedName.PN_NOTEQUAL, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.PT_BINARYEXPRESSION, 4, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.PT_EXPRESSION, (int)PredefinedType.
PT_BOOL
, (int)PredefinedType.PT_METHODINFO }),
508
new PredefinedMethodInfo( PREDEFMETH.PM_STRING_OPEQUALITY, PredefinedType.PT_STRING, PredefinedName.PN_OPEQUALITY, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.
PT_BOOL
, 2, (int)PredefinedType.PT_STRING, (int)PredefinedType.PT_STRING }),
509
new PredefinedMethodInfo( PREDEFMETH.PM_STRING_OPINEQUALITY, PredefinedType.PT_STRING, PredefinedName.PN_OPINEQUALITY, MethodCallingConventionEnum.Static, ACCESS.ACC_PUBLIC, 0, new int[] { (int)PredefinedType.
PT_BOOL
, 2, (int)PredefinedType.PT_STRING, (int)PredefinedType.PT_STRING }),
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (2)
89
PredefinedType.
PT_BOOL
=> "bool",
136
new PredefinedTypeInfo(PredefinedType.
PT_BOOL
, typeof(bool), "System.Boolean", FUNDTYPE.FT_I1),
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
1552
cvType = SymbolLoader.GetPredefindType(PredefinedType.
PT_BOOL
);