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; 204Debug.Assert(_factory.TopLevelMethod is { }); 207if (hasImplicitReceiver && _factory.TopLevelMethod.RequiresInstanceReceiver) 216resultType = _factory.SpecialType(SpecialType.System_Void); 227loweredReceiver = _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; 309resultType = _factory.SpecialType(SpecialType.System_Void); 320_factory.Literal((int)binderFlags), 323_factory.TypeofDynamicOperationContextType(), 339_factory.Syntax = syntax; 341var 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; 503var resultType = _factory.SpecialType(SpecialType.System_Boolean); 507_factory.Literal((int)0), 510_factory.Literal(name), 513_factory.TypeofDynamicOperationContextType() 521return _factory.WellKnownMethod(WellKnownMember.Microsoft_CSharp_RuntimeBinder_CSharpArgumentInfo__Create); 526var binderFactory = _factory.WellKnownMember(factoryMethod); 532return _factory.Call(null, (MethodSymbol)binderFactory, args.AsImmutableOrNull()); 552_factory.CurrentFunction, 595return _factory.ArrayOrEmpty(argumentInfoFactory.ContainingType, infos); 611NamedTypeSymbol callSiteTypeGeneric = _factory.WellKnownType(WellKnownType.System_Runtime_CompilerServices_CallSite_T); 612MethodSymbol callSiteFactoryGeneric = _factory.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_CallSite_T__Create); 613FieldSymbol 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); 646var callSiteFieldAccess = _factory.Field(null, callSiteField); 649var nullCallSite = _factory.Null(callSiteField.Type); 651var siteInitialization = _factory.Conditional( 652_factory.ObjectEqual(callSiteFieldAccess, nullCallSite), 653_factory.AssignmentExpression(callSiteFieldAccess, _factory.Call(null, callSiteFactoryMethod, binderConstruction)), 657var siteInvocation = _factory.Call( 658_factory.Field(callSiteFieldAccess, callSiteTargetField), 662return new LoweredDynamicOperation(_factory, siteInitialization, siteInvocation, resultType, temps); 680loweredArguments = _factory.MakeTempsForDiscardArguments(loweredArguments, temporariesBuilder); 709var callSiteType = _factory.Compilation.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_CallSite_T); 710_factory.Diagnostics.ReportUseSite(callSiteType, _factory.Syntax); 713_factory.AddField(containerDefinition, field); 728var callSiteType = _factory.WellKnownType(WellKnownType.System_Runtime_CompilerServices_CallSite); 746var delegateType = _factory.Compilation.GetWellKnownType(wkDelegateType); 749_factory.Diagnostics.AddDependencies(delegateType); 785Debug.Assert(_factory.CompilationState.ModuleBuilderOpt is { }); 786int generation = _factory.CompilationState.ModuleBuilderOpt.CurrentGenerationOrdinal; 787var synthesizedType = _factory.Compilation.AnonymousTypeManager.SynthesizeDelegate(parameterCount, byRefs, returnsVoid, generation); 870return _factory.Call(null, argumentInfoFactory, _factory.Literal((int)flags), _factory.Literal(name)); 898var systemObjectType = _factory.SpecialType(SpecialType.System_Object);