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