155 references to BoundLocal
Microsoft.CodeAnalysis.VisualBasic (155)
Analysis\FlowAnalysis\AbstractFlowPass.vb (5)
721Dim local = DirectCast(node, BoundLocal) 802VisitLocalInReadWriteContext(DirectCast(node, BoundLocal), rwContext) 986Return DirectCast(node, BoundLocal).Type.IsValueType 1032Protected Overridable Sub VisitLocalInReadWriteContext(node As BoundLocal, rwContext As ReadWriteContext) 1049Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode
Analysis\FlowAnalysis\DataFlowPass.vb (11)
317Return DirectCast(node, BoundLocal).LocalSymbol 427Dim local As LocalSymbol = DirectCast(node, BoundLocal).LocalSymbol 998Dim symbol As LocalSymbol = DirectCast(node, BoundLocal).LocalSymbol 1024Dim local As LocalSymbol = DirectCast(node, BoundLocal).LocalSymbol 1122Return GetUnassignedSymbolFirstLocation(DirectCast(receiver, BoundLocal).LocalSymbol, Nothing) 1361Dim local = DirectCast(node, BoundLocal) 1576Protected Overrides Sub VisitLocalInReadWriteContext(node As BoundLocal, rwContext As ReadWriteContext) 1581Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 1808DirectCast(left, BoundLocal).LocalSymbol, node.Right) 1956CheckAssigned(DirectCast(expr, BoundLocal).LocalSymbol, node) 1994Dim functionLocal = TryCast(node.ExpressionOpt, BoundLocal)
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (1)
118Dim local = DirectCast(node, BoundLocal)
Analysis\FlowAnalysis\ReadWriteWalker.vb (1)
135If _region.Contains(receiverSyntax.Span) Then readOrWritten.Add(CType(receiver, BoundLocal).LocalSymbol)
Analysis\ForLoopVerification.vb (1)
140Return DirectCast(expression, BoundLocal).LocalSymbol
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
267If arg0.Kind = BoundKind.Local AndAlso DirectCast(arg0, BoundLocal).LocalSymbol Is local Then
Binding\Binder_Expressions.vb (1)
1826Return DirectCast(node, BoundLocal).LocalSymbol.IsReadOnly
Binding\Binder_Lambda.vb (1)
374Dim local As LocalSymbol = DirectCast(node.ExpressionOpt, BoundLocal).LocalSymbol
Binding\Binder_Statements.vb (3)
1746diagnostics As BindingDiagnosticBag) As BoundLocal 4798Dim localAccess As BoundLocal = BindCatchVariableDeclaration(name, asClauseOpt, diagnostics) 4824exprKind = BoundKind.Local AndAlso Not DirectCast(exceptionSource, BoundLocal).LocalSymbol.IsStatic) Then
Binding\Binder_Utils.vb (1)
1303Dim local = DirectCast(boundExpression, BoundLocal).LocalSymbol
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (4)
70Dim returnLocal As BoundLocal 106Dim handlerlocalAccesses As ArrayBuilder(Of BoundLocal) = Nothing 168handlerlocalAccesses = ArrayBuilder(Of BoundLocal).GetInstance 198Dim withEventsLocalAccess As BoundLocal = Nothing
BoundTree\BoundLocal.vb (1)
31Public Shadows Function MakeRValue() As BoundLocal
BoundTree\BoundTreeVisitor.vb (1)
98Return VisitLocal(CType(node, BoundLocal), arg)
CodeGen\EmitAddress.vb (7)
55Dim boundLocal = DirectCast(expression, BoundLocal) 170Dim referencedLocal As BoundLocal = DigForLocal(sequence.ValueOpt) 191Private Function DigForLocal(value As BoundExpression) As BoundLocal 194Dim local = DirectCast(value, BoundLocal) 238Dim local = DirectCast(expression, BoundLocal).LocalSymbol 309Return AllowedToTakeRef(DirectCast(expression, BoundLocal), addressKind) 337Private Function AllowedToTakeRef(boundLocal As BoundLocal, addressKind As AddressKind) As Boolean
CodeGen\EmitExpression.vb (10)
111EmitLocalLoad(DirectCast(expression, BoundLocal), used) 431Private Sub EmitLocalLoad(local As BoundLocal, used As Boolean) 772Return DirectCast(receiver, BoundLocal).LocalSymbol.IsByRef 1543Dim local = DirectCast(expr, BoundLocal) 1696If target.Kind = BoundKind.Local AndAlso IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol) Then 1702Debug.Assert(target.Kind <> BoundKind.Local OrElse Not IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol)) 1877Return Not DirectCast(left, BoundLocal).LocalSymbol.IsByRef 1893Dim boundLocal = DirectCast(assignmentTarget, BoundLocal) 2004Dim boundLocal As BoundLocal = capture.ByRefLocal 2025Dim boundLocal = DirectCast(expression, BoundLocal)
CodeGen\EmitStatement.vb (7)
330Debug.Assert(Not DirectCast(exceptionSource, BoundLocal).LocalSymbol.IsByRef) 331_builder.EmitLocalStore(GetLocal(DirectCast(exceptionSource, BoundLocal))) 1054If selectExpression.Kind = BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then 1055_builder.EmitIntegerSwitchJumpTable(caseLabels, fallThroughLabel, GetLocal(DirectCast(selectExpression, BoundLocal)), keyTypeCode:=exprType.GetEnumUnderlyingTypeOrSelf.PrimitiveTypeCode) 1068If selectExpression.Kind = BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then 1069EmitStringSwitchJumpTable(caseLabels, fallThroughLabel, GetLocal(DirectCast(selectExpression, BoundLocal)), selectExpression.Syntax) 1372Private Function GetLocal(localExpression As BoundLocal) As LocalDefinition
CodeGen\Optimizer\StackScheduler.Analyzer.vb (7)
50Private _assignmentLocal As BoundLocal = Nothing 486Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 518Dim left = DirectCast(VisitExpression(node.ByRefLocal, ExprContext.AssignmentTarget), BoundLocal) 627Return DirectCast(node, BoundLocal).LocalSymbol.IsByRef 1021Dim local = DirectCast(expressionStatement.Expression, BoundLocal).LocalSymbol 1068Dim resumeTargetTemporary = DirectCast(Visit(node.ResumeTargetTemporary), BoundLocal) 1261DirectCast(top.expression, BoundLocal).LocalSymbol = local
CodeGen\Optimizer\StackScheduler.Rewriter.vb (3)
114Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 139Dim left = DirectCast(node.ByRefLocal, BoundLocal) 177Dim left = TryCast(node.Left, BoundLocal)
Compilation\SemanticModel.vb (1)
965type = DirectCast(lowestExpr, BoundLocal).LocalSymbol.Type
Generated\BoundNodes.xml.Generated.vb (31)
1820Public Sub New(syntax As SyntaxNode, byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False) 1837Private ReadOnly _ByRefLocal As BoundLocal 1838Public ReadOnly Property ByRefLocal As BoundLocal 1863Public Function Update(byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol) As BoundReferenceAssignment 6212Public Function Update(localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol) As BoundLocal 8507Public Sub New(syntax As SyntaxNode, activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol, Optional hasErrors As Boolean = False) 8524Private ReadOnly _ActiveHandlerLocal As BoundLocal 8525Public ReadOnly Property ActiveHandlerLocal As BoundLocal 8531Private ReadOnly _ResumeTargetLocal As BoundLocal 8532Public ReadOnly Property ResumeTargetLocal As BoundLocal 8543Public Function Update(activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol) As BoundUnstructuredExceptionHandlingCatchFilter 8604Public Sub New(syntax As SyntaxNode, resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement), Optional hasErrors As Boolean = False) 8624Private ReadOnly _ResumeTargetTemporary As BoundLocal 8625Public ReadOnly Property ResumeTargetTemporary As BoundLocal 8657Public Function Update(resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement)) As BoundUnstructuredExceptionResumeSwitch 9571Return VisitLocal(CType(node, BoundLocal), arg) 10155Public Overridable Function VisitLocal(node As BoundLocal, arg As A) As R 10858Public Overridable Function VisitLocal(node As BoundLocal) As BoundNode 11717Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 12249Dim byRefLocal As BoundLocal = DirectCast(Me.Visit(node.ByRefLocal), BoundLocal) 12752Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 13031Dim activeHandlerLocal As BoundLocal = DirectCast(Me.Visit(node.ActiveHandlerLocal), BoundLocal) 13032Dim resumeTargetLocal As BoundLocal = DirectCast(Me.Visit(node.ResumeTargetLocal), BoundLocal) 13044Dim resumeTargetTemporary As BoundLocal = DirectCast(Me.Visit(node.ResumeTargetTemporary), BoundLocal) 14097Public Overrides Function VisitLocal(node As BoundLocal, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (3)
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)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (3)
322Dim origByRefLocal As BoundLocal = node.ByRefLocal 328Dim rewrittenLeft As BoundLocal = DirectCast(Me.VisitExpression(origByRefLocal), BoundLocal)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
368Debug.Assert(Not DirectCast(expr, BoundLocal).LocalSymbol.IsByRef)
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
416Return CaptureLocalSymbol(typeMap, DirectCast(expression, BoundLocal).LocalSymbol, initializers)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
76Dim parameterReference As BoundLocal = Me._factory.Local(paramLocalSymbol, True)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (2)
66Private Shared Function MakeLocalRead(syntax As SyntaxNode, localSym As LocalSymbol) As BoundLocal 72Private Shared Function MakeLocalWrite(syntax As SyntaxNode, localSym As LocalSymbol) As BoundLocal
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
486Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
90Dim boundTemp As BoundLocal = Nothing
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (1)
25Return DirectCast(receiver, BoundLocal).LocalSymbol.IsByRef
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
247Not If(TryCast(rewrittenRight, BoundLocal)?.LocalSymbol.IsRef, True) OrElse
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (8)
222Dim boundCollectionLocal As BoundLocal = Nothing 241Dim boundIndex As BoundLocal = Nothing 353<Out()> ByRef boundLocal As BoundLocal, 384boundIndex As BoundLocal 426index As BoundLocal, 570Dim boundEnumeratorLocal As BoundLocal = Nothing 710rewrittenBoundLocal As BoundLocal, 809Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (2)
700Dim valueArrayRef As BoundLocal = Nothing 703Dim copyBackFlagArrayRef As BoundLocal = Nothing
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (2)
154Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 260Dim boundLockTakenLocal As BoundLocal = Nothing
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
100If operand.Kind = BoundKind.Local AndAlso Not DirectCast(operand, BoundLocal).LocalSymbol.IsByRef Then
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
190Dim tempLocal As BoundLocal
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
56Dim tempAccess As BoundLocal = New BoundLocal(syntax, temp, temp.Type).MakeCompilerGenerated
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (3)
109Dim boundLockTakenLocal As BoundLocal = Nothing 168<Out> ByRef boundLockTakenLocal As BoundLocal, 231boundLockTakenLocal As BoundLocal
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
201Dim boundResourceLocal As BoundLocal = New BoundLocal(resourceSyntax, localSymbol, isLValue:=True, type:=resourceType)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (4)
101Dim attributes As BoundLocal = Nothing 148Private Function CreateTempLocal(syntax As SyntaxNode, type As TypeSymbol, expr As BoundExpression, sideEffects As ArrayBuilder(Of BoundExpression)) As BoundLocal 211Dim attributes As BoundLocal = Nothing 280Private Function CreateTempLocalInExpressionLambda(syntax As SyntaxNode, type As TypeSymbol, expr As BoundExpression) As BoundLocal
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
180Public NotOverridable Overrides Function VisitLocal(node As BoundLocal) As BoundNode
Lowering\SyntheticBoundNodeFactory.vb (1)
659Public Function Local(localSym As LocalSymbol, isLValue As Boolean) As BoundLocal
Lowering\UseTwiceRewriter.vb (12)
87Dim boundTemp As BoundLocal = Nothing 93Dim boundTemp As BoundLocal = Nothing 142ByRef referToTemp As BoundLocal 162ByRef referToTemp As BoundLocal 196Dim boundTemp As BoundLocal = Nothing 227Dim boundArrayTemp As BoundLocal = Nothing 316Dim boundTemp As BoundLocal = Nothing 319Dim boundTemp As BoundLocal = Nothing 341Dim cloneTemp As BoundLocal = Nothing 511DirectCast(result.Second, BoundLocal).LocalSymbol.IsCompilerGenerated AndAlso 514DirectCast(result.Second, BoundLocal).LocalSymbol Is DirectCast(DirectCast(result.First, BoundAssignmentOperator).Left, BoundLocal).LocalSymbol))
Lowering\WithExpressionRewriter.vb (2)
92Private Function CaptureInATemp(value As BoundExpression, state As State) As BoundLocal 294Dim result As BoundLocal = CaptureInATemp(value, state)
Semantics\Conversions.vb (1)
957sourceIsConstant = DirectCast(source, BoundLocal).LocalSymbol.GetConstantValue(binder) IsNot Nothing AndAlso source.IsConstant
Symbols\Source\SynthesizedEventAccessorSymbol.vb (2)
377Dim boundTmps As BoundLocal() = New BoundLocal(numTemps - 1) {}