138 references to VisitExpression
Microsoft.CodeAnalysis.CSharp (138)
Lowering\LocalRewriter\LocalRewriter.cs (3)
683var operand = this.VisitExpression(node.Operand); 851VisitExpression(node.Expression), 852VisitExpression(node.Indices[0])));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
1126BoundStatement conditionalGoto = _factory.ConditionalGoto(_localRewriter.VisitExpression(whenExpression), whenTrueLabel, jumpIfTrue: true); 1181BoundExpression left = _localRewriter.VisitExpression(binding.VariableAccess);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (2)
18BoundExpression rewrittenOperand = VisitExpression(node.Operand); 87BoundExpression result = VisitExpression(operandConversion);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (4)
23var loweredRight = VisitExpression(node.Right); 58var loweredReceiver = VisitExpression(memberAccess.Receiver); 66var loweredReceiver = VisitExpression(indexerAccess.Receiver); 80loweredLeft = VisitExpression(left);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
75BoundExpression loweredLeft = VisitExpression(node.Left); 76BoundExpression loweredRight = VisitExpression(node.Right); 151BoundExpression loweredRight = VisitExpression(original.Right);
Lowering\LocalRewriter\LocalRewriter_Call.cs (7)
62loweredReceiver = VisitExpression(methodGroup.ReceiverOpt); 76loweredReceiver = VisitExpression(memberAccess.Receiver); 82var loweredExpression = VisitExpression(node.Expression); 342BoundExpression? rewrittenReceiver = VisitExpression(node.ReceiverOpt); 356BoundExpression? rewrittenReceiver = VisitExpression(node.ReceiverOpt); 759: VisitExpression(argument)); 1664var loweredReceiver = VisitExpression(node.Receiver);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (13)
183var rewrittenSpreadExpression = VisitExpression(singleSpread.Expression); 330var rewrittenReceiver = VisitExpression(node.CollectionCreation); 350VisitExpression(spreadElement.Expression), 433SynthesizedReadOnlyListKind.SingleElement => this.VisitExpression((BoundExpression)elements.Single()), 475? VisitExpression(spreadExpression) 496var result = VisitExpression(node.CollectionBuilderInvocationConversion); 549var element = VisitExpression((BoundExpression)elements[0]); 577var element = VisitExpression((BoundExpression)elements[i]); 660var rewrittenSpreadExpression = VisitExpression(spreadExpression); 670var rewrittenSpreadExpression = CallAsSpanMethod(VisitExpression(spreadExpression), asSpanMethod); 1164return VisitExpression(expression); 1209var rewrittenValue = VisitExpression(((BoundExpressionStatement)iteratorBody).Expression); 1244var lengthAccess = VisitExpression(spreadElement.LengthOrCount);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (12)
25BoundExpression loweredRight = VisitExpression(node.Right); 138opLHS = VisitExpression(node.LeftConversion); 152opFinal = VisitExpression(node.FinalConversion); 191BoundExpression rewrittenReceiver = VisitExpression(receiverOpt); 235var rewrittenReceiver = VisitExpression(memberAccess.Receiver); 249BoundExpression transformedReceiver = VisitExpression(receiverOpt); 481BoundExpression rewrittenReceiver = VisitExpression(receiver); 508var temp = _factory.StoreToTemp(VisitExpression(indexerAccess.Receiver), out assignmentToTemp); 526var temp = _factory.StoreToTemp(VisitExpression(arguments[i]), out assignmentToTemp, indexerAccess.ArgumentRefKindsOpt.RefKinds(i) != RefKind.None ? RefKind.Ref : RefKind.None); 669var loweredArray = VisitExpression(arrayAccess.Expression); 693var result = VisitExpression(originalLHS); 751BoundExpression rewrittenVariable = VisitExpression(originalLHS);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (2)
43var loweredReceiver = this.VisitExpression(node.Receiver); 108loweredAccessExpression = this.VisitExpression(node.AccessExpression);
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (3)
23var rewrittenCondition = VisitExpression(node.Condition); 24var rewrittenConsequence = VisitExpression(node.Consequence); 25var rewrittenAlternative = VisitExpression(node.Alternative);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
48var objectCreation = VisitExpression(node.Operand); 75var rewrittenOperand = VisitExpression(node.Operand);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (5)
68VisitExpression(conditional.Condition), 103returnValue = VisitExpression(returnValue); 322return AccessTupleFields(VisitExpression(right), temps, effects.deconstructions); 400effects.Add(VisitExpression(deconstruction.Invocation)); 423var loweredArg = VisitExpression(arg);
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (2)
20var loweredArgument = VisitExpression(node.Argument); 35var receiver = (!method.RequiresInstanceReceiver && !node.IsExtensionMethod && !method.IsAbstract && !method.IsVirtual) ? _factory.Type(method.ContainingType) : VisitExpression(mg.ReceiverOpt)!;
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (1)
19var rewrittenCondition = VisitExpression(node.Condition);
Lowering\LocalRewriter\LocalRewriter_Event.cs (4)
21BoundExpression? rewrittenReceiverOpt = VisitExpression(node.ReceiverOpt); 22BoundExpression rewrittenArgument = VisitExpression(node.Argument); 199BoundExpression? rewrittenReceiverOpt = VisitExpression(left.ReceiverOpt); 215BoundExpression? rewrittenReceiver = VisitExpression(node.ReceiverOpt);
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (1)
78return VisitExpression(expression);
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
13BoundExpression? rewrittenReceiver = VisitExpression(node.ReceiverOpt);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (4)
240BoundExpression initializerExpr = VisitExpression(fixedInitializer.Expression); 307BoundExpression initializerExpr = VisitExpression(fixedInitializer.Expression); 442BoundExpression initializerExpr = VisitExpression(fixedInitializer.Expression); 511BoundExpression initializerExpr = VisitExpression(fixedInitializer.Expression);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (5)
151BoundExpression rewrittenExpression = VisitExpression(convertedCollection.Operand); 615BoundExpression rewrittenExpression = VisitExpression(collectionExpression); 829BoundExpression loweredAssignment = VisitExpression(assignment); 910BoundExpression rewrittenExpression = VisitExpression(collectionExpression); 1070BoundExpression rewrittenExpression = VisitExpression(collectionExpression);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
20var rewrittenCondition = VisitExpression(node.Condition);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
16var rewrittenExpression = VisitExpression(node.InvokedExpression);
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (1)
23var rewrittenCondition = VisitExpression(node.Condition);
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
20BoundExpression operand = VisitExpression(node.Operand);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (16)
41var loweredReceiver = VisitExpression(node.Receiver); 84BoundExpression? rewrittenReceiver = VisitExpression(node.ReceiverOpt); 206var rewrittenReceiver = VisitExpression(node.Expression); 223result = getElementRef(node, rewrittenReceiver, index: VisitExpression(node.Argument), getItemOrSliceHelper, length); 490var receiver = VisitExpression(node.Receiver); 536BoundExpression lengthAccess = VisitExpression(node.LengthOrCountAccess); 554integerArgument = MakePatternIndexOffsetExpression(makeOffsetInput, VisitExpression(node.LengthOrCountAccess), strategy); 720return VisitExpression(hatExpression.Operand); 727return VisitExpression(operand); 745return VisitExpression(index); 751return VisitExpression(unloweredExpr); 789var receiver = VisitExpression(node.Receiver); 947lengthAccess = VisitExpression(node.LengthOrCountAccess); 979DeconstructRange(rewrittenRangeArg, VisitExpression(node.LengthOrCountAccess), localsBuilder, sideEffectsBuilder, out startExpr, out rangeSizeExpr); 987var rewrittenIndexerAccess = VisitExpression(sliceCall); 1113rewrittenRangeArg = VisitExpression(rangeArg);
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
18BoundExpression rewrittenOperand = VisitExpression(node.Operand);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (3)
113var inputExpression = _localRewriter.VisitExpression(node.Expression); 224BoundExpression loweredInput = _localRewriter.VisitExpression(isPatternExpression.Expression); 287BoundExpression left = _localRewriter.VisitExpression(binding.VariableAccess);
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
16return RewriteLocalDeclaration(node, node.Syntax, node.LocalSymbol, VisitExpression(node.InitializerOpt), node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
26BoundExpression rewrittenArgument = VisitExpression(node.Argument);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
26BoundExpression loweredRight = VisitExpression(node.RightOperand);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
15BoundExpression rewrittenLeft = VisitExpression(node.LeftOperand); 16BoundExpression rewrittenRight = VisitExpression(node.RightOperand);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
160BoundExpression rewrittenReceiver = VisitExpression(receiver); 212var rewrittenRight = VisitExpression(assignment.Right);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (12)
336var rewrittenRight = VisitExpression(right); 366var rewrittenRight = VisitExpression(right); 386var rewrittenRight = VisitExpression(right); 438var rewrittenRight = VisitExpression(right); 450var rewrittenIndex = VisitExpression(pointerAccess.Index); 471var rewrittenRight = VisitExpression(right); 505var rewrittenRight = VisitExpression(right); 548result.Add(VisitExpression(element)); 553result.Add(VisitExpression(argument)); 559result.Add(VisitExpression(implicitIndexerAccess.Argument)); 565result.Add(VisitExpression(index)); 570result.Add(VisitExpression(pointerElementAccess.Index));
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
76var loweredSwitchGoverningExpression = _localRewriter.VisitExpression(node.Expression);
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (3)
15BoundExpression rewrittenIndex = VisitExpression(node.Index); 24var loweredFieldReceiver = VisitExpression(fieldAccess.ReceiverOpt); 29return VisitExpression(receiver);
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
22var rewrittenReceiverOpt = VisitExpression(node.ReceiverOpt);
Lowering\LocalRewriter\LocalRewriter_Query.cs (2)
15return VisitExpression(node.Value); 20return VisitExpression(node.Value);
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
55operand = VisitExpression(operand);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
27var rewrittenCount = VisitExpression(stackAllocNode.Count);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (3)
21return VisitExpression(interpolatedString.InterpolationData.GetValueOrDefault().Construction); 200return VisitExpression(result); 215return VisitExpression(node.InterpolationData.GetValueOrDefault().Construction);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (2)
51var loweredSwitchGoverningExpression = _localRewriter.VisitExpression(node.Expression); 97var loweredValue = _localRewriter.VisitExpression(arm.Value);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
189return VisitExpression(expr);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
58BoundExpression loweredOperand = VisitExpression(node.Operand); 625replacement = VisitExpression(conversion);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
127BoundExpression rewrittenExpression = VisitExpression(node.ExpressionOpt);
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
20var rewrittenCondition = VisitExpression(node.Condition);