92 references to LateBoundAccessKind
Microsoft.CodeAnalysis.VisualBasic (92)
Binding\Binder_Expressions.vb (17)
1302If (expr.GetLateBoundAccessKind() And (LateBoundAccessKind.Set Or LateBoundAccessKind.Call)) <> 0 Then 1410Case LateBoundAccessKind.Get 1413Case LateBoundAccessKind.Unknown 1414expr = expr.SetLateBoundAccessKind(LateBoundAccessKind.Get) 1774Debug.Assert(invocation.AccessKind <> LateBoundAccessKind.Get AndAlso invocation.AccessKind <> LateBoundAccessKind.Call) 1775Return invocation.AccessKind <> LateBoundAccessKind.Get AndAlso invocation.AccessKind <> LateBoundAccessKind.Call 1779Debug.Assert(member.AccessKind <> LateBoundAccessKind.Get AndAlso member.AccessKind <> LateBoundAccessKind.Call) 1780Return member.AccessKind <> LateBoundAccessKind.Get AndAlso member.AccessKind <> LateBoundAccessKind.Call 4711getAwaiter = DirectCast(getAwaiter, BoundLateMemberAccess).SetAccessKind(LateBoundAccessKind.Get) 4718isCompleted = DirectCast(isCompleted, BoundLateMemberAccess).SetAccessKind(LateBoundAccessKind.Get) 4726getResult = DirectCast(getResult, BoundLateMemberAccess).SetAccessKind(If(bindAsStatement, LateBoundAccessKind.Call, LateBoundAccessKind.Get))
Binding\Binder_Invocation.vb (2)
2883argument = argument.SetLateBoundAccessKind(LateBoundAccessKind.Get Or LateBoundAccessKind.Set)
Binding\Binder_Latebound.vb (2)
73Dim result = New BoundLateMemberAccess(node, name, containerType, receiver, boundTypeArguments, LateBoundAccessKind.Unknown, objType) 228Return New BoundLateInvocation(node, receiver, arguments, argumentNames, LateBoundAccessKind.Unknown, groupOpt, objType)
Binding\Binder_ObjectInitializer.vb (1)
995invocation = DirectCast(invocation, BoundLateInvocation).SetLateBoundAccessKind(LateBoundAccessKind.Call)
Binding\Binder_Statements.vb (8)
1992Debug.Assert((DirectCast(op1, BoundLateMemberAccess).AccessKind And (LateBoundAccessKind.Get Or LateBoundAccessKind.Call)) = 0) 1993Return DirectCast(op1, BoundLateMemberAccess).SetAccessKind(LateBoundAccessKind.Set) 1996Debug.Assert((DirectCast(op1, BoundLateInvocation).AccessKind And (LateBoundAccessKind.Get Or LateBoundAccessKind.Call)) = 0) 1997Return DirectCast(op1, BoundLateInvocation).SetAccessKind(LateBoundAccessKind.Set) 2731boundInvocation = DirectCast(boundInvocation, BoundLateMemberAccess).SetAccessKind(LateBoundAccessKind.Call) 2735Dim lateInvocation = DirectCast(boundInvocation, BoundLateInvocation).SetAccessKind(LateBoundAccessKind.Call)
BoundTree\BoundAssignmentOperator.vb (6)
69Debug.Assert(Left.GetLateBoundAccessKind() = If(LeftOnTheRightOpt Is Nothing, LateBoundAccessKind.Set, LateBoundAccessKind.Set Or LateBoundAccessKind.Get)) 73Debug.Assert(invocation.AccessKind = If(LeftOnTheRightOpt Is Nothing, LateBoundAccessKind.Set, LateBoundAccessKind.Set Or LateBoundAccessKind.Get))
BoundTree\BoundExpressionExtensions.vb (12)
215Return member.AccessKind <> LateBoundAccessKind.Get AndAlso member.AccessKind <> LateBoundAccessKind.Call 220If invocation.AccessKind = LateBoundAccessKind.Unknown Then 230Return invocation.AccessKind <> LateBoundAccessKind.Get AndAlso invocation.AccessKind <> LateBoundAccessKind.Call 260Public Function GetLateBoundAccessKind(node As BoundExpression) As LateBoundAccessKind 298Public Function SetLateBoundAccessKind(node As BoundExpression, newAccessKind As LateBoundAccessKind) As BoundExpression 330Return DirectCast(node, BoundLateMemberAccess).SetAccessKind(LateBoundAccessKind.Get Or LateBoundAccessKind.Set) 333Return DirectCast(node, BoundLateInvocation).SetAccessKind(LateBoundAccessKind.Get Or LateBoundAccessKind.Set) 640Debug.Assert(Not node.IsLateBound() OrElse node.GetLateBoundAccessKind() = LateBoundAccessKind.Get)
BoundTree\BoundLateInvocation.vb (5)
17Public Function SetAccessKind(newAccessKind As LateBoundAccessKind) As BoundLateInvocation 18Debug.Assert(newAccessKind = LateBoundAccessKind.Unknown OrElse 19Me.AccessKind = LateBoundAccessKind.Unknown OrElse 33Debug.Assert((AccessKind And LateBoundAccessKind.Call) = 0 OrElse (AccessKind And Not LateBoundAccessKind.Call) = 0)
BoundTree\BoundLateMemberAccess.vb (5)
25Public Function SetAccessKind(newAccessKind As LateBoundAccessKind) As BoundLateMemberAccess 26Debug.Assert(newAccessKind = LateBoundAccessKind.Unknown OrElse 27Me.AccessKind = LateBoundAccessKind.Unknown OrElse 35Debug.Assert((AccessKind And LateBoundAccessKind.Call) = 0 OrElse (AccessKind And Not LateBoundAccessKind.Call) = 0)
Generated\BoundNodes.xml.Generated.vb (8)
3201Public Sub New(syntax As SyntaxNode, nameOpt As String, containerTypeOpt As TypeSymbol, receiverOpt As BoundExpression, typeArgumentsOpt As BoundTypeArguments, accessKind As LateBoundAccessKind, type As TypeSymbol, Optional hasErrors As Boolean = False) 3247Private ReadOnly _AccessKind As LateBoundAccessKind 3248Public ReadOnly Property AccessKind As LateBoundAccessKind 3259Public Function Update(nameOpt As String, containerTypeOpt As TypeSymbol, receiverOpt As BoundExpression, typeArgumentsOpt As BoundTypeArguments, accessKind As LateBoundAccessKind, type As TypeSymbol) As BoundLateMemberAccess 3272Public Sub New(syntax As SyntaxNode, member As BoundExpression, argumentsOpt As ImmutableArray(Of BoundExpression), argumentNamesOpt As ImmutableArray(Of string), accessKind As LateBoundAccessKind, methodOrPropertyGroupOpt As BoundMethodOrPropertyGroup, type As TypeSymbol, Optional hasErrors As Boolean = False) 3312Private ReadOnly _AccessKind As LateBoundAccessKind 3313Public ReadOnly Property AccessKind As LateBoundAccessKind 3331Public Function Update(member As BoundExpression, argumentsOpt As ImmutableArray(Of BoundExpression), argumentNamesOpt As ImmutableArray(Of string), accessKind As LateBoundAccessKind, methodOrPropertyGroupOpt As BoundMethodOrPropertyGroup, type As TypeSymbol) As BoundLateInvocation
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (6)
252Dim accessKind As LateBoundAccessKind = node.Left.GetLateBoundAccessKind() 253Debug.Assert((accessKind And LateBoundAccessKind.Set) <> 0) 254Debug.Assert(((accessKind And LateBoundAccessKind.Get) = 0) = (node.LeftOnTheRightOpt Is Nothing)) 261assignmentTarget = assignmentTarget.SetLateBoundAccessKind(LateBoundAccessKind.Unknown) 269assignmentTarget = useTwice.First.SetLateBoundAccessKind(LateBoundAccessKind.Set) 270leftOnTheRight = useTwice.Second.SetLateBoundAccessKind(LateBoundAccessKind.Get)
Lowering\LocalRewriter\LocalRewriter_Call.vb (7)
268Debug.Assert(originalArgument.GetLateBoundAccessKind() = (LateBoundAccessKind.Get Or LateBoundAccessKind.Set)) 269originalArgument = originalArgument.SetLateBoundAccessKind(LateBoundAccessKind.Unknown) 277Debug.Assert(originalArgument.GetLateBoundAccessKind() = LateBoundAccessKind.Unknown) 278originalArgument = originalArgument.SetLateBoundAccessKind(LateBoundAccessKind.Get) 310firstUse = useTwice.First.SetLateBoundAccessKind(LateBoundAccessKind.Get) 311secondUse = useTwice.Second.SetLateBoundAccessKind(LateBoundAccessKind.Set)
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
105boundInvocationExpression = boundInvocationExpression.SetLateBoundAccessKind(LateBoundAccessKind.Call)
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (6)
516Debug.Assert(memberAccess.AccessKind = LateBoundAccessKind.Set) 595Debug.Assert(invocation.AccessKind = LateBoundAccessKind.Set) 664Debug.Assert(memberAccess.AccessKind = LateBoundAccessKind.Call OrElse memberAccess.AccessKind = LateBoundAccessKind.Get) 888argument = useTwice.First.SetLateBoundAccessKind(LateBoundAccessKind.Get) 889writeTarget = useTwice.Second.SetLateBoundAccessKind(LateBoundAccessKind.Set)
Lowering\LocalRewriter\LocalRewriter_LateInvocation.vb (2)
37useLateCall:=node.AccessKind = LateBoundAccessKind.Call) 50Debug.Assert(invocation.AccessKind = LateBoundAccessKind.Get)
Lowering\LocalRewriter\LocalRewriter_LateMemberAccess.vb (1)
27useLateCall:=memberAccess.AccessKind = LateBoundAccessKind.Call)
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (2)
45arrayValueAccess = arrayValueAccess.SetLateBoundAccessKind(LateBoundAccessKind.Get) 79assignmentTarget = assignmentTarget.SetLateBoundAccessKind(LateBoundAccessKind.Set)
Lowering\UseTwiceRewriter.vb (1)
181Debug.Assert(Not value.IsLateBound() OrElse (value.GetLateBoundAccessKind() = LateBoundAccessKind.Get))