1 write to Binder
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\UnboundLambda.cs (1)
546this.Binder = binder;
25 references to Binder
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.QueryUnboundLambdaState.cs (1)
70return new QueryUnboundLambdaState(Binder, _rangeVariableMap, _parameters, _bodyFactory, includeCache);
BoundTree\UnboundLambda.cs (24)
614this.Binder.GenerateAnonymousFunctionConversionError(diagnostics, _unboundLambda.Syntax, _unboundLambda, targetType); 620bool inExpressionTree = Binder.InExpressionTree || isTargetExpressionTree; 685if (ParameterHelpers.IsRefScopedByDefault(Binder.UseUpdatedEscapeRules, refKind)) 720Debug.Assert(Binder.ContainingMemberOrLambda is { }); 730Binder.ContainingMemberOrLambda, 738var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder)); 748Binder.Conversions); 782returnType = TypeWithAnnotations.Create(Binder.Compilation.GetSpecialType(SpecialType.System_Void)); 785return Binder.GetMethodGroupOrLambdaDelegateType( 788hasParams: OverloadResolution.IsValidParams(Binder, lambdaSymbol, disallowExpandedNonArrayParams: false, out _), 797Debug.Assert(Binder.ContainingMemberOrLambda is { }); 807var compilation = Binder.Compilation; 832lambdaSymbol = CreateLambdaSymbol(Binder.ContainingMemberOrLambda, returnType, cacheKey.ParameterTypes, cacheKey.ParameterRefKinds, refKind); 833lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder), inExpressionTree ? BinderFlags.InExpressionTree : BinderFlags.None); 873if (Binder.MethodOrLambdaRequiresValue(lambdaSymbol, this.Binder.Compilation)) 909Binder, 910Binder.Compilation, 945this.Binder.ReportUnsafeIfNotAllowed(this.ParameterLocation(i), diagnostics); 985? TypeWithAnnotations.Create(this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)) 1016var lambdaSymbol = CreateLambdaSymbol(Binder.ContainingMemberOrLambda!, 1021var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder)); 1233? this.Binder.Compilation.GetSpecialType(SpecialType.System_Void) 1234: this.Binder.CreateErrorType(); 1582return new PlainUnboundLambdaState(Binder, _returnRefKind, _returnType, _parameterAttributes, _parameterNames, _parameterIsDiscardOpt, _parameterTypesWithAnnotations, _parameterRefKinds, _parameterDeclaredScopes, _defaultValues, _parameterSyntaxList, isAsync: _isAsync, isStatic: _isStatic, includeCache: includeCache);