2 instantiations of LambdaSymbol
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
181
var lambdaSymbol = new
LambdaSymbol
(
BoundTree\UnboundLambda.cs (1)
887
=> new
LambdaSymbol
(
68 references to LambdaSymbol
Microsoft.CodeAnalysis.CSharp (68)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
181
var
lambdaSymbol = new LambdaSymbol(
535
(
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => throw ExceptionUtilities.Unreachable()),
Binder\Binder.QueryUnboundLambdaState.cs (3)
17
private delegate BoundBlock LambdaBodyFactory(
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics);
63
public override Binder GetWithParametersBinder(
LambdaSymbol
lambdaSymbol, Binder binder)
83
protected override BoundBlock BindLambdaBodyCore(
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
26
public WithQueryLambdaParametersBinder(
LambdaSymbol
lambdaSymbol, RangeVariableMap rangeVariableMap, Binder next)
Binder\Binder_Await.cs (1)
180
new CSDiagnosticInfo(ErrorCode.ERR_BadAwaitWithoutAsyncLambda, ((
LambdaSymbol
)method).MessageID.Localize());
Binder\Binder_Conversions.cs (2)
2309
private static void CheckLambdaConversion(
LambdaSymbol
lambdaSymbol, TypeSymbol targetType, BindingDiagnosticBag diagnostics)
2384
LambdaSymbol
lambdaSymbol,
Binder\Binder_Query.cs (4)
691
LambdaBodyFactory bodyFactory = (
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag d) =>
725
LambdaBodyFactory bodyFactory = (
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag d) =>
833
return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, parameters, (
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) =>
844
return MakeQueryUnboundLambda(expression, new QueryUnboundLambdaState(this, qvm, ImmutableArray.Create(parameter), (
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) =>
Binder\Binder_Statements.cs (6)
2972
if ((object)returnType ==
LambdaSymbol
.ReturnTypeIsBeingInferred)
3056
if (container is
LambdaSymbol
)
3185
if (this.ContainingMemberOrLambda is
LambdaSymbol
)
3375
var
lambda = this.ContainingMemberOrLambda as
LambdaSymbol
;
3520
var inferringLambda = this.ContainingMemberOrLambda is MethodSymbol method && (object)method.ReturnType ==
LambdaSymbol
.ReturnTypeIsBeingInferred;
Binder\LocalBinderFactory.cs (1)
303
if (target is
LambdaSymbol
lambda)
Binder\RefSafetyAnalysis.cs (1)
320
var
lambda = node.Symbol;
Binder\WithLambdaParametersBinder.cs (2)
18
protected readonly
LambdaSymbol
lambdaSymbol;
22
public WithLambdaParametersBinder(
LambdaSymbol
lambdaSymbol, Binder enclosing)
BoundTree\NullabilityRewriter.cs (3)
138
case
LambdaSymbol
lambda:
154
Symbol remapLambda(BoundLambda boundLambda,
LambdaSymbol
lambda)
163
LambdaSymbol
updatedLambda;
BoundTree\UnboundLambda.cs (19)
83
: this(syntax, unboundLambda.WithNoCache(), (
LambdaSymbol
)binder.ContainingMemberOrLambda!, body, diagnostics, binder, delegateType)
164
internal
LambdaSymbol
CreateLambdaSymbol(NamedTypeSymbol delegateType, Symbol containingSymbol) =>
167
internal
LambdaSymbol
CreateLambdaSymbol(
464
public Binder GetWithParametersBinder(
LambdaSymbol
lambdaSymbol, Binder binder)
567
protected BoundBlock BindLambdaBody(
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics)
578
protected abstract BoundBlock BindLambdaBodyCore(
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics);
708
var
lambdaSymbol = CreateLambdaSymbol(
781
LambdaSymbol
lambdaSymbol;
802
(object)
LambdaSymbol
.InferenceFailureReturnType != lambdaSymbol.ReturnType &&
881
internal
LambdaSymbol
CreateLambdaSymbol(
897
internal
LambdaSymbol
CreateLambdaSymbol(NamedTypeSymbol delegateType, Symbol containingSymbol)
936
(
var
lambdaSymbol, var block, var lambdaBodyBinder, var diagnostics) = BindWithParameterAndReturnType(parameterTypes, parameterRefKinds, returnType, refKind);
965
: TypeWithAnnotations.Create(
LambdaSymbol
.InferenceFailureReturnType);
988
private (
LambdaSymbol
lambdaSymbol, BoundBlock block, ExecutableCodeBinder lambdaBodyBinder, BindingDiagnosticBag diagnostics) BindWithParameterAndReturnType(
995
var
lambdaSymbol = CreateLambdaSymbol(Binder.ContainingMemberOrLambda!,
1134
public virtual Binder GetWithParametersBinder(
LambdaSymbol
lambdaSymbol, Binder binder)
1219
(
var
lambdaSymbol, var block, var lambdaBodyBinder, var diagnostics) = BindWithParameterAndReturnType(parameterTypes, parameterRefKinds, returnType, refKind);
1261
private static string GetLambdaSortString(
LambdaSymbol
lambda)
1584
protected override BoundBlock BindLambdaBodyCore(
LambdaSymbol
lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics)
Compilation\MemberSemanticModel.cs (3)
874
LambdaSymbol
lambdaSymbol;
877
lambdaSymbol = symbolInfo.Symbol.GetSymbol<
LambdaSymbol
>();
881
lambdaSymbol = symbolInfo.CandidateSymbols.Single().GetSymbol<
LambdaSymbol
>();
FlowAnalysis\DefiniteAssignment.cs (2)
408
var diagnosticLocation = CurrentSymbol is
LambdaSymbol
lambda
1890
if (parameter is SourceComplexParameterSymbolBase { ContainingSymbol: LocalFunctionSymbol or
LambdaSymbol
} sourceComplexParam)
FlowAnalysis\NullableWalker.cs (6)
1688
var
symbol = lambda.Symbol;
1839
if (node is BoundLambda boundLambda && originalSymbol is
LambdaSymbol
l && updatedSymbol is NamedTypeSymbol n)
2985
Debug.Assert((object)returnType !=
LambdaSymbol
.ReturnTypeIsBeingInferred);
3602
(
LambdaSymbol
l, NamedTypeSymbol n) _ when n.IsDelegateType() => AreLambdaAndNewDelegateSimilar(l, n),
3610
private static bool AreLambdaAndNewDelegateSimilar(
LambdaSymbol
l, NamedTypeSymbol n)
8673
LambdaSymbol
sourceMethod = lambda.Symbol;
FlowAnalysis\NullableWalker.SnapshotManager.cs (2)
72
internal NamedTypeSymbol? GetUpdatedDelegateTypeForLambda(
LambdaSymbol
lambda)
235
if (node is BoundLambda && symbol is
LambdaSymbol
)
Generated\BoundNodes.xml.Generated.cs (4)
7592
public BoundLambda(SyntaxNode syntax, UnboundLambda unboundLambda,
LambdaSymbol
symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type, bool hasErrors = false)
7609
public
LambdaSymbol
Symbol { get; }
7618
public BoundLambda Update(UnboundLambda unboundLambda,
LambdaSymbol
symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type)
14542
LambdaSymbol
symbol = GetUpdatedSymbol(node, node.Symbol);
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
564
var
lambda = node.Symbol;
Lowering\LocalRewriter\LocalRewriter.cs (1)
351
var
lambda = node.Symbol;
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
42
if (method is
LambdaSymbol
)
Symbols\Source\LambdaParameterSymbol.cs (1)
17
LambdaSymbol
owner,
Symbols\Source\LambdaSymbol.cs (1)
396
return symbol is
LambdaSymbol
lambda
Symbols\Source\SourceParameterSymbol.cs (1)
44
Debug.Assert(owner is not
LambdaSymbol
); // therefore we don't need to deal with discard parameters