26 references to ReadWriteContext
Microsoft.CodeAnalysis.VisualBasic (26)
Analysis\FlowAnalysis\AbstractFlowPass.vb (7)
792
Protected Sub VisitRvalue(node As BoundExpression, Optional rwContext As
ReadWriteContext
=
ReadWriteContext
.None, Optional dontLeaveRegion As Boolean = False)
798
If rwContext <>
ReadWriteContext
.None Then
841
VisitRvalue(replacement,
ReadWriteContext
.ByRefArgument)
1032
Protected Overridable Sub VisitLocalInReadWriteContext(node As BoundLocal, rwContext As
ReadWriteContext
)
1035
Protected Overridable Sub VisitFieldAccessInReadWriteContext(node As BoundFieldAccess, rwContext As
ReadWriteContext
)
1663
VisitRvalue(replacement,
ReadWriteContext
.CompoundAssignmentTarget)
Analysis\FlowAnalysis\DataFlowPass.vb (15)
945
Protected Sub CheckAssigned(symbol As Symbol, node As SyntaxNode, Optional rwContext As
ReadWriteContext
=
ReadWriteContext
.None)
981
Private Sub CheckAssigned(fieldAccess As BoundFieldAccess, node As SyntaxNode, Optional rwContext As
ReadWriteContext
=
ReadWriteContext
.None)
1144
rwContext As
ReadWriteContext
,
1203
warning = If(rwContext =
ReadWriteContext
.ByRefArgument, ERRID.WRN_DefAsgUseNullRefByRef, ERRID.WRN_DefAsgUseNullRef)
1207
warning = If(rwContext =
ReadWriteContext
.ByRefArgument, ERRID.WRN_DefAsgUseNullRefByRefStr, ERRID.WRN_DefAsgUseNullRefStr)
1576
Protected Overrides Sub VisitLocalInReadWriteContext(node As BoundLocal, rwContext As
ReadWriteContext
)
1582
CheckAssigned(node.LocalSymbol, node.Syntax,
ReadWriteContext
.None)
1592
CheckAssigned(node.RangeVariable, node.Syntax,
ReadWriteContext
.None)
1787
CheckAssigned(node, node.Syntax,
ReadWriteContext
.None)
1793
Protected Overrides Sub VisitFieldAccessInReadWriteContext(node As BoundFieldAccess, rwContext As
ReadWriteContext
)
1933
VisitRvalue(arg, rwContext:=
ReadWriteContext
.ByRefArgument)
1965
CheckAssigned(fieldAccess, node,
ReadWriteContext
.ByRefArgument)
1981
VisitRvalue(arg, rwContext:=
ReadWriteContext
.ByRefArgument)
Analysis\FlowAnalysis\DataFlowsInWalker.vb (1)
109
rwContext As
ReadWriteContext
,
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (1)
143
rwContext As
ReadWriteContext
,
Analysis\FlowAnalysis\UnassignedVariablesWalker.vb (1)
38
rwContext As
ReadWriteContext
,
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)