89 references to BoundFieldAccess
Microsoft.CodeAnalysis.VisualBasic (89)
Analysis\FlowAnalysis\AbstractFlowPass.vb (7)
730
VisitFieldAccessInternal(DirectCast(node,
BoundFieldAccess
))
806
VisitFieldAccessInReadWriteContext(DirectCast(node,
BoundFieldAccess
), rwContext)
998
Return IsNotCapturedExpression(DirectCast(node,
BoundFieldAccess
).ReceiverOpt)
1035
Protected Overridable Sub VisitFieldAccessInReadWriteContext(node As
BoundFieldAccess
, rwContext As ReadWriteContext)
1669
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
1674
Private Function VisitFieldAccessInternal(node As
BoundFieldAccess
) As BoundNode
1687
Protected Shared Function FieldAccessMayRequireTracking(fieldAccess As
BoundFieldAccess
) As Boolean
Analysis\FlowAnalysis\DataFlowPass.vb (11)
302
Dim fieldAccess = DirectCast(node,
BoundFieldAccess
)
369
Protected Overridable Sub NoteRead(fieldAccess As
BoundFieldAccess
)
447
Dim fieldAccess = DirectCast(node,
BoundFieldAccess
)
981
Private Sub CheckAssigned(fieldAccess As
BoundFieldAccess
, node As SyntaxNode, Optional rwContext As ReadWriteContext = ReadWriteContext.None)
1049
Dim fieldAccess = DirectCast(node,
BoundFieldAccess
)
1099
Private Function GetUnassignedSymbolFirstLocation(sym As Symbol, boundFieldAccess As
BoundFieldAccess
) As Location
1125
Dim fieldAccess = DirectCast(receiver,
BoundFieldAccess
)
1146
Optional boundFieldAccess As
BoundFieldAccess
= Nothing)
1783
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
1793
Protected Overrides Sub VisitFieldAccessInReadWriteContext(node As
BoundFieldAccess
, rwContext As ReadWriteContext)
1962
Dim fieldAccess = DirectCast(expr,
BoundFieldAccess
)
Analysis\FlowAnalysis\DataFlowsInWalker.vb (1)
111
Optional boundFieldAccess As
BoundFieldAccess
= Nothing)
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (1)
145
Optional boundFieldAccess As
BoundFieldAccess
= Nothing)
Analysis\FlowAnalysis\ReadWriteWalker.vb (6)
108
Protected Overrides Sub NoteRead(fieldAccess As
BoundFieldAccess
)
115
If node.Kind = BoundKind.FieldAccess Then NoteReceiverWritten(CType(node,
BoundFieldAccess
))
118
Private Sub NoteReceiverRead(fieldAccess As
BoundFieldAccess
)
122
Private Sub NoteReceiverWritten(fieldAccess As
BoundFieldAccess
)
126
Private Sub NoteReceiverReadOrWritten(fieldAccess As
BoundFieldAccess
, readOrWritten As HashSet(Of Symbol))
145
If receiver.Type.IsStructureType AndAlso receiverSyntax.Span.OverlapsWith(_region) Then NoteReceiverReadOrWritten(CType(receiver,
BoundFieldAccess
), readOrWritten)
Analysis\FlowAnalysis\UnassignedVariablesWalker.vb (1)
40
Optional boundFieldAccess As
BoundFieldAccess
= Nothing)
Analysis\ForLoopVerification.vb (1)
144
Return DirectCast(expression,
BoundFieldAccess
).FieldSymbol
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
162
Protected Overrides Sub ReportUnassigned(symbol As Symbol, node As SyntaxNode, rwContext As ReadWriteContext, Optional slot As Integer = -1, Optional boundFieldAccess As
BoundFieldAccess
= Nothing)
Binding\Binder_Attributes.vb (1)
733
Dim left = DirectCast(assignment.Left,
BoundFieldAccess
)
Binding\Binder_Expressions.vb (2)
1161
Dim access = DirectCast(result,
BoundFieldAccess
)
1812
Dim field = DirectCast(node,
BoundFieldAccess
)
Binding\Binder_Lambda.vb (2)
697
Dim fieldAccess = DirectCast(argument,
BoundFieldAccess
)
749
Dim fieldAccess = DirectCast(receiverOpt,
BoundFieldAccess
)
Binding\Binder_ObjectInitializer.vb (2)
556
TryCast(assignmentOperator.Left,
BoundFieldAccess
)?.FieldSymbol)
753
isShared = DirectCast(target,
BoundFieldAccess
).FieldSymbol.IsShared
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (1)
41
Dim fieldAccess As
BoundFieldAccess
= Nothing
BoundTree\BoundAssignmentOperator.vb (1)
95
DirectCast(Left,
BoundFieldAccess
).FieldSymbol.AssociatedSymbol.Kind = SymbolKind.Property AndAlso
BoundTree\BoundFieldAccess.vb (1)
28
Public Shadows Function MakeRValue() As
BoundFieldAccess
BoundTree\BoundTreeVisitor.vb (1)
66
Return VisitFieldAccess(CType(node,
BoundFieldAccess
), arg)
CodeGen\EmitAddress.vb (8)
83
tempOpt = EmitFieldAddress(DirectCast(expression,
BoundFieldAccess
), addressKind)
203
Dim fieldAccess = DirectCast(value,
BoundFieldAccess
)
226
Return HasHome(DirectCast(expression,
BoundFieldAccess
))
261
Private Function HasHome(fieldAccess As
BoundFieldAccess
) As Boolean
305
Return AllowedToTakeRef(DirectCast(expression,
BoundFieldAccess
), addressKind)
374
Private Function AllowedToTakeRef(fieldAccess As
BoundFieldAccess
, addressKind As AddressKind) As Boolean
425
Private Function EmitFieldAddress(fieldAccess As
BoundFieldAccess
, addressKind As AddressKind) As LocalDefinition
500
Private Function EmitInstanceFieldAddress(fieldAccess As
BoundFieldAccess
, addressKind As AddressKind) As LocalDefinition
CodeGen\EmitExpression.vb (9)
122
EmitFieldLoad(DirectCast(expression,
BoundFieldAccess
), used)
637
Private Sub EmitFieldLoad(fieldAccess As
BoundFieldAccess
, used As Boolean)
683
Private Sub EmitInstanceFieldLoad(fieldAccess As
BoundFieldAccess
, used As Boolean)
732
Dim fieldAccess = DirectCast(receiver,
BoundFieldAccess
)
778
Dim fieldAccess = DirectCast(receiver,
BoundFieldAccess
)
931
Return DirectCast(receiver,
BoundFieldAccess
).FieldSymbol.IsCapturedFrame
1908
Dim left = DirectCast(assignmentTarget,
BoundFieldAccess
)
2022
EmitFieldStore(DirectCast(expression,
BoundFieldAccess
))
2145
Private Sub EmitFieldStore(fieldAccess As
BoundFieldAccess
)
CodeGen\EmitStatement.vb (1)
348
Dim left = DirectCast(exceptionSource,
BoundFieldAccess
)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (2)
264
Return Not DirectCast(node,
BoundFieldAccess
).FieldSymbol.IsShared
753
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
Generated\BoundNodes.xml.Generated.vb (7)
4198
Public Function Update(receiverOpt As BoundExpression, fieldSymbol As FieldSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, constantsInProgressOpt As ConstantFieldsInProgress, type As TypeSymbol) As
BoundFieldAccess
9495
Return VisitFieldAccess(CType(node,
BoundFieldAccess
), arg)
10003
Public Overridable Function VisitFieldAccess(node As
BoundFieldAccess
, arg As A) As R
10706
Public Overridable Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
11497
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
12520
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
13782
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
380
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
381
Dim rewritten = DirectCast(MyBase.VisitFieldAccess(node),
BoundFieldAccess
)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
282
Dim fieldAccess = DirectCast(expr,
BoundFieldAccess
)
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
435
Dim fieldAccess = DirectCast(expression,
BoundFieldAccess
)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
170
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (3)
228
Dim fieldAccess = DirectCast(node,
BoundFieldAccess
)
402
Private Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundExpression
602
leftSymbol = DirectCast(assignment.Left,
BoundFieldAccess
).FieldSymbol
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (2)
53
Not DirectCast(nodeLeft,
BoundFieldAccess
).FieldSymbol.IsConstButNotMetadataConstant)
152
Dim leftFieldAccess = DirectCast(leftNode,
BoundFieldAccess
)
Lowering\LocalRewriter\LocalRewriter_FieldAccess.vb (1)
15
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (2)
34
Dim fieldAccess As
BoundFieldAccess
= DirectCast(receiver,
BoundFieldAccess
)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
205
Public Overrides Function VisitFieldAccess(node As
BoundFieldAccess
) As BoundNode
Lowering\SyntheticBoundNodeFactory.vb (1)
189
Public Function Field(receiver As BoundExpression, f As FieldSymbol, isLValue As Boolean) As
BoundFieldAccess
Lowering\UseTwiceRewriter.vb (2)
124
Return UseTwiceFieldAccess(containingMember, DirectCast(value,
BoundFieldAccess
), temporaries)
264
Private Shared Function UseTwiceFieldAccess(containingMember As Symbol, node As
BoundFieldAccess
, arg As ArrayBuilder(Of SynthesizedLocal)) As Result
Lowering\WithExpressionRewriter.vb (3)
178
Private Function CaptureFieldAccess(value As
BoundFieldAccess
, state As State) As BoundExpression
215
Return CaptureFieldAccess(DirectCast(value,
BoundFieldAccess
), state)
335
expression = CaptureFieldAccess(DirectCast(value,
BoundFieldAccess
), state)
Semantics\Conversions.vb (1)
955
sourceIsConstant = DirectCast(source,
BoundFieldAccess
).FieldSymbol.GetConstantValue(binder.ConstantFieldsInProgress) IsNot Nothing AndAlso source.IsConstant
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
311
Dim boundBackingField As
BoundFieldAccess
= New BoundFieldAccess(syntax,