5 instantiations of UnboundLambda
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Query.cs (1)
869
var lambda = new
UnboundLambda
(node, state, functionType: null, withDependencies, hasErrors: false) { WasCompilerGenerated = true };
BoundTree\UnboundLambda.cs (3)
413
var lambda = new
UnboundLambda
(syntax, data, functionType, withDependencies, hasErrors: hasErrors);
429
var lambda = new
UnboundLambda
(Syntax, data, FunctionType, WithDependencies, nullableState, HasErrors);
442
var lambda = new
UnboundLambda
(Syntax, data, FunctionType, WithDependencies, _nullableState, HasErrors);
Generated\BoundNodes.xml.Generated.cs (1)
7666
var result = new
UnboundLambda
(this.Syntax, data, functionType, withDependencies, this.HasErrors);
103 references to UnboundLambda
Microsoft.CodeAnalysis.CSharp (103)
Binder\Binder.IdentifierUsedAsValueFinder.cs (3)
173
UnboundLambda
unboundLambda = enclosingBinder.AnalyzeAnonymousFunction(lambdaSyntax, BindingDiagnosticBag.Discarded);
178
private static ExecutableCodeBinder CreateLambdaBodyBinder(Binder enclosingBinder,
UnboundLambda
unboundLambda)
531
UnboundLambda
unboundLambda = Binder.MakeQueryUnboundLambda(
Binder\Binder_Expressions.cs (4)
2726
GenerateAnonymousFunctionConversionError(diagnostics, operand.Syntax, (
UnboundLambda
)operand, targetType);
5330
else if (argument is
UnboundLambda
unboundLambda)
7644
var msgId = ((
UnboundLambda
)boundLeft).MessageID;
11118
var msgId = ((
UnboundLambda
)receiver).MessageID;
Binder\Binder_Invocation.cs (3)
1149
case
UnboundLambda
unboundLambda:
2018
var
unboundArgument = (
UnboundLambda
)argument;
Binder\Binder_Lambda.cs (4)
36
private
UnboundLambda
AnalyzeAnonymousFunction(
244
return
UnboundLambda
.Create(syntax, this, diagnostics.AccumulatesDependencies, returnRefKind, returnType, parameterAttributes, refKinds, scopes, types, names, discardsOpt, parameterSyntaxList, defaultValues, isAsync: isAsync, isStatic: isStatic);
346
private
UnboundLambda
BindAnonymousFunction(AnonymousFunctionExpressionSyntax syntax, BindingDiagnosticBag diagnostics)
351
var
lambda = AnalyzeAnonymousFunction(syntax, diagnostics);
Binder\Binder_Operators.cs (1)
2521
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);
452
var
resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, g), select.Expression, diagnostics.AccumulatesDependencies);
492
var
resultSelectorLambda = MakePairLambda(join, state, x1, x2, diagnostics.AccumulatesDependencies);
522
var
resultSelectorLambda = MakePairLambda(join, state, x1, g, diagnostics.AccumulatesDependencies);
567
var
lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), state.rangeVariable, ordering.Expression, diagnostics.AccumulatesDependencies);
609
var
resultSelectorLambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), select.Expression, diagnostics.AccumulatesDependencies);
656
var
resultSelectorLambda = MakePairLambda(from, state, x1, x2, diagnostics.AccumulatesDependencies);
687
private
UnboundLambda
MakePairLambda(CSharpSyntaxNode node, QueryTranslationState state, RangeVariableSymbol x1, RangeVariableSymbol x2, bool withDependencies)
699
var
result = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x1, x2), node, bodyFactory, withDependencies);
752
var
lambda = MakeQueryUnboundLambda(state.RangeVariableMap(), ImmutableArray.Create(x), let.Expression, bodyFactory, diagnostics.AccumulatesDependencies);
826
private
UnboundLambda
MakeQueryUnboundLambda(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, bool withDependencies)
831
private
UnboundLambda
MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, ExpressionSyntax expression, bool withDependencies)
842
private
UnboundLambda
MakeQueryUnboundLambdaWithCast(RangeVariableMap qvm, RangeVariableSymbol parameter, ExpressionSyntax expression, TypeSyntax castTypeSyntax, TypeWithAnnotations castType, bool withDependencies)
860
private
UnboundLambda
MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies)
865
private static
UnboundLambda
MakeQueryUnboundLambda(CSharpSyntaxNode node, QueryUnboundLambdaState state, bool withDependencies)
869
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)
2000
UnboundLambda
anonymousFunction, TypeSymbol targetType)
2325
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)
1588
private static LambdaConversionResult IsAnonymousFunctionCompatibleWithExpressionTree(
UnboundLambda
anonymousFunction, NamedTypeSymbol type, CSharpCompilation compilation)
1626
public static LambdaConversionResult IsAnonymousFunctionCompatibleWithType(
UnboundLambda
anonymousFunction, TypeSymbol type, CSharpCompilation compilation)
1653
return IsAnonymousFunctionCompatibleWithType((
UnboundLambda
)source, destination, compilation) == LambdaConversionResult.Success;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
1534
UnboundLambda
anonymousFunction = (
UnboundLambda
)source;
1588
UnboundLambda
anonymousFunction = (
UnboundLambda
)source;
3065
var
anonymousFunction = (
UnboundLambda
)source;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
2890
var
lambdaOpt = node as
UnboundLambda
;
3236
BoundLambda lambda = ((
UnboundLambda
)node).BindForReturnTypeInference(d);
3440
UnboundLambda
lambdaOpt = node as
UnboundLambda
;
3587
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);
1218
((
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)
193
UnboundLambda
node, Binder binder, TypeSymbol? delegateType, bool isAsync, ConversionsBase conversions)
390
public static
UnboundLambda
Create(
411
var functionType = FunctionTypeSymbol.CreateIfFeatureEnabled(syntax, binder, static (binder, expr) => ((
UnboundLambda
)expr).Data.InferDelegateType());
413
var
lambda = new UnboundLambda(syntax, data, functionType, withDependencies, hasErrors: hasErrors);
426
internal
UnboundLambda
WithNullableState(NullableWalker.VariableState nullableState)
429
var
lambda = new UnboundLambda(Syntax, data, FunctionType, WithDependencies, nullableState, HasErrors);
434
internal
UnboundLambda
WithNoCache()
442
var
lambda = new UnboundLambda(Syntax, data, FunctionType, WithDependencies, _nullableState, HasErrors);
499
private
UnboundLambda
_unboundLambda = null!; // we would prefer this readonly, but we have an initialization cycle.
528
public void SetUnboundLambda(
UnboundLambda
unbound)
549
public
UnboundLambda
UnboundLambda => _unboundLambda;
Compilation\CSharpSemanticModel.cs (1)
2233
var lambda = ((
UnboundLambda
)boundExpr).BindForErrorRecovery();
Compilation\MemberSemanticModel.cs (3)
1745
boundInnerLambdaOrQuery = ((
UnboundLambda
)boundInnerLambdaOrQuery).BindForErrorRecovery();
1810
var
unbound = (
UnboundLambda
)node;
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
171
current = ((
UnboundLambda
)node).BindForErrorRecovery();
Compiler\MethodCompiler.cs (1)
2211
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\AbstractFlowPass.cs (1)
3212
public override BoundNode VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\NullableWalker.cs (4)
8000
static
UnboundLambda
getUnboundLambda(BoundLambda expr, VariableState variableState)
8674
UnboundLambda
unboundLambda = lambda.UnboundLambda;
9895
var
unboundLambda = lambda.UnboundLambda;
9901
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
183
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
FlowAnalysis\ReadWriteWalker.cs (1)
278
public override BoundNode VisitUnboundLambda(
UnboundLambda
node)
Generated\BoundNodes.xml.Generated.cs (15)
7592
public BoundLambda(SyntaxNode syntax,
UnboundLambda
unboundLambda, LambdaSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type, bool hasErrors = false)
7608
public
UnboundLambda
UnboundLambda { get; }
7618
public BoundLambda Update(
UnboundLambda
unboundLambda, LambdaSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type)
7662
public
UnboundLambda
Update(UnboundLambdaState data, FunctionTypeSymbol? functionType, Boolean withDependencies)
7666
var
result = new UnboundLambda(this.Syntax, data, functionType, withDependencies, this.HasErrors);
9231
return VisitUnboundLambda((
UnboundLambda
)node, arg);
9503
public virtual R VisitUnboundLambda(
UnboundLambda
node, A arg) => this.DefaultVisit(node, arg);
9739
public virtual BoundNode? VisitUnboundLambda(
UnboundLambda
node) => this.DefaultVisit(node);
10640
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node) => null;
11985
UnboundLambda
unboundLambda = node.UnboundLambda;
11990
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
14543
UnboundLambda
unboundLambda = node.UnboundLambda;
14559
public override BoundNode? VisitUnboundLambda(
UnboundLambda
node)
14562
UnboundLambda
updatedNode;
16811
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)
45
UnboundLambda
unboundLambda,
323
UnboundLambda
unboundLambda,