95 references to LocalSymbol
Microsoft.CodeAnalysis.VisualBasic (95)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
722If local.LocalSymbol.IsByRef Then
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) 1362Dim symbol = local.LocalSymbol 1578CheckAssigned(node.LocalSymbol, node.Syntax, rwContext) 1582CheckAssigned(node.LocalSymbol, node.Syntax, ReadWriteContext.None) 1808DirectCast(left, BoundLocal).LocalSymbol, node.Right) 1956CheckAssigned(DirectCast(expr, BoundLocal).LocalSymbol, node) 1996CheckAssignedFunctionValue(functionLocal.LocalSymbol, node.Syntax)
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (1)
119Dim locSymbol As LocalSymbol = local.LocalSymbol
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 (2)
246Dim local As LocalSymbol = node.ByRefLocal.LocalSymbol 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 (2)
4800catchLocal = localAccess.LocalSymbol 4824exprKind = BoundKind.Local AndAlso Not DirectCast(exceptionSource, BoundLocal).LocalSymbol.IsStatic) Then
Binding\Binder_Utils.vb (1)
1303Dim local = DirectCast(boundExpression, BoundLocal).LocalSymbol
BoundTree\BoundLocal.vb (2)
23Return Me.LocalSymbol 47Dim result As ConstantValue = LocalSymbol.GetConstantValue(Nothing)
BoundTree\BoundReferenceAssignment.vb (1)
14Debug.Assert(ByRefLocal.LocalSymbol.IsByRef AndAlso LValue.IsLValue AndAlso TypeSymbol.Equals(Type, LValue.Type, TypeCompareKind.ConsiderEverything))
CodeGen\EmitAddress.vb (6)
56If IsStackLocal(boundLocal.LocalSymbol) Then 57Debug.Assert(boundLocal.LocalSymbol.IsByRef) ' only allow byref locals in this context 172doNotRelease = referencedLocal.LocalSymbol 195If Not local.LocalSymbol.IsByRef Then 238Dim local = DirectCast(expression, BoundLocal).LocalSymbol 343boundLocal.LocalSymbol.IsReadOnly AndAlso
CodeGen\EmitExpression.vb (14)
432If IsStackLocal(local.LocalSymbol) Then 444If used AndAlso local.LocalSymbol.IsByRef Then 772Return DirectCast(receiver, BoundLocal).LocalSymbol.IsByRef 1544If (Me.IsStackLocal(local.LocalSymbol)) Then 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 1894If boundLocal.LocalSymbol.IsByRef Then 1895If IsStackLocal(boundLocal.LocalSymbol) Then 2005Debug.Assert(boundLocal.LocalSymbol.IsByRef) 2007If IsStackLocal(boundLocal.LocalSymbol) Then 2027If boundLocal.LocalSymbol.IsByRef Then 2028EmitStoreIndirect(boundLocal.LocalSymbol.Type, expression.Syntax) 2029ElseIf IsStackLocal(boundLocal.LocalSymbol) Then
CodeGen\EmitStatement.vb (4)
330Debug.Assert(Not DirectCast(exceptionSource, BoundLocal).LocalSymbol.IsByRef) 1054If selectExpression.Kind = BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then 1068If selectExpression.Kind = BoundKind.Local AndAlso Not DirectCast(selectExpression, BoundLocal).LocalSymbol.IsByRef Then 1373Dim symbol = localExpression.LocalSymbol
CodeGen\Optimizer\StackScheduler.Analyzer.vb (8)
490If node.LocalSymbol.IsByRef Then 491RecordVarRead(node.LocalSymbol) 493RecordVarRef(node.LocalSymbol) 508RecordVarRead(node.LocalSymbol) 535RecordVarWrite(storedAssignmentLocal.LocalSymbol) 607RecordVarWrite(storedAssignmentLocal.LocalSymbol) 627Return DirectCast(node, BoundLocal).LocalSymbol.IsByRef 1021Dim local = DirectCast(expressionStatement.Expression, BoundLocal).LocalSymbol
CodeGen\Optimizer\StackScheduler.Rewriter.vb (5)
116If Not _info.TryGetValue(node.LocalSymbol, locInfo) Then 122Return New BoundDup(node.Syntax, node.LocalSymbol.IsByRef, node.Type) 142If Not _info.TryGetValue(left.LocalSymbol, locInfo) Then 180If left Is Nothing OrElse Not _info.TryGetValue(left.LocalSymbol, locInfo) Then 186Dim isIndirectLocalStore = left.LocalSymbol.IsByRef
Compilation\SemanticModel.vb (1)
965type = DirectCast(lowestExpr, BoundLocal).LocalSymbol.Type
Generated\BoundNodes.xml.Generated.vb (3)
6213If localSymbol IsNot Me.LocalSymbol OrElse isLValue <> Me.IsLValue OrElse type IsNot Me.Type Then 12754Return node.Update(node.LocalSymbol, node.IsLValue, type) 14099New TreeDumperNode("localSymbol", node.LocalSymbol, Nothing),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
323Dim local As LocalSymbol = origByRefLocal.LocalSymbol
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\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
487ReferenceVariable(node.LocalSymbol, node.Syntax)
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
173locals:=ImmutableArray.Create(Of LocalSymbol)(boundTemp.LocalSymbol),
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 (1)
811If node.LocalSymbol Is _original Then
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (3)
155If node.LocalSymbol.IsStatic Then 156Dim backingValueField As SynthesizedStaticLocalBackingField = _staticLocalMap(node.LocalSymbol).Key 305locals = ImmutableArray.Create(boundLockTakenLocal.LocalSymbol)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
100If operand.Kind = BoundKind.Local AndAlso Not DirectCast(operand, BoundLocal).LocalSymbol.IsByRef Then
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (1)
117locals = ImmutableArray.Create(Of LocalSymbol)(tempLockObjectLocal, boundLockTakenLocal.LocalSymbol)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (4)
98locals.Add(local.LocalSymbol) 105locals.Add(attributes.LocalSymbol) 115locals.Add(prefixes.LocalSymbol) 119locals.Add(namespaces.LocalSymbol)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
181Dim local As LocalSymbol = node.LocalSymbol
Lowering\UseTwiceRewriter.vb (8)
89boundTemp = boundTemp.Update(boundTemp.LocalSymbol, isLValue:=True, type:=boundTemp.Type) 95boundTemp = boundTemp.Update(boundTemp.LocalSymbol, isLValue:=True, type:=boundTemp.Type) 321boundTemp = boundTemp.Update(boundTemp.LocalSymbol, isLValue:=True, type:=boundTemp.Type) 348cloneTemp.Update(cloneTemp.LocalSymbol, isLValue:=True, cloneTemp.Type), 354cloneTemp.Update(cloneTemp.LocalSymbol, isLValue:=True, cloneTemp.Type), 511DirectCast(result.Second, BoundLocal).LocalSymbol.IsCompilerGenerated AndAlso 514DirectCast(result.Second, BoundLocal).LocalSymbol Is DirectCast(DirectCast(result.First, BoundAssignmentOperator).Left, BoundLocal).LocalSymbol))
Semantics\Conversions.vb (1)
957sourceIsConstant = DirectCast(source, BoundLocal).LocalSymbol.GetConstantValue(binder) IsNot Nothing AndAlso source.IsConstant
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
307ImmutableArray.Create(Of LocalSymbol)(scriptLocal.LocalSymbol), 387ImmutableArray.Create(Of LocalSymbol)(submissionLocal.LocalSymbol),