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