87 instantiations of BoundLocal
Microsoft.CodeAnalysis.VisualBasic (84)
Analysis\FlowAnalysis\DataFlowPass.vb (2)
1606SetPlaceholderSubstitute(placeholder, New BoundLocal(node.Syntax, local, local.Type)) 2077Me.SetPlaceholderSubstitute(placeholder, New BoundLocal(localDecl.Syntax, localToUseAsSubstitute, localToUseAsSubstitute.Type))
Binding\Binder_Delegates.vb (1)
454Dim tempBoundParameter As BoundExpression = New BoundLocal(addressOfSyntax,
Binding\Binder_Expressions.vb (1)
3252Return New BoundLocal(node, localSymbol, localAccessType, hasErrors:=hasError)
Binding\Binder_Lambda.vb (1)
522Dim boundLocal = New BoundLocal(endSyntax, localForFunctionValue, isLValue:=False, type:=localForFunctionValue.Type).MakeCompilerGenerated()
Binding\Binder_Statements.vb (5)
409New BoundLocal(methodBlock.EndBlockStatement, localForFunctionValue, isLValue:=False, type:=localForFunctionValue.Type).MakeCompilerGenerated(), 1726Return New BoundLocal(name, symbol, symbol.Type) 2947controlVariable = New BoundLocal(declaratorSyntax, declaredOrInferredLocalOpt, declaredOrInferredLocalOpt.Type) 3104controlVariableOpt = New BoundLocal(forStatement.ControlVariable, declaredOrInferredLocalOpt, type) 3378controlVariableOpt = New BoundLocal(forEachStatement.ControlVariable, declaredOrInferredLocalOpt, type)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (4)
263Dim boundLocalMyFieldBoxed = New BoundLocal(syntax, localMyFieldBoxed, 265Dim boundLocalOtherFieldBoxed = New BoundLocal(syntax, localOtherFieldBoxed, 285New BoundLocal(syntax, localMyFieldBoxed, 290New BoundLocal(syntax, localOtherFieldBoxed,
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (3)
86returnLocal = New BoundLocal(syntax, local, isLValue:=False, type:=local.Type) 177Dim localAccess = New BoundLocal(syntax, handlerLocal, handlerLocal.Type) 213withEventsLocalAccess = New BoundLocal(syntax, withEventsLocal, withEventsLocal.Type)
BoundTree\BoundLocal.vb (2)
14Me.New(syntax, localSymbol, Not localSymbol.IsReadOnly, type:=type, hasErrors:=hasErrors) 18Me.New(syntax, localSymbol, Not localSymbol.IsReadOnly, type:=type)
Generated\BoundNodes.xml.Generated.vb (1)
6195Dim result = New BoundLocal(Me.Syntax, localSymbol, isLValue, type, Me.HasErrors)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (2)
67Dim boundNode = New BoundLocal(syntax, localSym, isLValue:=False, type:=localSym.Type) 73Dim boundNode = New BoundLocal(syntax, localSym, isLValue:=True, type:=localSym.Type)
Lowering\LambdaRewriter\LambdaRewriter.vb (5)
392Return New BoundLocal(syntax, localFrame, isLValue:=False, type:=localFrame.Type) 511Dim frameAccess = New BoundLocal(syntaxNode, framePointer, frameType) 534New BoundLocal(syntaxNode, framePointer, frameType), 644value = New BoundLocal(syntaxNode, actualLocal, isLValue:=False, type:=actualLocal.Type) 654New BoundLocal(syntaxNode,
Lowering\LocalRewriter\LocalRewriter.vb (1)
720Dim localAccess = New BoundLocal(value.Syntax, local, local.Type)
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
93boundTemp = New BoundLocal(syntax, New SynthesizedLocal(Me._currentMethodOrLambda, receiverType, SynthesizedLocalKind.LoweringTemp), receiverType)
Lowering\LocalRewriter\LocalRewriter_AnonymousTypeCreationExpression.vb (2)
44Dim boundLocal = New BoundLocal(newArguments(index).Syntax, 82Return New BoundLocal(node.Syntax, local, False, Me.VisitType(local.Type))
Lowering\LocalRewriter\LocalRewriter_AsNewLocalDeclarations.vb (1)
88VisitExpressionNode(New BoundLocal(localDeclaration.Syntax,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
511Dim localRef = New BoundLocal(node.Syntax, temp, node.Type)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
58Dim tempAccess As New BoundLocal(node.Syntax, temp, True, temp.Type)
Lowering\LocalRewriter\LocalRewriter_Call.vb (2)
239Dim boundTemp = New BoundLocal(rewrittenArgument.Syntax, temp, temp.Type) 326Dim boundTemp = New BoundLocal(argument.Syntax, temp, temp.Type)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (2)
74placeholderSubstitute = New BoundLocal(rewrittenTestExpression.Syntax, 98left:=New BoundLocal(rewrittenTestExpression.Syntax,
Lowering\LocalRewriter\LocalRewriter_DelegateCreation.vb (2)
31Dim actualReceiver = New BoundLocal(placeholderOpt.Syntax, captureTemp, captureTemp.Type).MakeRValue 55New BoundLocal(receiverToCapture.Syntax,
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
94Dim tempForControlVariable = New BoundLocal(node.Syntax, tempLocal, node.ControlVariable.Type) 362boundLocal = New BoundLocal(syntaxNode, collectionCopy, expressionType)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (5)
98New BoundLocal(forStatement.OperatorsOpt.Syntax, 155New BoundLocal(isUp.Syntax, 421Dim loopObj = New BoundLocal(blockSyntax, loopObjLocal, isLValue:=True, type:=loopObjLocal.Type) 666New BoundLocal(operatorsOpt.Syntax, 762Dim isUp As BoundExpression = New BoundLocal(limit.Syntax,
Lowering\LocalRewriter\LocalRewriter_Label.vb (1)
30New BoundLocal(node.Syntax, _currentLineTemporary, _currentLineTemporary.Type),
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (7)
119Dim arrayTempRef = New BoundLocal(node, arrayTemp, arrayTemp.Type) 208Dim arrayTempRef = New BoundLocal(node, arrayTemp, arrayTemp.Type) 754copyBackFlagArrayRef = (New BoundLocal(syntax, copyBackFlagArrayTemp, copyBackFlagArrayTemp.Type)).MakeRValue 758valueArrayRef = New BoundLocal(syntax, valueArrayTemp, valueArrayTemp.Type) 777New BoundLocal(syntax, copyBackFlagArrayTemp, copyBackFlagArrayTemp.Type), 840Dim valueRef = New BoundLocal(syntax, valueTemp, valueTemp.Type) 901New BoundLocal(argumentWithCapture.Syntax,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (2)
48AddPlaceholderReplacement(placeholder, VisitExpressionNode(New BoundLocal(node.Syntax, localSymbol, localSymbol.Type))) 100New BoundLocal(
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
119Dim localAccess = New BoundLocal(operand.Syntax, temp, True, temp.Type)
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (2)
211tempLocal = New BoundLocal(syntaxNode, tempLocalSymbol, expressionType) 325New BoundLocal(syntaxNode, tempLocalSymbol, expressionType))
Lowering\LocalRewriter\LocalRewriter_Query.vb (2)
239New BoundLocal(node.Syntax, groupLocal, False, groupLocal.Type)) 245New BoundLocal(node.Syntax, groupLocal, True, groupLocal.Type),
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
56Dim tempAccess As BoundLocal = New BoundLocal(syntax, temp, temp.Type).MakeCompilerGenerated
Lowering\LocalRewriter\LocalRewriter_Return.vb (1)
67Dim boundFunctionLocal = New BoundLocal(node.Syntax, functionLocal, functionLocal.Type)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
237Dim boundTemp = New BoundLocal(rewrittenSelectExpression.Syntax, tempLocal, selectExprType)
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (2)
51Dim boundLockObjectLocal = New BoundLocal(syntaxNode, 190boundLockTakenLocal = New BoundLocal(syntaxNode, tempLockTaken, tempLockTaken.Type)
Lowering\LocalRewriter\LocalRewriter_Try.vb (1)
173errorLineNumber = New BoundLocal(node.Syntax, _currentLineTemporary, isLValue:=False, type:=_currentLineTemporary.Type)
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (1)
264New BoundLocal(node.Syntax, _currentLineTemporary, isLValue:=False, type:=_currentLineTemporary.Type),
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
201Dim boundResourceLocal As BoundLocal = New BoundLocal(resourceSyntax, localSymbol, isLValue:=True, type:=resourceType)
Lowering\LocalRewriter\LocalRewriter_With.vb (1)
116New BoundLocal(syntax, _local, isLValue:=True, type:=localType).MakeCompilerGenerated(),
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
149Dim local = New BoundLocal(syntax, New SynthesizedLocal(Me._currentMethodOrLambda, type, SynthesizedLocalKind.LoweringTemp), type) 282Dim boundLocal = New BoundLocal(syntax, local, type)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
195Return New BoundLocal(node.Syntax, replacementLocal, node.IsLValue, replacementLocal.Type, node.HasErrors)
Lowering\SyntheticBoundNodeFactory.vb (1)
656Dim boundNode = New BoundLocal(_syntax, localSym, isLValue, localSym.Type)
Lowering\UseTwiceRewriter.vb (4)
147referToTemp = New BoundLocal(value.Syntax, temp, type) 255New BoundLocal(lvalue.Syntax, temp, temp.Type).MakeCompilerGenerated(), 258Dim second = New BoundLocal(lvalue.Syntax, temp, isLValue:=True, type:=lvalue.Type).MakeCompilerGenerated() 413secondArgsArray(i) = New BoundLocal(boundArgument.Syntax, temp, isLValue:=False, type:=temp.Type)
Lowering\WithExpressionRewriter.vb (2)
91Dim boundLocal = New BoundLocal(value.Syntax, local, isLValue:=True, type:=type).MakeCompilerGenerated() 116Dim boundLocal = New BoundLocal(value.Syntax, local, isLValue:=True, type:=type).MakeCompilerGenerated()
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
264Dim scriptLocal = New BoundLocal( 355Dim submissionLocal = New BoundLocal(
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
382boundTmps(i) = New BoundLocal(syntax, tmps(i), delegateType)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (3)
CompilationContext.vb (2)
256Dim expression = New BoundLocal(syntax, local, isLValue:=False, type:=local.Type) 443Dim expression = New BoundLocal(syntax, local, isLValue:=False, type:=local.Type)
Symbols\DisplayClassInstance.vb (1)
58Return New BoundLocal(syntax, Me.Local, Me.Local.Type).MakeCompilerGenerated()
160 references to BoundLocal
Microsoft.CodeAnalysis.VisualBasic (156)
Analysis\FlowAnalysis\AbstractFlowPass.vb (5)
712Dim local = DirectCast(node, BoundLocal) 793VisitLocalInReadWriteContext(DirectCast(node, BoundLocal), rwContext) 977Return DirectCast(node, BoundLocal).Type.IsValueType 1023Protected Overridable Sub VisitLocalInReadWriteContext(node As BoundLocal, rwContext As ReadWriteContext) 1040Public 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 1116Return GetUnassignedSymbolFirstLocation(DirectCast(receiver, BoundLocal).LocalSymbol, Nothing) 1355Dim local = DirectCast(node, BoundLocal) 1570Protected Overrides Sub VisitLocalInReadWriteContext(node As BoundLocal, rwContext As ReadWriteContext) 1575Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 1802DirectCast(left, BoundLocal).LocalSymbol, node.Right) 1950CheckAssigned(DirectCast(expr, BoundLocal).LocalSymbol, node) 1988Dim 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)
257If arg0.Kind = BoundKind.Local AndAlso DirectCast(arg0, BoundLocal).LocalSymbol Is local Then
Binding\Binder_Expressions.vb (1)
1801Return DirectCast(node, BoundLocal).LocalSymbol.IsReadOnly
Binding\Binder_Lambda.vb (1)
374Dim local As LocalSymbol = DirectCast(node.ExpressionOpt, BoundLocal).LocalSymbol
Binding\Binder_Statements.vb (3)
1717diagnostics As BindingDiagnosticBag) As BoundLocal 4767Dim localAccess As BoundLocal = BindCatchVariableDeclaration(name, asClauseOpt, diagnostics) 4793exprKind = 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)
109EmitLocalLoad(DirectCast(expression, BoundLocal), used) 426Private Sub EmitLocalLoad(local As BoundLocal, used As Boolean) 767Return DirectCast(receiver, BoundLocal).LocalSymbol.IsByRef 1420Dim local = DirectCast(expr, BoundLocal) 1573If target.Kind = BoundKind.Local AndAlso IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol) Then 1579Debug.Assert(target.Kind <> BoundKind.Local OrElse Not IsStackLocal(DirectCast(target, BoundLocal).LocalSymbol)) 1754Return Not DirectCast(left, BoundLocal).LocalSymbol.IsByRef 1770Dim boundLocal = DirectCast(assignmentTarget, BoundLocal) 1881Dim boundLocal As BoundLocal = capture.ByRefLocal 1902Dim 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) 1373Private 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)
961type = DirectCast(lowestExpr, BoundLocal).LocalSymbol.Type
Generated\BoundNodes.xml.Generated.vb (31)
1801Public Sub New(syntax As SyntaxNode, byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False) 1818Private ReadOnly _ByRefLocal As BoundLocal 1819Public ReadOnly Property ByRefLocal As BoundLocal 1844Public Function Update(byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol) As BoundReferenceAssignment 6193Public Function Update(localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol) As BoundLocal 8481Public Sub New(syntax As SyntaxNode, activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol, Optional hasErrors As Boolean = False) 8498Private ReadOnly _ActiveHandlerLocal As BoundLocal 8499Public ReadOnly Property ActiveHandlerLocal As BoundLocal 8505Private ReadOnly _ResumeTargetLocal As BoundLocal 8506Public ReadOnly Property ResumeTargetLocal As BoundLocal 8517Public Function Update(activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol) As BoundUnstructuredExceptionHandlingCatchFilter 8578Public Sub New(syntax As SyntaxNode, resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement), Optional hasErrors As Boolean = False) 8598Private ReadOnly _ResumeTargetTemporary As BoundLocal 8599Public ReadOnly Property ResumeTargetTemporary As BoundLocal 8631Public Function Update(resumeTargetTemporary As BoundLocal, resumeLabel As BoundLabelStatement, resumeNextLabel As BoundLabelStatement, jumps As ImmutableArray(Of BoundGotoStatement)) As BoundUnstructuredExceptionResumeSwitch 9537Return VisitLocal(CType(node, BoundLocal), arg) 10121Public Overridable Function VisitLocal(node As BoundLocal, arg As A) As R 10824Public Overridable Function VisitLocal(node As BoundLocal) As BoundNode 11683Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 12215Dim byRefLocal As BoundLocal = DirectCast(Me.Visit(node.ByRefLocal), BoundLocal) 12718Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 12997Dim activeHandlerLocal As BoundLocal = DirectCast(Me.Visit(node.ActiveHandlerLocal), BoundLocal) 12998Dim resumeTargetLocal As BoundLocal = DirectCast(Me.Visit(node.ResumeTargetLocal), BoundLocal) 13010Dim resumeTargetTemporary As BoundLocal = DirectCast(Me.Visit(node.ResumeTargetTemporary), BoundLocal) 14060Public 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)
251Dim origByRefLocal As BoundLocal = node.ByRefLocal 257Dim rewrittenLeft As BoundLocal = DirectCast(Me.VisitExpression(origByRefLocal), BoundLocal)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
342Debug.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_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)
704Dim valueArrayRef As BoundLocal = Nothing 707Dim 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)
104If 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)
655Public Function Local(localSym As LocalSymbol, isLValue As Boolean) As BoundLocal
Lowering\UseTwiceRewriter.vb (11)
85Dim boundTemp As BoundLocal = Nothing 91Dim boundTemp As BoundLocal = Nothing 140ByRef referToTemp As BoundLocal 160ByRef referToTemp As BoundLocal 194Dim boundTemp As BoundLocal = Nothing 225Dim boundArrayTemp As BoundLocal = Nothing 315Dim boundTemp As BoundLocal = Nothing 318Dim boundTemp As BoundLocal = Nothing 474DirectCast(result.Second, BoundLocal).LocalSymbol.IsCompilerGenerated AndAlso 477DirectCast(result.Second, BoundLocal).LocalSymbol Is DirectCast(DirectCast(result.First, BoundAssignmentOperator).Left, BoundLocal).LocalSymbol))
Lowering\WithExpressionRewriter.vb (2)
85Private Function CaptureInATemp(value As BoundExpression, state As State) As BoundLocal 286Dim result As BoundLocal = CaptureInATemp(value, state)
Operations\VisualBasicOperationFactory.vb (3)
144Return CreateBoundLocalOperation(DirectCast(boundNode, BoundLocal)) 955Private Function CreateBoundLocalOperation(boundLocal As BoundLocal) As IOperation 1274boundCatchBlock.LocalOpt Is DirectCast(boundCatchBlock.ExceptionSourceOpt, BoundLocal).LocalSymbol Then
Semantics\Conversions.vb (1)
953sourceIsConstant = DirectCast(source, BoundLocal).LocalSymbol.GetConstantValue(binder) IsNot Nothing AndAlso source.IsConstant
Symbols\Source\SynthesizedEventAccessorSymbol.vb (2)
377Dim boundTmps As BoundLocal() = New BoundLocal(numTemps - 1) {}
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
Rewriters\CapturedVariableRewriter.vb (1)
56Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode
Rewriters\LocalDeclarationRewriter.vb (1)
44Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode
Rewriters\PlaceholderLocalRewriter.vb (2)
27Public Overrides Function VisitLocal(node As BoundLocal) As BoundNode 34Private Function RewriteLocal(node As BoundLocal, diagnostics As DiagnosticBag) As BoundExpression