19 references to CreateConstant
Microsoft.CSharp (19)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (3)
454
arg = ExprFactory.
CreateConstant
(SymbolTable.GetCTypeFromType(argument.Type), default(ConstVal));
463
arg = ExprFactory.
CreateConstant
(SymbolTable.GetCTypeFromType(argument.Type), ConstVal.Get(argument.Value));
1331
return ExprFactory.
CreateConstant
(boolType, ConstVal.Get(result));
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
1165
pexprDest = ExprFactory.
CreateConstant
(typeDest, cv);
1297
ExprConstant expr = ExprFactory.
CreateConstant
(typeDest, cv);
1419
ExprConstant exprConst = ExprFactory.
CreateConstant
(typeDecimal, cv);
1476
ExprConstant exprConst = ExprFactory.
CreateConstant
(destType, cv);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
371
ExprConstant expr = ExprFactory.
CreateConstant
(typeDest, constant.Val);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (6)
84
CreateConstant
(TypeManager.GetPredefAgg(PredefinedType.PT_STRING).getThisType(), ConstVal.Get(str));
110
return
CreateConstant
(type, ConstVal.Get(Activator.CreateInstance(type.AssociatedSystemType)));
135
return
CreateConstant
(type, ConstVal.GetDefaultValue(type.ConstValKind));
143
CreateConstant
(TypeManager.GetPredefAgg(PredefinedType.PT_INT).getThisType(), ConstVal.Get(x));
147
CreateConstant
(TypeManager.GetPredefAgg(PredefinedType.PT_BOOL).getThisType(), ConstVal.Get(b));
208
public static ExprConstant CreateNull() =>
CreateConstant
(NullType.Instance, default);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (2)
505
optionalArgument = ExprFactory.
CreateConstant
(dateTimeType, ConstVal.Get(DateTime.FromBinary(cv.Int64Val)));
516
optionalArgument = ExprFactory.
CreateConstant
(
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
660
_exprDest = ExprFactory.
CreateConstant
(_typeDest, ConstVal.GetDefaultValue(_typeDest.ConstValKind));
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (2)
1696
ExprBinOp pExprResult = ExprFactory.CreateBinop(ek, typeTmp, exprVal, ExprFactory.
CreateConstant
(typeOne, cv));
1926
return ExprFactory.
CreateConstant
(typeBool, ConstVal.Get(((ExprConstant)argConst).Val.Int32Val == 0));