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