1 write to Binder
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\UnboundLambda.cs (1)
525
this.
Binder
= binder;
25 references to Binder
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.QueryUnboundLambdaState.cs (1)
70
return new QueryUnboundLambdaState(
Binder
, _rangeVariableMap, _parameters, _bodyFactory, includeCache);
BoundTree\UnboundLambda.cs (24)
593
this.
Binder
.GenerateAnonymousFunctionConversionError(diagnostics, _unboundLambda.Syntax, _unboundLambda, targetType);
599
bool inExpressionTree =
Binder
.InExpressionTree || isTargetExpressionTree;
664
if (ParameterHelpers.IsRefScopedByDefault(
Binder
.UseUpdatedEscapeRules, refKind))
699
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
709
Binder
.ContainingMemberOrLambda,
717
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
727
Binder
.Conversions);
761
returnType = TypeWithAnnotations.Create(
Binder
.Compilation.GetSpecialType(SpecialType.System_Void));
764
return
Binder
.GetMethodGroupOrLambdaDelegateType(
767
hasParams: OverloadResolution.IsValidParams(
Binder
, lambdaSymbol, disallowExpandedNonArrayParams: false, out _),
776
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
786
var compilation =
Binder
.Compilation;
811
lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda, returnType, cacheKey.ParameterTypes, cacheKey.ParameterRefKinds, refKind);
812
lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
), inExpressionTree ? BinderFlags.InExpressionTree : BinderFlags.None);
852
if (Binder.MethodOrLambdaRequiresValue(lambdaSymbol, this.
Binder
.Compilation))
888
Binder
,
889
Binder
.Compilation,
924
this.
Binder
.ReportUnsafeIfNotAllowed(this.ParameterLocation(i), diagnostics);
964
? TypeWithAnnotations.Create(this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void))
995
var lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda!,
1000
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
1212
? this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void)
1213
: this.
Binder
.CreateErrorType();
1561
return new PlainUnboundLambdaState(
Binder
, _returnRefKind, _returnType, _parameterAttributes, _parameterNames, _parameterIsDiscardOpt, _parameterTypesWithAnnotations, _parameterRefKinds, _parameterDeclaredScopes, _defaultValues, _parameterSyntaxList, isAsync: _isAsync, isStatic: _isStatic, includeCache: includeCache);