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