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