65 references to UnboundLambda
Microsoft.CodeAnalysis.VisualBasic (65)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
2405
Public Overrides Function VisitUnboundLambda(node As
UnboundLambda
) As BoundNode
Binding\Binder_Conversions.vb (3)
1218
argument = ReclassifyUnboundLambdaExpression(DirectCast(argument,
UnboundLambda
), conversionSemantics, tree,
1302
unboundLambda As
UnboundLambda
,
1374
boundLambda = unboundLambda.GetBoundLambda(New
UnboundLambda
.TargetSignature(delegateInvoke))
Binding\Binder_Expressions.vb (4)
542
expressionType = DirectCast(expression,
UnboundLambda
).InferredAnonymousDelegate.Key
1451
Return ReclassifyUnboundLambdaExpression(DirectCast(expr,
UnboundLambda
), diagnostics)
1693
lambda As
UnboundLambda
,
4529
expressionType = DirectCast(expression,
UnboundLambda
).InferredAnonymousDelegate.Key
Binding\Binder_Lambda.vb (19)
80
Return New UnboundLambda(node, Me, modifiers, parameters, returnType, New
UnboundLambda
.UnboundLambdaBindingCache(diagnostics.AccumulatesDependencies), hasErrors)
84
source As
UnboundLambda
,
85
targetSignature As
UnboundLambda
.TargetSignature,
152
Friend Function BindUnboundLambda(source As
UnboundLambda
, target As
UnboundLambda
.TargetSignature) As BoundLambda
201
Dim targetForInference As
UnboundLambda
.TargetSignature = target
204
targetForInference = New
UnboundLambda
.TargetSignature(targetForInference.ParameterTypes, targetForInference.ParameterIsByRef,
767
Friend Function InferAnonymousDelegateForLambda(source As
UnboundLambda
) As KeyValuePair(Of NamedTypeSymbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol))
773
Dim targetSignature As New
UnboundLambda
.TargetSignature(ImmutableArray(Of ParameterSymbol).Empty, Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False)
777
returnTypeInfo = source.InferReturnType(New
UnboundLambda
.TargetSignature(StaticCast(Of ParameterSymbol).From(parameters), targetSignature.ReturnType, targetSignature.ReturnsByRef))
788
source As
UnboundLambda
,
816
Friend Function BindLambdaForErrorRecovery(source As
UnboundLambda
) As BoundLambda
824
Dim target As
UnboundLambda
.TargetSignature = pair.Key
834
Dim target As
UnboundLambda
.TargetSignature = pair.Key
861
commonReturnType = source.InferReturnType(New
UnboundLambda
.TargetSignature(commonParameterTypes.AsImmutableOrNull(),
868
New
UnboundLambda
.TargetSignature(commonParameterTypes.AsImmutableOrNull(), isByRef, commonReturnType, returnsByRef:=False),
886
source As
UnboundLambda
,
887
targetParameters As
UnboundLambda
.TargetSignature
1007
Private Shared Function LambdaHeaderErrorNode(source As
UnboundLambda
) As SyntaxNode
Binding\Binder_Statements.vb (1)
1395
inferredType = DirectCast(inferFrom,
UnboundLambda
).InferredAnonymousDelegate.Key
Binding\MemberSemanticModel.vb (1)
2258
Public Overrides Function VisitUnboundLambda(node As
UnboundLambda
) As BoundNode
BoundTree\BoundNodeExtensions.vb (1)
54
Return DirectCast(boundNode,
UnboundLambda
).Binder
BoundTree\BoundNodeFinder.vb (1)
57
Public Overrides Function VisitUnboundLambda(node As
UnboundLambda
) As BoundNode
Generated\BoundNodes.xml.Generated.vb (12)
6786
Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As
UnboundLambda
.UnboundLambdaBindingCache, hasErrors As Boolean)
6805
Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As
UnboundLambda
.UnboundLambdaBindingCache)
6850
Private ReadOnly _BindingCache As
UnboundLambda
.UnboundLambdaBindingCache
6851
Public ReadOnly Property BindingCache As
UnboundLambda
.UnboundLambdaBindingCache
6862
Public Function Update(binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As
UnboundLambda
.UnboundLambdaBindingCache) As
UnboundLambda
9595
Return VisitUnboundLambda(CType(node,
UnboundLambda
), arg)
10203
Public Overridable Function VisitUnboundLambda(node As
UnboundLambda
, arg As A) As R
10906
Public Overridable Function VisitUnboundLambda(node As
UnboundLambda
) As BoundNode
11776
Public Overrides Function VisitUnboundLambda(node As
UnboundLambda
) As BoundNode
12818
Public Overrides Function VisitUnboundLambda(node As
UnboundLambda
) As BoundNode
14191
Public Overrides Function VisitUnboundLambda(node As
UnboundLambda
, arg As Object) As TreeDumperNode
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
498
Public NotOverridable Overrides Function VisitUnboundLambda(node As
UnboundLambda
) As BoundNode
Semantics\Conversions.vb (7)
1056
Return ClassifyUnboundLambdaConversion(DirectCast(source,
UnboundLambda
), destination)
1080
Private Shared Function ClassifyUnboundLambdaConversion(source As
UnboundLambda
, destination As TypeSymbol) As ConversionKind
1126
Dim bound As BoundLambda = source.Bind(New
UnboundLambda
.TargetSignature(delegateInvoke))
4151
Return ClassifyMethodConversionForLambdaOrAnonymousDelegate(New
UnboundLambda
.TargetSignature(toMethod), lambdaOrDelegateInvokeSymbol, useSiteInfo)
4155
toMethodSignature As
UnboundLambda
.TargetSignature,
4179
Return ClassifyMethodConversionForLambdaOrAnonymousDelegateBasedOnParameters(New
UnboundLambda
.TargetSignature(toDelegateInvokeMethod), parameters, useSiteInfo)
4183
toMethodSignature As
UnboundLambda
.TargetSignature,
Semantics\OverloadResolution.vb (2)
3316
Dim unbound = If(underlying.Kind = BoundKind.UnboundLambda, DirectCast(underlying,
UnboundLambda
), Nothing)
3325
Dim bound As BoundLambda = unbound.GetBoundLambda(New
UnboundLambda
.TargetSignature(delegateInvoke))
Semantics\TypeInference\TypeArgumentInference.vb (8)
450
Dim unboundLambda = DirectCast(Expression,
UnboundLambda
)
1204
lambdaParameters = DirectCast(argNode.Expression,
UnboundLambda
).Parameters
2001
Dim inferredAnonymousDelegate As KeyValuePair(Of NamedTypeSymbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol)) = DirectCast(argument,
UnboundLambda
).InferredAnonymousDelegate
2069
lambdaParams = DirectCast(argument,
UnboundLambda
).Parameters
2131
Dim unboundLambda = DirectCast(argument,
UnboundLambda
)
2134
Dim inferenceSignature As New
UnboundLambda
.TargetSignature(delegateParams, unboundLambda.Binder.Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False)
2147
Dim boundLambda As BoundLambda = unboundLambda.Bind(New
UnboundLambda
.TargetSignature(inferenceSignature.ParameterTypes,
2203
Dim boundLambda As BoundLambda = unboundLambda.Bind(New
UnboundLambda
.TargetSignature(delegateParams,
Symbols\Source\SourceLambdaSymbol.vb (4)
12
Private ReadOnly _unboundLambda As
UnboundLambda
19
unboundLambda As
UnboundLambda
,
32
Public ReadOnly Property UnboundLambda As
UnboundLambda
69
Dim targetSignature As New
UnboundLambda
.TargetSignature(anonymousDelegateSymbol.DelegateInvokeMethod)