1 write to _factory
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
25
_factory
= factory;
95 references to _factory
Microsoft.CodeAnalysis.CSharp (95)
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (95)
79
_factory
.Syntax = loweredOperand.Syntax;
102
_factory
.Literal((int)binderFlags),
105
_factory
.Typeof(resultType,
_factory
.WellKnownType(WellKnownType.System_Type)),
108
_factory
.TypeofDynamicOperationContextType()
121
_factory
.Syntax = loweredOperand.Syntax;
135
_factory
.Literal((int)binderFlags),
138
_factory
.Literal((int)operatorKind.ToExpressionType()),
141
_factory
.TypeofDynamicOperationContextType(),
159
_factory
.Syntax = loweredLeft.Syntax;
178
_factory
.Literal((int)binderFlags),
181
_factory
.Literal((int)operatorKind.ToExpressionType(isCompoundAssignment)),
184
_factory
.TypeofDynamicOperationContextType(),
203
_factory
.Syntax = loweredReceiver.Syntax;
204
Debug.Assert(
_factory
.TopLevelMethod is { });
207
if (hasImplicitReceiver &&
_factory
.TopLevelMethod.RequiresInstanceReceiver)
216
resultType =
_factory
.SpecialType(SpecialType.System_Void);
227
loweredReceiver =
_factory
.Typeof(((BoundTypeExpression)loweredReceiver).Type,
_factory
.WellKnownType(WellKnownType.System_Type));
241
_factory
.Literal((int)binderFlags),
244
_factory
.Literal(name),
248
_factory
.Null(
_factory
.WellKnownArrayType(WellKnownType.System_Type)) :
249
_factory
.ArrayOrEmpty(
_factory
.WellKnownType(WellKnownType.System_Type),
_factory
.TypeOfs(typeArgumentsWithAnnotations,
_factory
.WellKnownType(WellKnownType.System_Type))),
252
_factory
.TypeofDynamicOperationContextType(),
266
_factory
.Syntax = loweredReceiver.Syntax;
277
_factory
.Literal((int)binderFlags),
280
_factory
.Literal(accessorName),
283
_factory
.Null(
_factory
.WellKnownArrayType(WellKnownType.System_Type)),
286
_factory
.TypeofDynamicOperationContextType(),
302
_factory
.Syntax = loweredReceiver.Syntax;
309
resultType =
_factory
.SpecialType(SpecialType.System_Void);
320
_factory
.Literal((int)binderFlags),
323
_factory
.TypeofDynamicOperationContextType(),
339
_factory
.Syntax = syntax;
341
var loweredReceiver =
_factory
.Typeof(type,
_factory
.WellKnownType(WellKnownType.System_Type));
347
_factory
.Literal(0),
350
_factory
.TypeofDynamicOperationContextType(),
364
_factory
.Syntax = loweredReceiver.Syntax;
379
_factory
.Literal((int)binderFlags),
382
_factory
.Literal(name),
385
_factory
.TypeofDynamicOperationContextType(),
401
_factory
.Syntax = loweredReceiver.Syntax;
420
_factory
.Literal((int)binderFlags),
423
_factory
.Literal(name),
426
_factory
.TypeofDynamicOperationContextType(),
441
_factory
.Syntax = loweredReceiver.Syntax;
449
_factory
.Literal((int)CSharpBinderFlags.None),
452
_factory
.TypeofDynamicOperationContextType(),
488
_factory
.Literal((int)binderFlags),
491
_factory
.TypeofDynamicOperationContextType(),
502
_factory
.Syntax = loweredReceiver.Syntax;
503
var resultType =
_factory
.SpecialType(SpecialType.System_Boolean);
507
_factory
.Literal((int)0),
510
_factory
.Literal(name),
513
_factory
.TypeofDynamicOperationContextType()
521
return
_factory
.WellKnownMethod(WellKnownMember.Microsoft_CSharp_RuntimeBinder_CSharpArgumentInfo__Create);
526
var binderFactory =
_factory
.WellKnownMember(factoryMethod);
532
return
_factory
.Call(null, (MethodSymbol)binderFactory, args.AsImmutableOrNull());
552
_factory
.CurrentFunction,
595
return
_factory
.ArrayOrEmpty(argumentInfoFactory.ContainingType, infos);
611
NamedTypeSymbol callSiteTypeGeneric =
_factory
.WellKnownType(WellKnownType.System_Runtime_CompilerServices_CallSite_T);
612
MethodSymbol callSiteFactoryGeneric =
_factory
.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_CallSite_T__Create);
613
FieldSymbol callSiteTargetFieldGeneric = (FieldSymbol)
_factory
.WellKnownMember(WellKnownMember.System_Runtime_CompilerServices_CallSite_T__Target);
627
_factory
.Diagnostics.Add(ErrorCode.ERR_DynamicRequiredTypesMissing, NoLocation.Singleton);
634
_currentDynamicCallSiteContainer = CreateCallSiteContainer(
_factory
, _methodOrdinal, _localFunctionOrdinal);
646
var callSiteFieldAccess =
_factory
.Field(null, callSiteField);
649
var nullCallSite =
_factory
.Null(callSiteField.Type);
651
var siteInitialization =
_factory
.Conditional(
652
_factory
.ObjectEqual(callSiteFieldAccess, nullCallSite),
653
_factory
.AssignmentExpression(callSiteFieldAccess,
_factory
.Call(null, callSiteFactoryMethod, binderConstruction)),
657
var siteInvocation =
_factory
.Call(
658
_factory
.Field(callSiteFieldAccess, callSiteTargetField),
662
return new LoweredDynamicOperation(
_factory
, siteInitialization, siteInvocation, resultType, temps);
680
loweredArguments =
_factory
.MakeTempsForDiscardArguments(loweredArguments, temporariesBuilder);
709
var callSiteType =
_factory
.Compilation.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_CallSite_T);
710
_factory
.Diagnostics.ReportUseSite(callSiteType,
_factory
.Syntax);
713
_factory
.AddField(containerDefinition, field);
728
var callSiteType =
_factory
.WellKnownType(WellKnownType.System_Runtime_CompilerServices_CallSite);
746
var delegateType =
_factory
.Compilation.GetWellKnownType(wkDelegateType);
749
_factory
.Diagnostics.AddDependencies(delegateType);
785
Debug.Assert(
_factory
.CompilationState.ModuleBuilderOpt is { });
786
int generation =
_factory
.CompilationState.ModuleBuilderOpt.CurrentGenerationOrdinal;
787
var synthesizedType =
_factory
.Compilation.AnonymousTypeManager.SynthesizeDelegate(parameterCount, byRefs, returnsVoid, generation);
870
return
_factory
.Call(null, argumentInfoFactory,
_factory
.Literal((int)flags),
_factory
.Literal(name));
898
var systemObjectType =
_factory
.SpecialType(SpecialType.System_Object);