1 write to Binder
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\UnboundLambda.cs (1)
555
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)
623
this.
Binder
.GenerateAnonymousFunctionConversionError(diagnostics, _unboundLambda.Syntax, _unboundLambda, targetType);
629
bool inExpressionTree =
Binder
.InExpressionTree || isTargetExpressionTree;
694
if (ParameterHelpers.IsRefScopedByDefault(
Binder
.UseUpdatedEscapeRules, refKind))
729
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
739
Binder
.ContainingMemberOrLambda,
747
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
757
Binder
.Conversions);
791
returnType = TypeWithAnnotations.Create(
Binder
.Compilation.GetSpecialType(SpecialType.System_Void));
794
return
Binder
.GetMethodGroupOrLambdaDelegateType(
797
hasParams: OverloadResolution.IsValidParams(
Binder
, lambdaSymbol, disallowExpandedNonArrayParams: false, out _),
806
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
816
var compilation =
Binder
.Compilation;
841
lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda, returnType, cacheKey.ParameterTypes, cacheKey.ParameterRefKinds, refKind);
842
lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
), inExpressionTree ? BinderFlags.InExpressionTree : BinderFlags.None);
882
if (Binder.MethodOrLambdaRequiresValue(lambdaSymbol, this.
Binder
.Compilation))
918
Binder
,
919
Binder
.Compilation,
954
this.
Binder
.ReportUnsafeIfNotAllowed(this.ParameterLocation(i), diagnostics);
994
? TypeWithAnnotations.Create(this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void))
1025
var lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda!,
1030
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
1242
? this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void)
1243
: this.
Binder
.CreateErrorType();
1591
return new PlainUnboundLambdaState(
Binder
, _returnRefKind, _returnType, _parameterAttributes, _parameterNames, _parameterIsDiscardOpt, _parameterTypesWithAnnotations, _parameterRefKinds, _parameterDeclaredScopes, _defaultValues, _parameterSyntaxList, isAsync: _isAsync, isStatic: _isStatic, includeCache: includeCache);