5 instantiations of UnboundLambda
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Query.cs (1)
880
var lambda = new
UnboundLambda
(node, state, functionType: null, withDependencies, hasErrors: false) { WasCompilerGenerated = true };
BoundTree\UnboundLambda.cs (3)
421
var lambda = new
UnboundLambda
(syntax, data, functionType, withDependencies, hasErrors: hasErrors);
438
var lambda = new
UnboundLambda
(Syntax, data, FunctionType, WithDependencies, nullableState, getterNullResilienceData, HasErrors);
451
var lambda = new
UnboundLambda
(Syntax, data, FunctionType, WithDependencies, _nullableState, _getterNullResilienceData, HasErrors);
Generated\BoundNodes.xml.Generated.cs (1)
7668
var result = new
UnboundLambda
(this.Syntax, data, functionType, withDependencies, this.HasErrors);
105 references to UnboundLambda
Microsoft.CodeAnalysis.CSharp (105)
Binder\Binder.IdentifierUsedAsValueFinder.cs (3)
173
UnboundLambda
unboundLambda = enclosingBinder.AnalyzeAnonymousFunction(lambdaSyntax, BindingDiagnosticBag.Discarded);
178
private static ExecutableCodeBinder CreateLambdaBodyBinder(Binder enclosingBinder,
UnboundLambda
unboundLambda)
539
UnboundLambda
unboundLambda = Binder.MakeQueryUnboundLambda(
Binder\Binder_Conversions.cs (2)
2220
var
unboundLambda = (
UnboundLambda
)source;
Binder\Binder_Expressions.cs (4)
2799
GenerateAnonymousFunctionConversionError(diagnostics, operand.Syntax, (
UnboundLambda
)operand, targetType);
5423
else if (argument is
UnboundLambda
unboundLambda)
7736
var msgId = ((
UnboundLambda
)boundLeft).MessageID;
11541
var msgId = ((
UnboundLambda
)receiver).MessageID;
Binder\Binder_Invocation.cs (3)
1188
case
UnboundLambda
unboundLambda:
2176
var
unboundArgument = (
UnboundLambda
)argument;
Binder\Binder_Lambda.cs (4)
38
private
UnboundLambda
AnalyzeAnonymousFunction(
255
return
UnboundLambda
.Create(syntax, this, diagnostics.AccumulatesDependencies, returnRefKind, returnType, parameterAttributes, refKinds, scopes, types, names, discardsOpt, parameterSyntaxListOpt, defaultValues, isAsync: isAsync, isStatic: isStatic);
358
private
UnboundLambda
BindAnonymousFunction(AnonymousFunctionExpressionSyntax syntax, BindingDiagnosticBag diagnostics)
363
var
lambda = AnalyzeAnonymousFunction(syntax, diagnostics);
Binder\Binder_Operators.cs (1)
3980
case
UnboundLambda
_:
Binder\Binder_Query.cs (21)
232
var
lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), x, v, diagnostics.AccumulatesDependencies);
258
var
lambdaLeft = MakeQueryUnboundLambda(state.RangeVariableMap(), x, k, diagnostics.AccumulatesDependencies);
366
var
lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, where.Condition, diagnostics.AccumulatesDependencies);
406
var
outerKeySelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, join.LeftExpression, diagnostics.AccumulatesDependencies);
410
var
innerKeySelectorLambda = MakeQueryUnboundLambda(QueryTranslationState.RangeVariableMap(x2), x2, join.RightExpression, diagnostics.AccumulatesDependencies);
424
var
resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies);
453
var
resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, g), select.Expression, diagnostics.AccumulatesDependencies);
494
var
resultSelectorLambda = MakePairLambda(join, state, x1, x2, diagnostics.AccumulatesDependencies);
525
var
resultSelectorLambda = MakePairLambda(join, state, x1, g, diagnostics.AccumulatesDependencies);
571
var
lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, ordering.Expression, diagnostics.AccumulatesDependencies);
613
var
resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies);
661
var
resultSelectorLambda = MakePairLambda(from, state, x1, x2, diagnostics.AccumulatesDependencies);
698
private
UnboundLambda
MakePairLambda(CSharpSyntaxNode node, QueryTranslationState state, RangeVariableSymbol x1, RangeVariableSymbol x2, bool withDependencies)
710
var
result = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), node, bodyFactory, withDependencies);
763
var
lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies);
837
private
UnboundLambda
MakeQueryUnboundLambda(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, bool withDependencies)
842
private
UnboundLambda
MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, ExpressionSyntax expression, bool withDependencies)
853
private
UnboundLambda
MakeQueryUnboundLambdaWithCast(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, TypeSyntax castTypeSyntax, TypeWithAnnotations castType, bool withDependencies)
871
private
UnboundLambda
MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies)
876
private static
UnboundLambda
MakeQueryUnboundLambda(CSharpSyntaxNode node, QueryUnboundLambdaState state, bool withDependencies)
880
var
lambda = new UnboundLambda(node, state, functionType: null, withDependencies, hasErrors: false) { WasCompilerGenerated = true };
Binder\Binder_QueryErrors.cs (2)
222
var
unbound = (
UnboundLambda
)arg;
Binder\Binder_Statements.cs (2)
2038
UnboundLambda
anonymousFunction, TypeSymbol targetType)
2367
GenerateAnonymousFunctionConversionError(diagnostics, syntax, (
UnboundLambda
)operand, targetType);
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1467
private static LambdaConversionResult IsAnonymousFunctionCompatibleWithDelegate(
UnboundLambda
anonymousFunction, TypeSymbol type, CSharpCompilation compilation, bool isTargetExpressionTree)
1586
private static LambdaConversionResult IsAnonymousFunctionCompatibleWithExpressionTree(
UnboundLambda
anonymousFunction, NamedTypeSymbol type, CSharpCompilation compilation)
1624
public static LambdaConversionResult IsAnonymousFunctionCompatibleWithType(
UnboundLambda
anonymousFunction, TypeSymbol type, CSharpCompilation compilation)
1651
return IsAnonymousFunctionCompatibleWithType((
UnboundLambda
)source, destination, compilation) == LambdaConversionResult.Success;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
1562
UnboundLambda
anonymousFunction = (
UnboundLambda
)source;
1616
UnboundLambda
anonymousFunction = (
UnboundLambda
)source;
3093
var
anonymousFunction = (
UnboundLambda
)source;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
2943
var
lambdaOpt = node as
UnboundLambda
;
3289
BoundLambda lambda = ((
UnboundLambda
)node).BindForReturnTypeInference(d);
3514
UnboundLambda
lambdaOpt = node as
UnboundLambda
;
3677
private bool CanDowngradeConversionFromLambdaToNeither(BetterResult currentResult,
UnboundLambda
lambda, TypeSymbol type1, TypeSymbol type2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool fromTypeAnalysis)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1072
hadError |= ((
UnboundLambda
)argument).GenerateSummaryErrors(diagnostics);
1220
((
UnboundLambda
)argument).GenerateAnonymousFunctionConversionError(diagnostics, parameterType);
BoundTree\BoundExpressionExtensions.cs (1)
158
UnboundLambda
unboundLambda => unboundLambda.FunctionType,
BoundTree\UnboundLambda.cs (12)
82
public BoundLambda(SyntaxNode syntax,
UnboundLambda
unboundLambda, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? delegateType, InferredLambdaReturnType inferredReturnType)
200
UnboundLambda
node, Binder binder, TypeSymbol? delegateType, bool isAsync, ConversionsBase conversions)
398
public static
UnboundLambda
Create(
419
var functionType = FunctionTypeSymbol.CreateIfFeatureEnabled(syntax, binder, static (binder, expr) => ((
UnboundLambda
)expr).Data.InferDelegateType());
421
var
lambda = new UnboundLambda(syntax, data, functionType, withDependencies, hasErrors: hasErrors);
435
internal
UnboundLambda
WithNullabilityInfo(NullableWalker.VariableState nullableState, NullableWalker.GetterNullResilienceData? getterNullResilienceData)
438
var
lambda = new UnboundLambda(Syntax, data, FunctionType, WithDependencies, nullableState, getterNullResilienceData, HasErrors);
443
internal
UnboundLambda
WithNoCache()
451
var
lambda = new UnboundLambda(Syntax, data, FunctionType, WithDependencies, _nullableState, _getterNullResilienceData, HasErrors);
529
private
UnboundLambda
_unboundLambda = null!; // we would prefer this readonly, but we have an initialization cycle.
558
public void SetUnboundLambda(
UnboundLambda
unbound)
579
public
UnboundLambda
UnboundLambda => _unboundLambda;
Compilation\CSharpSemanticModel.cs (1)
2247
var lambda = ((
UnboundLambda
)boundExpr).BindForErrorRecovery();
Compilation\MemberSemanticModel.cs (3)
1784
boundInnerLambdaOrQuery = ((
UnboundLambda
)boundInnerLambdaOrQuery).BindForErrorRecovery();
1849
var
unbound = (
UnboundLambda
)node;
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
171
current = ((
UnboundLambda
)node).BindForErrorRecovery();
Compiler\MethodCompiler.cs (1)
2352
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\AbstractFlowPass.cs (1)
3249
public override BoundNode VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\NullableWalker.cs (4)
8600
static
UnboundLambda
getUnboundLambda(BoundLambda expr, VariableState variableState, GetterNullResilienceData? getterNullResilienceData)
9309
UnboundLambda
unboundLambda = lambda.UnboundLambda;
10550
var
unboundLambda = lambda.UnboundLambda;
10556
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
181
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\ReadWriteWalker.cs (1)
283
public override BoundNode VisitUnboundLambda(
UnboundLambda
node)
Generated\BoundNodes.xml.Generated.cs (15)
7594
public BoundLambda(SyntaxNode syntax,
UnboundLambda
unboundLambda, MethodSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type, bool hasErrors = false)
7610
public
UnboundLambda
UnboundLambda { get; }
7620
public BoundLambda Update(
UnboundLambda
unboundLambda, MethodSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type)
7664
public
UnboundLambda
Update(UnboundLambdaState data, FunctionTypeSymbol? functionType, Boolean withDependencies)
7668
var
result = new UnboundLambda(this.Syntax, data, functionType, withDependencies, this.HasErrors);
9269
return VisitUnboundLambda((
UnboundLambda
)node, arg);
9541
public virtual R VisitUnboundLambda(
UnboundLambda
node, A arg) => this.DefaultVisit(node, arg);
9777
public virtual BoundNode? VisitUnboundLambda(
UnboundLambda
node) => this.DefaultVisit(node);
10679
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node) => null;
12157
UnboundLambda
unboundLambda = node.UnboundLambda;
12162
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
14717
UnboundLambda
unboundLambda = node.UnboundLambda;
14733
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
14736
UnboundLambda
updatedNode;
16987
public override TreeDumperNode VisitUnboundLambda(
UnboundLambda
node, object? arg) => new TreeDumperNode("unboundLambda", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
86
return CreateUnboundLambdaOperation((
UnboundLambda
)boundNode);
984
private IOperation CreateUnboundLambdaOperation(
UnboundLambda
unboundLambda)
Symbols\Source\LambdaSymbol.cs (2)
46
UnboundLambda
unboundLambda,
324
UnboundLambda
unboundLambda,