1 write to Binder
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\UnboundLambda.cs (1)
516
this.
Binder
= binder;
24 references to Binder
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder.QueryUnboundLambdaState.cs (1)
71
return new QueryUnboundLambdaState(
Binder
, _rangeVariableMap, _parameters, _bodyFactory, includeCache);
BoundTree\UnboundLambda.cs (23)
573
this.
Binder
.GenerateAnonymousFunctionConversionError(diagnostics, _unboundLambda.Syntax, _unboundLambda, targetType);
579
bool inExpressionTree =
Binder
.InExpressionTree || isTargetExpressionTree;
642
ParameterHelpers.IsRefScopedByDefault(
Binder
.UseUpdatedEscapeRules, refKind))
663
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
673
Binder
.ContainingMemberOrLambda,
681
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
691
Binder
.Conversions);
723
returnType = TypeWithAnnotations.Create(
Binder
.Compilation.GetSpecialType(SpecialType.System_Void));
726
return
Binder
.GetMethodGroupOrLambdaDelegateType(
737
Debug.Assert(
Binder
.ContainingMemberOrLambda is { });
747
var compilation =
Binder
.Compilation;
772
lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda, returnType, cacheKey.ParameterTypes, cacheKey.ParameterRefKinds, refKind);
773
lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
), inExpressionTree ? BinderFlags.InExpressionTree : BinderFlags.None);
812
if (Binder.MethodOrLambdaRequiresValue(lambdaSymbol, this.
Binder
.Compilation))
848
Binder
,
849
Binder
.Compilation,
884
this.
Binder
.ReportUnsafeIfNotAllowed(this.ParameterLocation(i), diagnostics);
924
? TypeWithAnnotations.Create(this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void))
955
var lambdaSymbol = CreateLambdaSymbol(
Binder
.ContainingMemberOrLambda!,
960
var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol,
Binder
));
1172
? this.
Binder
.Compilation.GetSpecialType(SpecialType.System_Void)
1173
: this.
Binder
.CreateErrorType();
1526
return new PlainUnboundLambdaState(
Binder
, _returnRefKind, _returnType, _parameterAttributes, _parameterNames, _parameterIsDiscardOpt, _parameterTypesWithAnnotations, _parameterRefKinds, _parameterDeclaredScopes, _defaultValues, _parameterSyntaxList, isAsync: _isAsync, isStatic: _isStatic, hasParamsArray: _hasParamsArray, includeCache: includeCache);