1 write to _factory
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
31
_factory
= factory;
13 references to _factory
Microsoft.CodeAnalysis.CSharp (13)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (13)
48
var oldSyntax =
_factory
.Syntax;
49
_factory
.Syntax = boundDelegateCreation.Syntax;
52
var cacheField = cacheContainer.GetOrAddCacheField(
_factory
, boundDelegateCreation);
54
var boundCacheField =
_factory
.Field(receiver: null, cacheField);
55
var rewrittenNode =
_factory
.Coalesce(boundCacheField,
_factory
.AssignmentExpression(boundCacheField, boundDelegateCreation));
57
_factory
.Syntax = oldSyntax;
64
Debug.Assert(
_factory
.ModuleBuilderOpt is { });
65
Debug.Assert(
_factory
.CurrentFunction is { });
67
var generation =
_factory
.ModuleBuilderOpt.CurrentGenerationOrdinal;
93
if (!TryGetOwnerFunction(
_factory
.CurrentFunction, boundDelegateCreation, out var ownerFunction))
95
var typeCompilationState =
_factory
.CompilationState;
119
_factory
.AddNestedType(container);