44 references to Convert
Microsoft.CodeAnalysis.CSharp (44)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
127F.Convert(manager.System_Object, boundLocal),
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
559_F.Convert(currentAwaitCatchFrame.pendingCaughtException.Type, 673_F.Convert(
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
474: F.Convert(awaiterFieldType, F.Local(awaiterTemp)))); 506: F.Convert(awaiterTemp.Type, F.Field(F.This(), awaiterField))));
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (8)
176return _bound.Convert(ExpressionType, result); 760receiver = requiresInstanceReceiver ? nullObject : receiver.Type.IsReferenceType ? receiver : _bound.Convert(_objectType, receiver); 914return _bound.Convert(MemberInfoType, _bound.FieldInfo((FieldSymbol)symbol)); 918return _bound.Convert(MemberInfoType, _bound.FieldInfo(((EventSymbol)symbol).AssociatedField)); 929return _bound.Convert(MemberInfoType, _bound.FieldInfo((FieldSymbol)symbol)); 933return _bound.Convert(MemberInfoType, _bound.FieldInfo(((EventSymbol)symbol).AssociatedField)); 1063var args = _bound.Convert(_IEnumerableType.Construct(ExpressionType), Expressions(node.Arguments)); 1206_bound.Convert(_objectType, node),
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
482return ImmutableArray.Create(_factory.Convert(parameter.Type, value), index);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
792input = _factory.Convert(_factory.SpecialType(SpecialType.System_Int64), input); 798input = _factory.Convert(_factory.SpecialType(SpecialType.System_UInt64), input);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (6)
204input = _factory.Convert(inputType, input); 378_factory.Convert(operandType, rewrittenExpr), 379_factory.Convert(operandType, new BoundLiteral(syntax, ConstantValue.Null, objectType)), 424input = _factory.Convert(comparisonType, input); 425literal = _factory.Convert(comparisonType, literal); 491sideEffect = _factory.AssignmentExpression(output, _factory.Convert(baseType, input));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
450return _factory.Convert(collectionType, arrayOrList);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
635rewrittenOperand = _factory.Convert(method.ParameterTypesWithAnnotations[0].Type, rewrittenOperand); 658rewrittenOperand = _factory.Convert(implicitOperator.ParameterTypesWithAnnotations[0].Type, rewrittenOperand); 692rewrittenOperand = _factory.Convert(method.ParameterTypesWithAnnotations[0].Type, rewrittenOperand);
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
312_factory.Convert(addRemove.Parameters[0].Type, rewrittenReceiver), 313_factory.Convert(addRemove.Parameters[1].Type, rewrittenArgument));
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
186expression = _factory.Convert( 415rewrittenObjectCreation = _factory.Convert(node.Type, _factory.Call(null, createInstance, callGetTypeFromCLSID));
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
130? ConstructThrowSwitchExpressionExceptionHelperCall(_factory, _factory.Convert(objectType, savedInputExpression)) :
Lowering\SyntheticBoundNodeFactory.cs (2)
675return ObjectNotEqual(Convert(objectType, value, allowBoxingByRefLikeTypeParametersToObject: true), Null(objectType)); 1498arg = Convert(conversion.Method.Parameters[0].Type, arg);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
58return f.Return(f.Convert(method.ReturnType, itemFieldReference));
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (7)
488f.Convert( 535f.Convert( 572f.Convert( 608f.Convert(f.SpecialType(SpecialType.System_Object), fieldReference), 626f.Convert( 703f.Convert( 764f.Convert(fieldType, parameterReference));
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
68F.Convert(F.SpecialType(SpecialType.System_Object), F.Parameter(parameter)));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
126F.Convert(baseEquals.Parameters[0].Type, other));
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
63F.Call(F.This(), _typedRecordEquals, F.Convert(ContainingType, paramAccess)));