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