1 write to Binder
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\UnboundLambda.cs (1)
564
this.
Binder
= binder;
25 references to Binder
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.QueryUnboundLambdaState.cs (1)
71
return new QueryUnboundLambdaState(
Binder
, _rangeVariableMap, _parameters, _bodyFactory, includeCache);
BoundTree\UnboundLambda.cs (24)
632
this.
Binder
.GenerateAnonymousFunctionConversionError(diagnostics, _unboundLambda.Syntax, _unboundLambda, targetType);
638
bool inExpressionTree =
Binder
.InExpressionTree || isTargetExpressionTree;
705
if (ParameterHelpers.IsRefScopedByDefault(
Binder
.UseUpdatedEscapeRules, refKind))
740
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
750
Binder
.ContainingMemberOrLambda,
759
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
769
Binder
.Conversions);
805
returnType = TypeWithAnnotations.Create(
Binder
.Compilation.GetSpecialType(SpecialType.System_Void));
808
return
Binder
.GetMethodGroupOrLambdaDelegateType(
811
hasParams: OverloadResolution.IsValidParams(
Binder
, lambdaSymbol, disallowExpandedNonArrayParams: false, out _),
820
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
830
var compilation =
Binder
.Compilation;
862
lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda, returnType, cacheKey.ParameterTypes, cacheKey.ParameterRefKinds, refKind, refCustomModifiers);
863
lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
), inExpressionTree ? BinderFlags.InExpressionTree : BinderFlags.None);
903
if (Binder.MethodOrLambdaRequiresValue(lambdaSymbol, this.
Binder
.Compilation))
940
Binder
,
941
Binder
.Compilation,
977
this.
Binder
.ReportUnsafeIfNotAllowed(this.ParameterLocation(i), diagnostics, disallowedUnder: MemorySafetyRules.Legacy);
1023
? TypeWithAnnotations.Create(this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void))
1059
var lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda!,
1065
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
1279
? this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void)
1280
: this.
Binder
.CreateErrorType();
1633
return new PlainUnboundLambdaState(
Binder
, _returnRefKind, _refCustomModifiers, _returnType, _parameterAttributes, _parameterNames, _parameterIsDiscardOpt, _parameterTypesWithAnnotations, _parameterRefKinds, _parameterDeclaredScopes, _defaultValues, _parameterSyntaxList, isAsync: _isAsync, isStatic: _isStatic, includeCache: includeCache);