3 writes to _dynamicFactory
Microsoft.CodeAnalysis.CSharp (3)
Lowering\LocalRewriter\LocalRewriter.cs (3)
73_dynamicFactory = new LoweredDynamicOperationFactory(factory, containingMethodOrdinal); 440_dynamicFactory = new LoweredDynamicOperationFactory(_factory, _dynamicFactory.MethodOrdinal, localFunctionOrdinal); 449_dynamicFactory = oldDynamicFactory;
29 references to _dynamicFactory
Microsoft.CodeAnalysis.CSharp (29)
Lowering\LocalRewriter\LocalRewriter.cs (2)
421var oldDynamicFactory = _dynamicFactory; 440_dynamicFactory = new LoweredDynamicOperationFactory(_factory, _dynamicFactory.MethodOrdinal, localFunctionOrdinal);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (3)
59return _dynamicFactory.MakeDynamicSetMember(loweredReceiver, memberAccess.Name, loweredRight).ToExpression(); 109return _dynamicFactory.MakeDynamicSetMember( 153return _dynamicFactory.MakeDynamicSetIndex(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
236return _dynamicFactory.MakeDynamicBinaryOperator(operatorKind, loweredLeft, loweredRight, isCompoundAssignment, type).ToExpression(); 666var op = _dynamicFactory.MakeDynamicBinaryOperator(operatorKind, loweredLeft, loweredRight, isCompoundAssignment, type).ToExpression(); 677result = _dynamicFactory.MakeDynamicUnaryOperator(testOperator, op, boolean).ToExpression(); 730return _dynamicFactory.MakeDynamicUnaryOperator(negative ? UnaryOperatorKind.DynamicFalse : UnaryOperatorKind.DynamicTrue, loweredLeft, boolean).ToExpression();
Lowering\LocalRewriter\LocalRewriter_Call.cs (3)
83return _dynamicFactory.MakeDynamicInvocation(loweredExpression, loweredArguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, resultDiscarded).ToExpression(); 87return _dynamicFactory.MakeDynamicMemberInvocation( 1665return _dynamicFactory.MakeDynamicGetMember(loweredReceiver, node.Name, node.Indexed).ToExpression();
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
65var isEvent = _factory.StoreToTemp(_dynamicFactory.MakeDynamicIsEventTest(memberAccess.Name, memberAccess.Receiver).ToExpression(), out BoundAssignmentOperator isEventAssignment); 85var invokeEventAccessor = _dynamicFactory.MakeDynamicEventAccessorInvocation(
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
538return _dynamicFactory.MakeDynamicConversion(rewrittenOperand, explicitCastInCode || conversion.Kind == ConversionKind.ExplicitDynamic, conversion.IsArrayIndex, @checked, rewrittenType).ToExpression();
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
23var loweredReceiver = _dynamicFactory.MakeDynamicConversion(loweredArgument, isExplicit: false, isArrayIndex: false, isChecked: false, resultType: node.Type).ToExpression();
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (2)
29result = _dynamicFactory.MakeDynamicGetMember(loweredReceiver, indexedPropertyName, resultIndexed: true).ToExpression(); 60return _dynamicFactory.MakeDynamicGetIndex(
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
21var constructorInvocation = _dynamicFactory.MakeDynamicConstructorInvocation(node.Syntax, node.Type, loweredArguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt).ToExpression();
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (5)
126return _dynamicFactory.MakeDynamicMemberInvocation( 337var setMember = _dynamicFactory.MakeDynamicSetIndex( 350var getMember = _dynamicFactory.MakeDynamicGetIndex( 387var setMember = _dynamicFactory.MakeDynamicSetMember(rewrittenReceiver, initializerMember.MemberName, rewrittenRight); 394var getMember = _dynamicFactory.MakeDynamicGetMember(rewrittenReceiver, initializerMember.MemberName, resultIndexed: false);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
109actualCall = _dynamicFactory.MakeDynamicConversion(actualCall, isExplicit: false, isArrayIndex: false, isChecked: false, boolType).ToExpression();
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
555BoundExpression dynamicResult = _dynamicFactory.MakeDynamicBinaryOperator(single.Kind, left, right, isCompoundAssignment: false, _compilation.DynamicType).ToExpression();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
101return _dynamicFactory.MakeDynamicUnaryOperator(kind, loweredOperand, type).ToExpression(); 573return _dynamicFactory.MakeDynamicUnaryOperator(node.OperatorKind, rewrittenValueToIncrement, node.Type).ToExpression(); 870return _dynamicFactory.MakeDynamicGetMember(dynamicMemberAccess.Receiver, dynamicMemberAccess.Name, resultIndexed: false).ToExpression();