9 instantiations of ExecutableCodeBinder
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
191return new ExecutableCodeBinder(unboundLambda.Syntax, lambdaSymbol, unboundLambda.GetWithParametersBinder(lambdaSymbol, enclosingBinder));
Binder\Binder_Initializers.cs (1)
214Binder parentBinder = new ExecutableCodeBinder(
BoundTree\UnboundLambda.cs (3)
717var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder)); 812lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder), inExpressionTree ? BinderFlags.InExpressionTree : BinderFlags.None); 1000var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder));
Compilation\SyntaxTreeSemanticModel.cs (1)
1230new MethodBodySemanticModel.InitialState(node, binder: new ExecutableCodeBinder(node, scriptInitializer, new ScriptLocalScopeBinder(_globalStatementLabels, defaultOuter()))));
Symbols\Source\SourceMemberMethodSymbol.cs (1)
769return inMethod == null ? null : new ExecutableCodeBinder(SyntaxNode, this, inMethod.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None));
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
108return new ExecutableCodeBinder(SyntaxNode, this, result.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None));
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
231return new ExecutableCodeBinder(syntaxNode, this, result);
42 references to ExecutableCodeBinder
Microsoft.CodeAnalysis.CSharp (42)
Binder\Binder.IdentifierUsedAsValueFinder.cs (3)
174var lambdaBodyBinder = CreateLambdaBodyBinder(enclosingBinder, unboundLambda); 178private static ExecutableCodeBinder CreateLambdaBodyBinder(Binder enclosingBinder, UnboundLambda unboundLambda) 538var lambdaBodyBinder = CreateLambdaBodyBinder(enclosingBinder, unboundLambda);
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
120ExecutableCodeBinder bodyBinder = simpleProgram.GetBodyBinder(_factory._ignoreAccessibility); 1023ExecutableCodeBinder bodyBinder = simpleProgram.GetBodyBinder(_factory._ignoreAccessibility);
BoundTree\UnboundLambda.cs (5)
717var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder)); 936(var lambdaSymbol, var block, var lambdaBodyBinder, var diagnostics) = BindWithParameterAndReturnType(parameterTypes, parameterRefKinds, returnType, refKind); 988private (LambdaSymbol lambdaSymbol, BoundBlock block, ExecutableCodeBinder lambdaBodyBinder, BindingDiagnosticBag diagnostics) BindWithParameterAndReturnType( 1000var lambdaBodyBinder = new ExecutableCodeBinder(_unboundLambda.Syntax, lambdaSymbol, GetWithParametersBinder(lambdaSymbol, Binder)); 1219(var lambdaSymbol, var block, var lambdaBodyBinder, var diagnostics) = BindWithParameterAndReturnType(parameterTypes, parameterRefKinds, returnType, refKind);
Compilation\MethodBodySemanticModel.cs (1)
175if (binder is ExecutableCodeBinder)
Compilation\SyntaxTreeSemanticModel.cs (2)
1196ExecutableCodeBinder binder = symbol?.TryGetBodyBinder(_binderFactory, this.IgnoresAccessibility); 1243ExecutableCodeBinder binder = symbol?.TryGetBodyBinder(_binderFactory, this.IgnoresAccessibility);
Compiler\MethodBodySynthesizer.Lowered.cs (1)
311internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
237internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false)
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
36ExecutableCodeBinder.ValidateIteratorMethod(compilation, containingSymbol, diagnostics); 153ExecutableCodeBinder.ValidateIteratorMethod(_compilation, node.Symbol, _diagnostics);
Symbols\Source\SourceConstructorSymbol.cs (1)
107internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
67internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
37internal sealed override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceDestructorSymbol.cs (1)
94internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceMemberFieldSymbol.cs (1)
538var executableBinder = new ExecutableCodeBinder(syntaxNode, this, initializerBinder);
Symbols\Source\SourceMemberMethodSymbol.cs (2)
764internal abstract ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false); 766protected ExecutableCodeBinder TryGetBodyBinderFromSyntax(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
274internal sealed override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
254internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
99internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
99internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
103internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
170internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
61internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
93internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
103internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (9)
25private WeakReference<ExecutableCodeBinder>? _weakBodyBinder; 26private WeakReference<ExecutableCodeBinder>? _weakIgnoreAccessibilityBodyBinder; 212internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) 217private ExecutableCodeBinder CreateBodyBinder(bool ignoreAccessibility) 234internal ExecutableCodeBinder GetBodyBinder(bool ignoreAccessibility) 236ref WeakReference<ExecutableCodeBinder>? weakBinder = ref ignoreAccessibility ? ref _weakIgnoreAccessibilityBodyBinder : ref _weakBodyBinder; 241if (previousWeakReference != null && previousWeakReference.TryGetTarget(out ExecutableCodeBinder? previousBinder)) 246ExecutableCodeBinder newBinder = CreateBodyBinder(ignoreAccessibility); 247if (Interlocked.CompareExchange(ref weakBinder, new WeakReference<ExecutableCodeBinder>(newBinder), previousWeakReference) == previousWeakReference)