24 references to CodeGenerator
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder.ValueChecks.cs (1)
5768
return !((
CodeGenerator
.IsStackLocal(local, stackLocalsOpt) && local.RefKind == RefKind.None) ||
CodeGen\Optimizer.cs (5)
1210
if (
CodeGenerator
.IsRef(receiver) &&
1211
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiver) &&
1212
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(call.Arguments))
1265
RefKind argRefKind =
CodeGenerator
.GetArgumentRefKind(arguments, parameters, argRefKindsOpt, i);
1360
CodeGenerator
.FieldLoadMustUseRef(receiver)))
Compiler\MethodCompiler.cs (1)
1517
var
codeGen = new CodeGen.CodeGenerator(method, block, builder, moduleBuilder, diagnosticsForThisMethod, optimizations, emittingPdb);
Lowering\LocalRewriter\LocalRewriter_Call.cs (4)
787
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverTemp) &&
788
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp) &&
790
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(rewrittenArguments)))
989
Debug.Assert(
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
514
CodeGenerator
.IsTypeAllowedInBlobWrapper(elementType.EnumUnderlyingTypeOrSelf().SpecialType) &&
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
210
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverTemp) &&
211
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp))
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (6)
509
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverLocal) &&
510
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverLocal) &&
512
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(ImmutableArray.Create(makeOffsetInput))))
812
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverLocal) &&
813
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverLocal))
832
if (!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(argumentsBuilder.ToImmutableAndFree()))
Lowering\SpillSequenceSpiller.cs (3)
1039
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiver) &&
1040
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiver) &&
1041
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(node.Arguments))
Lowering\SyntheticBoundNodeFactory.cs (1)
1401
if (!method.ContainingType.IsValueType || !Microsoft.CodeAnalysis.CSharp.CodeGen.
CodeGenerator
.MayUseCallForStructMethod(method))