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