19 references to CreateConstant
Microsoft.CSharp (19)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (3)
469arg = ExprFactory.CreateConstant(SymbolTable.GetCTypeFromType(argument.Type), default(ConstVal)); 478arg = ExprFactory.CreateConstant(SymbolTable.GetCTypeFromType(argument.Type), ConstVal.Get(argument.Value)); 1361return ExprFactory.CreateConstant(boolType, ConstVal.Get(result));
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
1196pexprDest = ExprFactory.CreateConstant(typeDest, cv); 1328ExprConstant expr = ExprFactory.CreateConstant(typeDest, cv); 1453ExprConstant exprConst = ExprFactory.CreateConstant(typeDecimal, cv); 1510ExprConstant exprConst = ExprFactory.CreateConstant(destType, cv);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
379ExprConstant expr = ExprFactory.CreateConstant(typeDest, constant.Val);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (6)
98CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_STRING).getThisType(), ConstVal.Get(str)); 127return CreateConstant(type, ConstVal.Get(Activator.CreateInstance(type.AssociatedSystemType))); 152return CreateConstant(type, ConstVal.GetDefaultValue(type.ConstValKind)); 161CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_INT).getThisType(), ConstVal.Get(x)); 166CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_BOOL).getThisType(), ConstVal.Get(b)); 227public static ExprConstant CreateNull() => CreateConstant(NullType.Instance, default);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (2)
506optionalArgument = ExprFactory.CreateConstant(dateTimeType, ConstVal.Get(DateTime.FromBinary(cv.Int64Val))); 517optionalArgument = ExprFactory.CreateConstant(
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
662_exprDest = ExprFactory.CreateConstant(_typeDest, ConstVal.GetDefaultValue(_typeDest.ConstValKind));
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (2)
1732ExprBinOp pExprResult = ExprFactory.CreateBinop(ek, typeTmp, exprVal, ExprFactory.CreateConstant(typeOne, cv)); 1971return ExprFactory.CreateConstant(typeBool, ConstVal.Get(((ExprConstant)argConst).Val.Int32Val == 0));