1 write to Binder
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\UnboundLambda.cs (1)
564this.Binder = binder;
25 references to Binder
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.QueryUnboundLambdaState.cs (1)
71return new QueryUnboundLambdaState(Binder, _rangeVariableMap, _parameters, _bodyFactory, includeCache);
BoundTree\UnboundLambda.cs (24)
632this.Binder.GenerateAnonymousFunctionConversionError(diagnostics, _unboundLambda.Syntax, _unboundLambda, targetType); 638bool inExpressionTree = Binder.InExpressionTree || isTargetExpressionTree; 705if (ParameterHelpers.IsRefScopedByDefault(Binder.UseUpdatedEscapeRules, refKind)) 740Debug.Assert(Binder.ContainingMemberOrLambda is { }); 750Binder.ContainingMemberOrLambda, 759var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder)); 769Binder.Conversions); 803returnType = TypeWithAnnotations.Create(Binder.Compilation.GetSpecialType(SpecialType.System_Void)); 806return Binder.GetMethodGroupOrLambdaDelegateType( 809hasParams: OverloadResolution.IsValidParams(Binder, lambdaSymbol, disallowExpandedNonArrayParams: false, out _), 818Debug.Assert(Binder.ContainingMemberOrLambda is { }); 828var compilation = Binder.Compilation; 854lambdaSymbol = CreateLambdaSymbol(Binder.ContainingMemberOrLambda, returnType, cacheKey.ParameterTypes, cacheKey.ParameterRefKinds, refKind, refCustomModifiers); 855lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder), inExpressionTree ? BinderFlags.InExpressionTree : BinderFlags.None); 895if (Binder.MethodOrLambdaRequiresValue(lambdaSymbol, this.Binder.Compilation)) 932Binder, 933Binder.Compilation, 969this.Binder.ReportUnsafeIfNotAllowed(this.ParameterLocation(i), diagnostics); 1015? TypeWithAnnotations.Create(this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)) 1051var lambdaSymbol = CreateLambdaSymbol(Binder.ContainingMemberOrLambda!, 1057var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder)); 1271? this.Binder.Compilation.GetSpecialType(SpecialType.System_Void) 1272: this.Binder.CreateErrorType(); 1625return new PlainUnboundLambdaState(Binder, _returnRefKind, _refCustomModifiers, _returnType, _parameterAttributes, _parameterNames, _parameterIsDiscardOpt, _parameterTypesWithAnnotations, _parameterRefKinds, _parameterDeclaredScopes, _defaultValues, _parameterSyntaxList, isAsync: _isAsync, isStatic: _isStatic, includeCache: includeCache);