94 references to PropertyAccessKind
Microsoft.CodeAnalysis.VisualBasic (94)
Binding\Binder_Attributes.vb (1)
535lValue = New BoundPropertyAccess(identifierName, propertySym, Nothing, PropertyAccessKind.Set, Not isReadOnly, Nothing, ImmutableArray(Of BoundExpression).Empty, defaultArguments:=BitVector.Null, hasErrors)
Binding\Binder_Expressions.vb (9)
1267Case PropertyAccessKind.Set 1271Case PropertyAccessKind.Unknown 1391Case PropertyAccessKind.Get 1394Case PropertyAccessKind.Unknown 1396WarnOnRecursiveAccess(propertyAccess, PropertyAccessKind.Get, diagnostics) 1397expr = propertyAccess.SetAccessKind(PropertyAccessKind.Get) 1757Debug.Assert(propertyAccess.AccessKind <> PropertyAccessKind.Get) 1758Return propertyAccess.AccessKind <> PropertyAccessKind.Get AndAlso 4822Debug.Assert(DirectCast(isCompleted, BoundPropertyAccess).AccessKind = PropertyAccessKind.Get)
Binding\Binder_Initializers.vb (1)
364accessKind:=PropertyAccessKind.Set,
Binding\Binder_Invocation.vb (12)
977PropertyAccessKind.Unknown, 987Friend Sub WarnOnRecursiveAccess(propertyAccess As BoundPropertyAccess, accessKind As PropertyAccessKind, diagnostics As BindingDiagnosticBag) 996If (accessKind And PropertyAccessKind.Get) <> 0 AndAlso (propertyAccess.AccessKind And PropertyAccessKind.Get) = 0 Then 1000If (accessKind And PropertyAccessKind.Set) <> 0 AndAlso (propertyAccess.AccessKind And PropertyAccessKind.Set) = 0 Then 1011Friend Sub WarnOnRecursiveAccess(node As BoundExpression, accessKind As PropertyAccessKind, diagnostics As BindingDiagnosticBag) 2836argument = argument.SetAccessKind(PropertyAccessKind.Get) 2886WarnOnRecursiveAccess(argument, PropertyAccessKind.Get, diagnostics) 2887argument = argument.SetAccessKind(PropertyAccessKind.Get Or PropertyAccessKind.Set) 2898If propertyAccess IsNot Nothing AndAlso propertyAccess.AccessKind <> PropertyAccessKind.Get AndAlso
Binding\Binder_ObjectInitializer.vb (2)
737Debug.Assert(propertyAccess.AccessKind = PropertyAccessKind.Unknown) 740If propertyAccess.AccessKind <> PropertyAccessKind.Get AndAlso Not propertyAccess.IsWriteable AndAlso
Binding\Binder_Query.vb (3)
460PropertyAccessKind.Get, 478PropertyAccessKind.Get, 500PropertyAccessKind.Get,
Binding\Binder_Statements.vb (5)
1938WarnOnRecursiveAccess(propertyAccess, PropertyAccessKind.Get, diagnostics) 1939Return propertyAccess.SetAccessKind(PropertyAccessKind.Get) 1942Debug.Assert(propertyAccess.AccessKind <> PropertyAccessKind.Get) 1988WarnOnRecursiveAccess(propertyAccess, PropertyAccessKind.Set, diagnostics) 1989Return propertyAccess.SetAccessKind(PropertyAccessKind.Set)
Binding\Binder_WithBlock.vb (2)
221WarnOnRecursiveAccess(propertyAccess, PropertyAccessKind.Get, diagnostics) 222boundExpression = propertyAccess.SetAccessKind(PropertyAccessKind.Get)
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
242PropertyAccessKind.Get, 322PropertyAccessKind.Get,
BoundTree\BoundAssignmentOperator.vb (7)
60PropertyAccessKind.Get, 61If(LeftOnTheRightOpt Is Nothing, PropertyAccessKind.Set, PropertyAccessKind.Set Or PropertyAccessKind.Get))) 65Debug.Assert(Left.GetAccessKind() = If(LeftOnTheRightOpt Is Nothing, PropertyAccessKind.Set, PropertyAccessKind.Set Or PropertyAccessKind.Get))
BoundTree\BoundExpressionExtensions.vb (11)
187If propertyAccess.AccessKind = PropertyAccessKind.Get Then 245Public Function GetAccessKind(node As BoundExpression) As PropertyAccessKind 280Public Function SetAccessKind(node As BoundExpression, newAccessKind As PropertyAccessKind) As BoundExpression 288Debug.Assert(Not propertyAccess.PropertySymbol.ReturnsByRef OrElse (newAccessKind And PropertyAccessKind.Set) = 0) 312Public Function SetAccessKind(node As BoundXmlMemberAccess, newAccessKind As PropertyAccessKind) As BoundXmlMemberAccess 322Return memberAccess.SetAccessKind(PropertyAccessKind.Get Or PropertyAccessKind.Set) 326Dim accessKind = If(propertyAccess.PropertySymbol.ReturnsByRef, PropertyAccessKind.Get, PropertyAccessKind.Get Or PropertyAccessKind.Set) 639Debug.Assert(Not node.IsPropertyOrXmlPropertyAccess() OrElse node.GetAccessKind() = PropertyAccessKind.Get)
BoundTree\BoundPropertyAccess.vb (9)
18Public Sub New(syntax As SyntaxNode, propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), 45Public Function SetAccessKind(newAccessKind As PropertyAccessKind) As BoundPropertyAccess 46Debug.Assert(newAccessKind = PropertyAccessKind.Unknown OrElse 47Me.AccessKind = PropertyAccessKind.Unknown OrElse 49Debug.Assert((newAccessKind And PropertyAccessKind.Set) = 0 OrElse 80Debug.Assert(Me.AccessKind <> PropertyAccessKind.Set) 85PropertyAccessKind.Get, 112Private Shared Function GetTypeFromAccessKind([property] As PropertySymbol, accessKind As PropertyAccessKind) As TypeSymbol 113Return If((accessKind And PropertyAccessKind.Set) <> 0,
Generated\BoundNodes.xml.Generated.vb (4)
4211Public Sub New(syntax As SyntaxNode, propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, isLValue As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, type As TypeSymbol, Optional hasErrors As Boolean = False) 4248Private ReadOnly _AccessKind As PropertyAccessKind 4249Public ReadOnly Property AccessKind As PropertyAccessKind 4295Public Function Update(propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, isLValue As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, type As TypeSymbol) As BoundPropertyAccess
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
595result = DirectCast(result, BoundPropertyAccess).SetAccessKind(PropertyAccessKind.Get)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
605Debug.Assert(DirectCast(assignment.Left, BoundPropertyAccess).AccessKind = PropertyAccessKind.Set)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (6)
42Debug.Assert((accessKind And PropertyAccessKind.Set) <> 0) 43Debug.Assert(((accessKind And PropertyAccessKind.Get) = 0) = (node.LeftOnTheRightOpt Is Nothing)) 61assignmentTarget = setNode.SetAccessKind(PropertyAccessKind.Unknown) 73setNode = useTwice.First.SetAccessKind(PropertyAccessKind.Set) 75leftOnTheRight = useTwice.Second.SetAccessKind(PropertyAccessKind.Get) 207Debug.Assert(setNode.AccessKind = PropertyAccessKind.Set)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
212If propertyAccess.AccessKind = PropertyAccessKind.Get AndAlso
Lowering\LocalRewriter\LocalRewriter_Call.vb (9)
264PropertyAccessKind.Get, 265PropertyAccessKind.Get Or PropertyAccessKind.Set)) 266originalArgument = originalArgument.SetAccessKind(PropertyAccessKind.Unknown) 274Debug.Assert(originalArgument.GetAccessKind() = PropertyAccessKind.Unknown) 275originalArgument = originalArgument.SetAccessKind(PropertyAccessKind.Get) 306firstUse = useTwice.First.SetAccessKind(PropertyAccessKind.Get).MakeRValue() 307secondUse = useTwice.Second.SetAccessKind(If(originalArgument.IsPropertyReturnsByRef(), PropertyAccessKind.Get, PropertyAccessKind.Set))
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (1)
111accessKind:=PropertyAccessKind.Set,
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (2)
885argument = useTwice.First.SetAccessKind(PropertyAccessKind.Get) 886writeTarget = useTwice.Second.SetAccessKind(PropertyAccessKind.Set)
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.vb (1)
11Debug.Assert(node.AccessKind = PropertyAccessKind.Get)
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
142PropertyAccessKind.Get,
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (2)
43arrayValueAccess = DirectCast(arrayValueAccess, BoundPropertyAccess).SetAccessKind(PropertyAccessKind.Get) 77assignmentTarget = DirectCast(assignmentTarget, BoundPropertyAccess).SetAccessKind(PropertyAccessKind.Set)
Lowering\UseTwiceRewriter.vb (1)
180Debug.Assert(Not value.IsPropertyOrXmlPropertyAccess() OrElse (value.GetAccessKind() = PropertyAccessKind.Get))