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