1 instantiation of BinderFactory
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
2565var newFactory = new BinderFactory(this, syntaxTree, ignoreAccessibility);
57 references to BinderFactory
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Initializers.cs (2)
84BinderFactory? binderFactory = null; 178BinderFactory? binderFactory = null;
Binder\Binder_Statements.cs (2)
3879BinderFactory binderFactory = compilation.GetBinderFactory(containerNode.SyntaxTree); 3884BinderFactory binderFactory = compilation.GetBinderFactory(sourceConstructor.SyntaxTree);
Binder\BinderFactory.BinderFactoryVisitor.cs (3)
25private BinderFactory _factory; 27internal void Initialize(BinderFactory factory, int position, CSharpSyntaxNode memberDeclarationOpt, Symbol memberOpt) 1371internal static Binder MakeCrefBinder(CrefSyntax crefSyntax, MemberDeclarationSyntax memberSyntax, BinderFactory factory, bool inParameterOrReturnType = false)
Compilation\CSharpCompilation.cs (14)
2528private WeakReference<BinderFactory>[]? _binderFactories; 2529private WeakReference<BinderFactory>[]? _ignoreAccessibilityBinderFactories; 2531internal BinderFactory GetBinderFactory(SyntaxTree syntaxTree, bool ignoreAccessibility = false) 2541private BinderFactory GetBinderFactory(SyntaxTree syntaxTree, bool ignoreAccessibility, ref WeakReference<BinderFactory>[]? cachedBinderFactories) 2546WeakReference<BinderFactory>[]? binderFactories = cachedBinderFactories; 2549binderFactories = new WeakReference<BinderFactory>[this.SyntaxTrees.Length]; 2553BinderFactory? previousFactory; 2563private BinderFactory AddNewFactory(SyntaxTree syntaxTree, bool ignoreAccessibility, [NotNull] ref WeakReference<BinderFactory>? slot) 2565var newFactory = new BinderFactory(this, syntaxTree, ignoreAccessibility); 2566var newWeakReference = new WeakReference<BinderFactory>(newFactory); 2570BinderFactory? previousFactory; 2571WeakReference<BinderFactory>? previousWeakReference = slot;
Compilation\SyntaxTreeSemanticModel.cs (1)
37private readonly BinderFactory _binderFactory;
Compiler\DocumentationCommentCompiler.DocumentationCommentWalker.cs (2)
149BinderFactory factory = _compilation.GetBinderFactory(cref.SyntaxTree); 186BinderFactory factory = _compilation.GetBinderFactory(nameAttr.SyntaxTree);
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
512MemberDeclarationSyntax memberDeclSyntax = BinderFactory.GetAssociatedMemberForXmlSyntax(originatingSyntax); 516Binder binder = BinderFactory.MakeCrefBinder(crefSyntax, memberDeclSyntax, _compilation.GetBinderFactory(memberDeclSyntax.SyntaxTree)); 534MemberDeclarationSyntax memberDeclSyntax = BinderFactory.GetAssociatedMemberForXmlSyntax(originatingSyntax);
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)
Symbols\ConstantValueUtils.cs (1)
37var binderFactory = compilation.GetBinderFactory(equalsValueNode.SyntaxTree);
Symbols\Source\GlobalExpressionVariable.cs (1)
87var binderFactory = compilation.GetBinderFactory(SyntaxTree);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
303var binderFactory = compilation.GetBinderFactory(syntax.SyntaxTree);
Symbols\Source\SourceConstructorSymbol.cs (1)
107internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
36var binderFactory = this.DeclaringCompilation.GetBinderFactory(syntax.SyntaxTree);
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\SourceFixedFieldSymbol.cs (1)
85BinderFactory binderFactory = this.DeclaringCompilation.GetBinderFactory(SyntaxTree);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
482var binderFactory = compilation.GetBinderFactory(SyntaxTree);
Symbols\Source\SourceMemberMethodSymbol.cs (3)
737private Binder TryGetInMethodBinder(BinderFactory binderFactoryOpt = null) 764internal abstract ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false); 766protected ExecutableCodeBinder TryGetBodyBinderFromSyntax(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourceNamedTypeSymbol.cs (2)
334var binderFactory = this.DeclaringCompilation.GetBinderFactory(syntaxRef.SyntaxTree); 415var binderFactory = this.DeclaringCompilation.GetBinderFactory(syntaxRef.SyntaxTree);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
274internal sealed override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false)
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
254internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false) 407var binderFactory = compilation.GetBinderFactory(syntax.SyntaxTree);
Symbols\Source\SourcePropertySymbol.cs (1)
546var binderFactory = compilation.GetBinderFactory(syntaxTree);
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 (1)
212internal override ExecutableCodeBinder TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DocumentationComments\CrefTests.cs (1)
6635var binderFactory = compilation.GetBinderFactory(crefSyntax.SyntaxTree);