20 references to Convert
Microsoft.CodeAnalysis.CSharp (20)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
261arguments[i] = F.Convert(manager.System_Object,
Compiler\MethodBodySynthesizer.Lowered.cs (2)
97F.Convert(hashCode.Type, 184F.Convert(hashCode.Type,
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
581F.Convert(notifyCompletionTemp.Type, F.Local(awaiterTemp), Conversion.ExplicitReference)),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
897var convertedValue = Visit(_bound.Convert(toType, _bound.Parameter(lambdaParameter), conversion));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
227evaluated = _factory.Convert(type, input, conversion);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (8)
2370: _factory.Convert(_factory.SpecialType(destinationType), numericOperand, Conversion.IntegerToPointer); 2387numericOperand = _factory.Convert(nativeIntType, numericOperand, Conversion.IntegerToPointer, isChecked); 2399numericOperand = _factory.Convert(longType, numericOperand, Conversion.ExplicitNumeric, isChecked); 2400sizeOfExpression = _factory.Convert(longType, sizeOfExpression, Conversion.ExplicitNumeric, isChecked); 2412sizeOfExpression = _factory.Convert(longType, sizeOfExpression, Conversion.ExplicitNumeric, isChecked); 2424sizeOfExpression = _factory.Convert(ulongType, sizeOfExpression, Conversion.ExplicitNumeric, isChecked); 2443: _factory.Convert(convertedMultiplicationResultType, multiplication, Conversion.IntegerToPointer); // NOTE: for some reason, dev10 doesn't check this conversion. 2462return _factory.Convert(
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
463var addr = factory.Convert(
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (3)
134return _factory.Convert(uintPtrType, _factory.Literal((uint)folded), Conversion.IntegerToPointer); 139BoundExpression convertedCount = _factory.Convert(uintType, countExpression, Conversion.ExplicitNumeric); 140convertedCount = _factory.Convert(uintPtrType, convertedCount, Conversion.IntegerToPointer);
Lowering\SyntheticBoundNodeFactory.cs (2)
1489return Convert(type, arg, c); 1776rewrittenExpr = Convert(objectType, rewrittenExpr, Conversion.Boxing);