93 references to Local
Microsoft.CodeAnalysis.VisualBasic (93)
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (9)
89F.Local(i, False)) 96F.Assignment(F.Local(hashCode, True), New BoundLiteral(Me.Syntax, ConstantValue.Create(CUInt(2166136261)), hashCode.Type)), 102F.Assignment(F.Local(i, True), New BoundLiteral(Me.Syntax, ConstantValue.Create(0), i.Type)), 106F.Local(hashCode, True), 110F.Local(hashCode, False)), 113F.Local(i, True), 115F.Local(i, False), 120F.Local(i, False), 123F.Return(F.Local(hashCode, False)))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (14)
41PlaceholderReplacementMap.Add(awaiterInstancePlaceholder, Me.F.Local(awaiterTemp, True)) 91Me.F.AssignmentExpression(Me.F.Local(awaiterTemp, True), Me.F.Null(awaiterTemp.Type)) 99Me.F.AssignmentExpression(Me.F.Local(resultTemp, True), rewrittenGetResult), 101Me.F.Local(resultTemp, False)) 130Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(state)))) 140DirectCast(Me.F.Local(awaiterTemp, False), BoundExpression), 141Me.F.Convert(awaiterFieldType, Me.F.Local(awaiterTemp, False))))) 165Dim awaiterTempAsRValue As BoundLocal = Me.F.Local(awaiterTemp, False) 166Dim criticalNotifyCompletionAsLValue As BoundLocal = Me.F.Local(asCriticalNotifyCompletion, True) 167Dim notifyCompletionAsLValue As BoundLocal = Me.F.Local(asNotifyCompletion, True) 207condition:=Me.F.Not(Me.F.ReferenceIsNothing(Me.F.Local(asCriticalNotifyCompletion, False))), 234{Me.F.Local(awaiterTemp, True), Me.F.ReferenceOrByrefMe()}))) 256Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(StateMachineState.NotStartedOrRunningState)))) 263Me.F.Local(awaiterTemp, True),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (10)
188Me.F.Local(tempLocal, False)) 443sequenceValueOpt = Me.F.Local(tempLocal, False) 462Return RewriteSpillSequenceIntoBlock(spill, False, Me.F.Assignment(Me.F.Local(temp, True), spill.ValueOpt)) 464Return Me.F.Assignment(Me.F.Local(temp, True), expression) 470Return Me.F.Assignment(Me.F.Local(temp, True), expression) 581nullCheckTarget = Me.F.AssignmentExpression(Me.F.Local(receiverLocal, isLValue:=True), receiver.MakeRValue()) 582capturedReceiver = Me.F.Local(receiverLocal, isLValue:=True) 654Return builder.BuildSequenceAndFree(Me.F, expression:=Me.F.Local(tempLocal, False)) 846condition:=Me.F.ReferenceIsNothing(Me.F.Local(tempLocal, False)), 850Me.F.Local(tempLocal, False))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Statements.vb (2)
36Me.F.Assignment(Me.F.Local(Me._exprRetValue, True), spill.ValueOpt)), 41Me.F.Local(Me._exprRetValue, True), expression),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (4)
159Me.F.Local(Me.CachedState, True), 186Me.F.Local(exceptionLocal, False))), 196Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(StateMachineState.FinishedState))) 213{Me.F.Local(Me._exprRetValue, False)}, Array.Empty(Of BoundExpression)()))))
Lowering\AsyncRewriter\AsyncRewriter.vb (6)
145Me.F.Local(stateMachineLocal, True), 151Me.F.Local(stateMachineLocal, True), 213Me.F.Local(stateMachineVariable, True), 223Dim builderFieldAsLValue As BoundExpression = Me.F.Field(Me.F.Local(stateMachineVariable, True), constructedBuilderField, True) 241Me.F.Local(stateMachineVariable, True)))) 488Me.F.Local(stateMachineVariable, True),
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
329Dim parameterReference = _factory.Local(param, False) 330Dim parameterReferenceLValue = _factory.Local(param, True)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
76Dim parameterReference As BoundLocal = Me._factory.Local(paramLocalSymbol, True)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (4)
223methodBodyFactory.Local(methodPayload, isLValue:=True), 254_methodBodyFactory.Local(_methodPayload, isLValue:=True), 286_methodBodyFactory.Local(_methodPayload, False), 470statementFactory.Local(_methodPayload, isLValue:=False),
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (7)
82F.Assignment(Me.F.Local(Me.CachedState, True), F.Field(F.Me, Me.StateField, False)), 86F.Assignment(F.Field(F.Me, Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(StateMachineState.NotStartedOrRunningState))), 130F.Assignment(F.Local(Me._methodValue, True), F.Literal(True)), 132F.Return(Me.F.Local(Me._methodValue, False)) 152Me.F.Assignment(Me.F.Local(Me._methodValue, True), result), 201F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.CachedState, True), F.Literal(stateNumber))), 204F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.CachedState, True), F.Literal(StateMachineState.NotStartedOrRunningState)))
Lowering\IteratorRewriter\IteratorRewriter.vb (8)
223F.Assignment(F.Local(resultVariable, True), F.Me), 229F.Assignment(F.Local(resultVariable, True), F.[New](StateMachineType.Constructor, F.Literal(0))) 241F.Field(F.Local(resultVariable, True), proxy.AsMember(StateMachineType), True), 253F.Field(F.Local(resultVariable, True), proxy.AsMember(StateMachineType), True), 258bodyBuilder.Add(F.Return(F.Local(resultVariable, False))) 320Return F.Return(F.Local(stateMachineVariable, False)) 329F.Local(stateMachineLocal, True), 380Me.F.Local(stateMachineVariable, True),
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (3)
68assignment = factory.AssignmentExpression(factory.Local(temp, isLValue:=True), rewrittenReceiver.MakeRValue()) 69first = factory.Local(temp, isLValue:=True) 70placeholderReplacement = factory.Local(temp, isLValue:=True)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (3)
338Dim checkIfNothing = F.ReferenceIsNothing(F.Local(savedOriginalValue, False)) 340Dim convertedValue = New BoundDelegateCreationExpression(node.Syntax, F.Local(savedOriginalValue, False), 348F.AssignmentExpression(F.Local(savedOriginalValue, True), VisitExpression(node.Operand)),
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (14)
192nodeFactory.Local(_unstructuredExceptionHandling.ResumeTargetTemporary, isLValue:=False), 213statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(_unstructuredExceptionHandling.ResumeTargetTemporary, isLValue:=True), 216nodeFactory.Local(_unstructuredExceptionHandling.CurrentStatementTemporary, isLValue:=False))).ToStatement()) 238nodeFactory.Local(_unstructuredExceptionHandling.ActiveHandlerTemporary, isLValue:=False), 240nodeFactory.Local(_unstructuredExceptionHandling.ActiveHandlerTemporary, isLValue:=False), 243DirectCast(nodeFactory.Local(_unstructuredExceptionHandling.ActiveHandlerTemporary, isLValue:=False), BoundExpression)), 267nodeFactory.Local(_unstructuredExceptionHandling.ActiveHandlerTemporary, isLValue:=False), 268nodeFactory.Local(_unstructuredExceptionHandling.ResumeTargetTemporary, isLValue:=False), 299nodeFactory.Local(_unstructuredExceptionHandling.ResumeTargetTemporary, isLValue:=False), 348statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(_unstructuredExceptionHandling.ResumeTargetTemporary, isLValue:=True), 370statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(_unstructuredExceptionHandling.ActiveHandlerTemporary, isLValue:=True), 409nodeFactory.Local(_unstructuredExceptionHandling.ResumeTargetTemporary, isLValue:=False), 422statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(_unstructuredExceptionHandling.ResumeTargetTemporary, isLValue:=True), 463statements.Add(nodeFactory.AssignmentExpression(nodeFactory.Local(_unstructuredExceptionHandling.CurrentStatementTemporary, isLValue:=True),
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (4)
206Dim result = F.Select(F.Local(CachedState, isLValue:=False), sections) 225Return _resumableStateAllocator.GenerateThrowMissingStateDispatch(F, F.Local(CachedState, isLValue:=False), EncMissingStateMessage) 363F.AssignmentExpression(F.Local(Me.CachedState, True), F.Literal(StateMachineState.NotStartedOrRunningState))), 390Me.F.Local(Me.CachedState, False),
Lowering\SyntheticBoundNodeFactory.vb (2)
306Dim boundNode = New BoundReferenceAssignment(_syntax, Local(byRefLocal, isLValue:=True), lValue, isLValue:=True, type:=lValue.Type) 1070Return New BoundCatchBlock(Syntax, local, Me.Local(local, False), Nothing, Nothing, block,