33 references to CodeGenerator
Microsoft.CodeAnalysis.CSharp (33)
CodeGen\CodeGenerator_HasHome.cs (1)
94return !((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 (9)
288&& !CodeGenerator.HasHome( 290thisRefKind == RefKind.Ref ? CodeGenerator.AddressKind.Writeable : CodeGenerator.AddressKind.ReadOnlyStrict, 704CodeGenerator.HasHome(rewrittenReceiver, 705CodeGenerator.AddressKind.Constrained, 786CodeGenerator.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverTemp) && 787!CodeGenerator.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp) && 789!CodeGenerator.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(rewrittenArguments))) 988Debug.Assert(CodeGenerator.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
529CodeGenerator.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\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
550var hasHome = CodeGenerator.HasHome(loweredReceiver, 551CodeGenerator.AddressKind.Writeable,
Lowering\SpillSequenceSpiller.cs (3)
1039CodeGenerator.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiver) && 1040!CodeGenerator.ReceiverIsKnownToReferToTempIfReferenceType(receiver) && 1041!CodeGenerator.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(node.Arguments))
Lowering\SyntheticBoundNodeFactory.cs (3)
1401if (!method.ContainingType.IsValueType || !Microsoft.CodeAnalysis.CSharp.CodeGen.CodeGenerator.MayUseCallForStructMethod(method)) 1655if (!CodeGenerator.HasHome(argument, 1656CodeGenerator.AddressKind.ReadOnly,