2 types derived from AssemblySymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\MissingAssemblySymbol.cs (1)
25internal class MissingAssemblySymbol : AssemblySymbol
Symbols\NonMissingAssemblySymbol.cs (1)
21internal abstract class NonMissingAssemblySymbol : AssemblySymbol
1445 references to AssemblySymbol
Microsoft.CodeAnalysis.CSharp (1445)
Binder\Binder.cs (7)
819AssemblySymbol within, 820ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 828ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 839ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 876ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 885public CompoundUseSiteInfo<AssemblySymbol> GetNewCompoundUseSiteInfo(BindingDiagnosticBag futureDestination) 887return new CompoundUseSiteInfo<AssemblySymbol>(futureDestination, Compilation.Assembly);
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
200var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 263var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\Binder.ValueChecks.cs (4)
859CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2068CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2118CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2159UseSiteInfo<AssemblySymbol> useSiteInfo = accessor.GetUseSiteInfo();
Binder\Binder.WithQueryLambdaParametersBinder.cs (2)
95CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 105LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Attributes.cs (6)
114CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 208out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo); 226CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 331CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 413protected bool IsAttributeConditionallyOmitted(NamedTypeSymbol attributeType, SyntaxTree? syntaxTree, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 606CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Await.cs (3)
471CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = @this.GetNewCompoundUseSiteInfo(diagnostics); 491var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 683CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Constraints.cs (1)
452var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingSymbol.ContainingAssembly);
Binder\Binder_Conversions.cs (17)
25CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1528ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1556var candidateUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 1739out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 1771in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 1803in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 1958CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = addMethodBinder.GetNewCompoundUseSiteInfo(diagnostics); 2059ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2594CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2778CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2845CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3458CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3546CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3553useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 3644RefKind sourceRefKind, RefKind destinationRefKind, bool checkingReturns, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3716var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 3785CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Crefs.cs (3)
290CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = this.GetNewCompoundUseSiteInfo(diagnostics); 530CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 537BindingDiagnosticBag diagnostics, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Deconstruct.cs (1)
324CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Expressions.cs (70)
451CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1260CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1309CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1527var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1590var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 1692CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1873var discardedInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1894private void LookupIdentifier(LookupResult lookupResult, SimpleNameSyntax node, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1899private void LookupIdentifier(LookupResult lookupResult, string name, int arity, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2026var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2277CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2380var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2455var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2521CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2704CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2810CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2825CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2977var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 3008var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4210CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4237CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5036out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo); 5060in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 5563CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5636CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6456CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6752internal ImmutableArray<MethodSymbol> FilterInaccessibleConstructors(ImmutableArray<MethodSymbol> constructors, bool allowProtectedConstructorsOfBaseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 6777private bool IsConstructorAccessible(MethodSymbol constructor, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool allowProtectedConstructorsOfBaseType = false) 6852CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6906out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo) && 6925in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 7011in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 7030CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7158CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7312out CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 7351ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 7441internal static void ReportConstructorUseSiteDiagnostics(Location errorLocation, BindingDiagnosticBag diagnostics, bool suppressUnsupportedRequiredMembersError, in CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7464private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7470private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, bool allowProtectedConstructorsOfBaseType, out ImmutableArray<MethodSymbol> allInstanceConstructors, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7703var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8040CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8116CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8137CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8186CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8230CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = this.GetNewCompoundUseSiteInfo(diagnostics); 8309CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8380private void LookupInstanceMember(LookupResult lookupResult, TypeSymbol leftType, bool leftIsBaseReference, string rightName, int rightArity, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 8750ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 8837ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 8853CompoundUseSiteInfo<AssemblySymbol> classicExtensionUseSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 9010CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 9036ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 9391CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10094CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10108CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10149CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10238CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10382AssemblySymbol.DynamicType, 10398CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10895ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 10919ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 10951ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 11023ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 11047var sealedDiagnostics = ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty; 11169CompoundUseSiteInfo<AssemblySymbol> discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 11383CompoundUseSiteInfo<AssemblySymbol> discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 11584new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded), 11614UseSiteInfo<AssemblySymbol> info = invoke.GetUseSiteInfo();
Binder\Binder_Invocation.cs (8)
643CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 720CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1690var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1746CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1868CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2440CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2524var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2541CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Lookup.cs (42)
35ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 50var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 67private Binder LookupSymbolsWithFallback(LookupResult result, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 88LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 122LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 139ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 154private void LookupMembersWithFallback(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 170protected void LookupMembersInternal(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 187int arity, LookupOptions options, Binder originalBinder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ref CompoundUseSiteInfo<AssemblySymbol> classicExtensionUseSiteInfo) 200string? name, int arity, LookupOptions options, Binder originalBinder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ref CompoundUseSiteInfo<AssemblySymbol> classicExtensionUseSiteInfo) 224protected void LookupMembersInType(LookupResult result, TypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 265private void LookupMembersInErrorType(LookupResult result, ErrorTypeSymbol errorType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 301LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 452ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 488private static void LookupMembersInNamespace(LookupResult result, NamespaceSymbol ns, string name, int arity, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 519ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 546var attributeTypeWithoutSuffixViabilityUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 552var attributeTypeWithSuffixViabilityUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 692private bool IsSingleViableAttributeType(LookupResult result, out Symbol symbol, ref CompoundUseSiteInfo<AssemblySymbol> attributeTypeViabilityUseSiteInfo) 713var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 718private bool CheckAttributeTypeViability(Symbol symbol, bool diagnose, ref DiagnosticInfo diagInfo, ref CompoundUseSiteInfo<AssemblySymbol> attributeTypeViabilityUseSiteInfo) 734new CompoundUseSiteInfo<AssemblySymbol>(attributeTypeViabilityUseSiteInfo) : 735CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 810LookupOptions options, Binder originalBinder, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved) 833ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 849ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 927ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1068ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1082private static ImmutableArray<NamedTypeSymbol> GetBaseInterfaces(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1171ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1196private void LookupMembersInInterface(LookupResult current, NamedTypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1214private void LookupMembersInTypeParameter(LookupResult current, TypeParameterSymbol typeParameter, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1233private static bool IsDerivedType(NamedTypeSymbol baseType, NamedTypeSymbol derivedType, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1270private void MergeHidingLookupResults(LookupResult resultHiding, LookupResult resultHidden, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1431internal SingleLookupResult CheckViability(Symbol symbol, int arity, LookupOptions options, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 1634var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1717internal bool IsAccessible(Symbol symbol, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, TypeSymbol accessThroughType = null, ConsList<TypeSymbol> basesBeingResolved = null) 1736internal bool IsAccessible(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 1748/// Should only be called by <see cref="IsAccessible(Symbol, TypeSymbol, out bool, ref CompoundUseSiteInfo{AssemblySymbol}, ConsList{TypeSymbol})"/>, 1751internal virtual bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
Binder\Binder_Operators.cs (28)
65CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 391CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 457CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 591CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 701CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1209CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1312var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1604CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1788CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1893BoundValuePlaceholder leftPlaceholder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1946CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1984BoundValuePlaceholder leftPlaceholder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2107CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2159CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2305CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2420CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3501CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3564CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3700CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3793private ArrayBuilder<MethodSymbol>? LookupUserDefinedInstanceOperators(TypeSymbol lookupInType, string? checkedName, string ordinaryName, int parameterCount, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4157CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4966CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5503CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5724CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5872CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5893useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 5980CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6036CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Patterns.cs (15)
26CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 36internal static PropertySymbol? GetUnionTypeValueProperty(NamedTypeSymbol inputUnionType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 64static PropertySymbol? reportDiagnosticAndReturnProperty(NamedTypeSymbol memberProvider, PropertySymbol? valueProperty, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 107private static PropertySymbol? TryGetOwnOrInheritedUnionProperty(NamedTypeSymbol inputUnionType, string memberName, IsSuitableUnionProperty isSuitableUnionMember, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 154var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 183var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 284var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1106CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1314CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1372ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1407ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1903CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2515CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 2536internal static TypeSymbol? LeastSpecificType(ArrayBuilder<TypeSymbol> candidates, Conversions conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2564static TypeSymbol? lessSpecificCandidate(TypeSymbol bestSoFar, TypeSymbol possiblyLessSpecificCandidate, Conversions conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_QueryErrors.cs (5)
43CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 80private bool ImplementsStandardQueryInterface(TypeSymbol instanceType, string name, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 96private static bool HasUniqueInterface(TypeSymbol instanceType, NamedTypeSymbol interfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 102private static bool HasUniqueInterface(TypeSymbol instanceType, NamedTypeSymbol interfaceType, ref bool nonUnique, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 124private bool HasCastToQueryProvider(TypeSymbol instanceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Statements.cs (17)
411CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 475CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1371CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1983CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2087var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2437var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2460var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2468void tryConversion(BoundExpression expr, ref bool reportedError, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2527var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2563var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2717CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3187CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3323CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3365CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4021var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly); 4059var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingType.ContainingAssembly); 4072var constructorUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly);
Binder\Binder_Symbols.cs (23)
202var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 376CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 886CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1288CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1498CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1560ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1792private static UseSiteInfo<AssemblySymbol> GetUseSiteInfoForWellKnownMemberOrContainingType(Symbol symbol) 1796UseSiteInfo<AssemblySymbol> info = symbol.GetUseSiteInfo(); 1876useSiteInfo = new UseSiteInfo<AssemblySymbol>(diagnosticInfo: null, useSiteInfo.PrimaryDependency, useSiteInfo.SecondaryDependencies); 1886internal NamedTypeSymbol GetWellKnownType(WellKnownType type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1907UseSiteInfo<AssemblySymbol> useSiteInfo; 1918internal static Symbol? GetWellKnownTypeMember(CSharpCompilation compilation, WellKnownMember member, out UseSiteInfo<AssemblySymbol> useSiteInfo, bool isOptional = false) 1943useSiteInfo = new UseSiteInfo<AssemblySymbol>(diagnosticInfo: null, useSiteInfo.PrimaryDependency, useSiteInfo.SecondaryDependencies); 1951useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_MissingPredefinedMember, memberDescriptor.DeclaringTypeMetadataName, memberDescriptor.Name)); 2006AssemblySymbol container = symbol.ContainingAssembly; 2439private static AssemblySymbol GetContainingAssembly(Symbol symbol) 2612var containingAssembly = symbol.ContainingAssembly; 2637AssemblySymbol forwardedToAssembly; 2713protected virtual AssemblySymbol GetForwardedToAssemblyInUsingNamespaces(string metadataName, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2718protected AssemblySymbol GetForwardedToAssembly(MetadataTypeName metadataName, BindingDiagnosticBag diagnostics, Location location) 2720foreach (var referencedAssembly in 2785protected AssemblySymbol GetForwardedToAssembly(string name, int arity, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2804var result = GetForwardedToAssembly(
Binder\Binder_TupleOperators.cs (1)
131CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_WithExpression.cs (1)
40CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_XmlNameAttribute.cs (1)
19internal ImmutableArray<Symbol> BindXmlNameAttribute(XmlNameAttributeSyntax syntax, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\BindingDiagnosticBag.cs (7)
13internal sealed class BindingDiagnosticBag : BindingDiagnosticBag<AssemblySymbol> 15private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithBoth = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithBoth!, new DiagnosticBag(), new HashSet<AssemblySymbol>())); 17private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithDependenciesOnly = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithDependenciesOnly!, diagnosticBag: null, new HashSet<AssemblySymbol>())); 18private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithConcurrent = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithConcurrent!, new DiagnosticBag(), new Roslyn.Utilities.ConcurrentSet<AssemblySymbol>())); 24private BindingDiagnosticBag(DiagnosticBag? diagnosticBag, ICollection<AssemblySymbol>? dependenciesBag) 29private BindingDiagnosticBag(ObjectPool<BindingDiagnosticBag> pool, DiagnosticBag? diagnosticBag, ICollection<AssemblySymbol>? dependenciesBag) 139AssemblySymbol? containingAssembly = ns.ContainingAssembly;
Binder\BuckStopsHereBinder.cs (1)
67internal override bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
Binder\DecisionDagBuilder.cs (9)
551var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 834var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1823var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1850var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1871var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1996var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 2090var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 2127var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 2698ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\ForEachLoopBinder.cs (12)
483CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1276CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1378CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1445CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1523CompoundUseSiteInfo<AssemblySymbol> extensionUseSiteInfo = this.GetNewCompoundUseSiteInfo(diagnostics); 1561CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1673CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1686useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 1761CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1806CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1838TypeSymbol type, bool isAsync, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1920CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\HostObjectModeBinder.cs (1)
33LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\ImportChain.cs (1)
139AssemblySymbol containingAssembly = @namespace.ContainingAssembly;
Binder\InContainerBinder.cs (2)
57internal override bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved) 101LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\InMethodBinder.cs (1)
195LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\InSubmissionClassBinder.cs (1)
43LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\LocalScopeBinder.cs (1)
422LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\LockOrUsingBinder.cs (2)
113public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 115public ExpressionAndDiagnostics(BoundExpression expression, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Binder\MethodGroupResolution.cs (4)
25public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 28public MethodGroupResolution(MethodGroup methodGroup, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics) 33public MethodGroupResolution(Symbol otherSymbol, LookupResultKind resultKind, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics) 44ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Binder\NameofBinder.cs (1)
60internal override void LookupSymbolsInSingleBinder(LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\NamespaceOrTypeAndUsingDirective.cs (2)
15public readonly ImmutableArray<AssemblySymbol> Dependencies; 17public NamespaceOrTypeAndUsingDirective(NamespaceOrTypeSymbol namespaceOrType, UsingDirectiveSyntax? usingDirective, ImmutableArray<AssemblySymbol> dependencies)
Binder\PatternExplainer.cs (1)
591var discardedInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\Semantics\AccessCheck.cs (22)
26AssemblySymbol within, 27ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 40ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 57ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 139ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 145Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 223private static bool IsNamedTypeAccessible(NamedTypeSymbol type, Symbol within, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 225Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 257AssemblySymbol assembly, 261Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 282var withinAssembly = (object)withinType != null ? withinType.ContainingAssembly : (AssemblySymbol)within; 304ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 307Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 349ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 356var withinAssembly = (object)withinType != null ? withinType.ContainingAssembly : (AssemblySymbol)within; 422ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 497Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 548ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 676internal static bool HasInternalAccessTo(this AssemblySymbol fromAssembly, AssemblySymbol toAssembly)
Binder\Semantics\BestTypeInferrer.cs (4)
54ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 121ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 180ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 263ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\Conversions.cs (11)
44public override Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 115public override Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 131protected override Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 162ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 221Conversion convertElement(BoundNode element, TypeSymbol elementType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 234ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 247protected override Conversion AnalyzeImplicitUnionConversions(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 264private static MethodGroupResolution ResolveDelegateOrFunctionPointerMethodGroup(Binder binder, BoundMethodGroup source, MethodSymbol delegateInvokeMethodOpt, bool isFunctionPointer, in CallingConventionInfo callingConventionInfo, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 315CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 408public Conversion MethodGroupConversion(SyntaxNode syntax, MethodGroup methodGroup, NamedTypeSymbol delegateType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 520public override Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\ConversionsBase.cs (103)
22protected readonly AssemblySymbol corLibrary; 33protected ConversionsBase(AssemblySymbol corLibrary, int currentRecursionDepth, bool includeNullability, ConversionsBase otherNullabilityOpt) 67public abstract Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 69public abstract Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 71public abstract Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 75protected abstract Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 78protected abstract Conversion GetCollectionExpressionConversion(BoundUnconvertedCollectionExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 85internal AssemblySymbol CorLibrary { get { return corLibrary; } } 98public Conversion ClassifyImplicitConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 169public Conversion ClassifyImplicitConversionFromType(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 204public Conversion ClassifyImplicitConversionFromTypeWhenNeitherOrBothFunctionTypes(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 234public Conversion ClassifyConversionFromExpressionType(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 283public Conversion ClassifyConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast = false) 317public Conversion ClassifyConversionFromType(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast = false) 375private Conversion ClassifyConversionFromExpressionForCast(BoundExpression source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 429private Conversion ClassifyConversionFromTypeForCast(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 499public Conversion ClassifyBuiltInConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 529public Conversion ClassifyStandardConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 541public Conversion ClassifyStandardConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 605private Conversion ClassifyStandardImplicitConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 695private Conversion ClassifyStandardImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 701Conversion classifyConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 763private Conversion ClassifyImplicitBuiltInConversionSlow(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 782private Conversion GetImplicitUserDefinedOrUnionConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 802private Conversion GetImplicitUserDefinedOrUnionConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 807private Conversion ClassifyExplicitBuiltInOnlyConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 886private Conversion GetExplicitUserDefinedConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 892private Conversion GetExplicitUserDefinedConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 897private Conversion DeriveStandardExplicitFromOppositeStandardImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 964public bool IsBaseInterface(TypeSymbol baseType, TypeSymbol derivedType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 999public bool IsBaseClass(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1044private Conversion ClassifyImplicitBuiltInConversionFromExpression(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1174private Conversion GetImplicitCollectionExpressionConversion(BoundUnconvertedCollectionExpression collectionExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1199private Conversion GetSwitchExpressionConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1228private Conversion GetConditionalExpressionConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1308private Conversion ClassifyImplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1334private Conversion ClassifyExplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 1416private Conversion ClassifyExplicitOnlyConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 1632internal bool IsAssignableFromMulticastDelegate(TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1734internal Conversion ClassifyImplicitUserDefinedConversionForV6SwitchGoverningType(TypeSymbol sourceType, out TypeSymbol switchGoverningType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1766internal Conversion GetCallerLineNumberConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1791internal bool HasCallerLineNumberConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1796internal bool HasCallerInfoStringConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1907var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1926public Conversion ConvertExtensionMethodThisArg(TypeSymbol parameterType, TypeSymbol thisType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool isMethodGroupConversion) 1936public Conversion ClassifyImplicitExtensionMethodThisArgConversion(BoundExpression sourceExpressionOpt, TypeSymbol sourceType, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool isMethodGroupConversion) 1975(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 1992(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool _, ref CompoundUseSiteInfo<AssemblySymbol> u, bool _) => 2252private Conversion ClassifyImplicitNullableConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2295private delegate Conversion ClassifyConversionFromExpressionDelegate(ConversionsBase conversions, BoundExpression sourceExpression, TypeWithAnnotations destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast); 2296private delegate Conversion ClassifyConversionFromTypeDelegate(ConversionsBase conversions, TypeWithAnnotations source, TypeWithAnnotations destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast); 2298private Conversion GetImplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2310(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) 2316private Conversion GetExplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2328(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 2337ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2374private Conversion ClassifyImplicitTupleConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2381(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool _, ref CompoundUseSiteInfo<AssemblySymbol> u, bool _) => 2396private Conversion ClassifyExplicitTupleConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2403(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 2421ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2453private Conversion ClassifyExplicitNullableConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2508private bool HasCovariantArrayConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2530public bool HasIdentityOrImplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2562private bool HasArrayConversionToInterface(ArrayTypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2623private bool HasImplicitReferenceConversion(TypeWithAnnotations source, TypeWithAnnotations destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2643internal bool HasImplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2706private bool HasImplicitConversionToInterface(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2740private bool HasImplicitConversionFromArray(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2781private bool HasImplicitConversionFromDelegate(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2817private bool HasImplicitFunctionTypeConversion(FunctionTypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2828internal bool IsValidFunctionTypeConversionTarget(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2850private bool HasImplicitFunctionTypeToFunctionTypeConversion(FunctionTypeSymbol sourceType, FunctionTypeSymbol destinationType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2871public bool HasImplicitTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2893private bool HasImplicitReferenceTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2936private bool HasImplicitEffectiveBaseConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2960private bool HasImplicitEffectiveInterfaceSetConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2965private bool HasVarianceCompatibleInterfaceInEffectiveInterfaceSet(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2985private bool HasAnyBaseInterfaceConversion(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2990private bool ImplementsVarianceCompatibleInterface(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3016internal bool ImplementsVarianceCompatibleInterface(NamedTypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3021internal bool HasImplicitConversionToOrImplementsVarianceCompatibleInterface(TypeSymbol typeToCheck, NamedTypeSymbol targetInterfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool needSupportForRefStructInterfaces) 3041private bool IsRefLikeOrAllowsRefLikeTypeImplementingVarianceCompatibleInterface(TypeSymbol typeToCheck, NamedTypeSymbol targetInterfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3055internal bool HasImplicitConversionToOrImplementsVarianceCompatibleInterface(BoundExpression expressionToCheck, NamedTypeSymbol targetInterfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool needSupportForRefStructInterfaces) 3089private bool HasInterfaceVarianceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3108private bool HasDelegateVarianceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3127private bool HasVariantConversion(NamedTypeSymbol source, NamedTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3177private bool HasVariantConversionNoCycleCheck(NamedTypeSymbol source, NamedTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3270private bool HasImplicitBoxingTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3324public bool HasBoxingConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3396internal bool HasImplicitPointerConversion(TypeSymbol? source, TypeSymbol? destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3435bool hasConversion(RefKind refKind, TypeWithAnnotations sourceType, TypeWithAnnotations destinationType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3453private bool HasIdentityOrReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3476private bool HasExplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3550private bool HasExplicitReferenceTypeParameterConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3602private bool HasUnboxingTypeParameterConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3653private bool HasExplicitDelegateConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3742private bool HasExplicitArrayConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3834private bool HasUnboxingConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3973private bool HasImplicitSpanConversion(TypeSymbol? source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4020bool hasCovariantConversion(TypeWithAnnotations source, TypeWithAnnotations destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4036private bool HasExplicitSpanConversion(TypeSymbol? source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4061var discarded = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\Semantics\Conversions\TypeConversions.cs (7)
15public TypeConversions(AssemblySymbol corLibrary, bool includeNullability = false) 20private TypeConversions(AssemblySymbol corLibrary, int currentRecursionDepth, bool includeNullability, TypeConversions otherNullabilityOpt) 36public override Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 42public override Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 48public override Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 54protected override Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 60protected override Conversion GetCollectionExpressionConversion(BoundUnconvertedCollectionExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\UserDefinedConversions.cs (2)
17public static void AddTypesParticipatingInUserDefinedConversion(ArrayBuilder<(NamedTypeSymbol ParticipatingType, TypeParameterSymbol? ConstrainedToTypeOpt)> result, TypeSymbol type, bool includeBaseTypes, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 114static void addFromClassOrStruct(ArrayBuilder<(NamedTypeSymbol ParticipatingType, TypeParameterSymbol? ConstrainedToTypeOpt)> result, bool excludeExisting, TypeSymbol type, bool includeBaseTypes, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (11)
25ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 74private static void ComputeUserDefinedExplicitConversionTypeSet(TypeSymbol source, TypeSymbol target, ArrayBuilder<(NamedTypeSymbol ParticipatingType, TypeParameterSymbol ConstrainedToTypeOpt)> d, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 92ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 134ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 150ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 373ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 412CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 430ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 466CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 479private Conversion EncompassingExplicitConversion(BoundExpression expr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 502private Conversion EncompassingExplicitConversion(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (19)
29ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 118private static void ComputeUserDefinedImplicitConversionTypeSet(TypeSymbol s, TypeSymbol t, ArrayBuilder<(NamedTypeSymbol ParticipatingType, TypeParameterSymbol ConstrainedToTypeOpt)> d, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 148ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 286ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 365private TypeSymbol MostSpecificSourceTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 381private TypeSymbol MostSpecificTargetTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 575private bool IsEncompassedBy(BoundExpression aExpr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 589private bool IsEncompassedBy(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 594private Conversion EncompassingImplicitConversion(BoundExpression aExpr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 609private Conversion EncompassingImplicitConversion(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 694ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 703ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 729CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 756ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 765ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 768CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 896protected UserDefinedConversionResult AnalyzeImplicitUserDefinedConversionForV6SwitchGoverningType(TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 988ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1027ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (18)
29ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 65ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 224BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 337ArrayBuilder<BinaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 719private void GetAllBuiltInOperators(BinaryOperatorKind kind, bool isChecked, BoundExpression left, BoundExpression right, ArrayBuilder<BinaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 776static bool useOnlyReferenceEquality(Conversions conversions, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 790Conversion getOperandConversionForAllowByRefLikeNullCheck(bool isChecked, BoundExpression operand, TypeSymbol objectType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 808ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 873ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1106ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1173ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1223private BetterResult BetterOperator(BinaryOperatorSignature op1, BinaryOperatorSignature op2, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1372private BetterResult MoreSpecificOperator(BinaryOperatorSignature op1, BinaryOperatorSignature op2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1440ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1512void inferTypeArgumentsAndRemoveInapplicableToReceiverType(BinaryOperatorKind kind, BoundExpression left, BoundExpression right, ArrayBuilder<BinaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1546if (!FailsConstraintChecks(method, out ArrayBuilder<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded)) 1586bool isApplicableToReceiver(in BinaryOperatorSignature candidate, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1612bool isOperandApplicableToReceiver(in BinaryOperatorSignature candidate, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (12)
31ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 80ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 153void inferTypeArgumentsAndRemoveInapplicableToReceiverType(UnaryOperatorKind kind, BoundExpression operand, ArrayBuilder<UnaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 187if (!FailsConstraintChecks(method, out ArrayBuilder<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded)) 218bool isApplicableToReceiver(in UnaryOperatorSignature candidate, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 311ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 377ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 427private BetterResult BetterOperator(UnaryOperatorSignature op1, UnaryOperatorSignature op2, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 498private void GetAllBuiltInOperators(UnaryOperatorKind kind, bool isChecked, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 529private bool CandidateOperators(bool isChecked, ArrayBuilder<UnaryOperatorSignature> operators, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 611ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 657ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (60)
280ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 583private MethodTypeInferenceResult InferTypeArgs(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 601private void InferTypeArgsFirstPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 622private void MakeExplicitParameterTypeInferences(Binder binder, BoundExpression argument, TypeWithAnnotations target, ExactOrBoundsKind kind, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 668ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 703ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 721private bool MakeExplicitParameterTypeInferences(Binder binder, BoundTupleLiteral argument, TypeWithAnnotations target, ExactOrBoundsKind kind, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 765private bool InferTypeArgsSecondPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 815private InferenceResult DoSecondPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 863private void MakeOutputTypeInferences(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 877private void MakeOutputTypeInferences(Binder binder, BoundExpression argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 900private void MakeOutputTypeInferences(Binder binder, BoundUnconvertedCollectionExpression argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 921private void MakeOutputTypeInferences(Binder binder, BoundTupleLiteral argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 951private InferenceResult FixNondependentParameters(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 961private InferenceResult FixDependentParameters(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 973ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1369private void OutputTypeInference(Binder binder, BoundExpression expression, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1402private bool InferredReturnTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1438private bool MethodGroupReturnTypeInference(Binder binder, BoundExpression source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1509ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1547private void ExplicitParameterTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1602private void ExplicitReturnTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1638private void ExactInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1707private bool ExactArrayInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1739private bool ExactSpanInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1786private void ExactOrBoundsInference(ExactOrBoundsKind kind, TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1802private bool ExactOrBoundsNullableInference(ExactOrBoundsKind kind, TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1826private bool ExactNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1831private bool LowerBoundTupleInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1858private bool ExactConstructedInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1888private bool ExactPointerInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1942private void ExactTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1969private void LowerBoundInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2078private static TypeWithAnnotations GetMatchingElementType(ArrayTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2113private bool LowerBoundArrayInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2151private bool LowerBoundSpanInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2189private bool LowerBoundNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2194private bool LowerBoundConstructedInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2258private bool LowerBoundClassInference(TypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2303private bool LowerBoundInterfaceInference(TypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2375private void LowerBoundTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2427private bool LowerBoundFunctionPointerTypeInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2478private void UpperBoundInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2553private bool UpperBoundArrayInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2590private bool UpperBoundNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2595private bool UpperBoundConstructedInference(TypeWithAnnotations sourceWithAnnotations, TypeWithAnnotations targetWithAnnotations, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2655private bool UpperBoundClassInference(NamedTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2684private bool UpperBoundInterfaceInference(NamedTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2725private void UpperBoundTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2777private bool UpperBoundFunctionPointerTypeInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2827private bool Fix(int iParam, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2847var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2867ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3040private static bool ImplicitConversionExists(TypeWithAnnotations sourceWithAnnotations, TypeWithAnnotations destinationWithAnnotations, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConversionsBase conversions) 3060private TypeWithAnnotations InferReturnType(BoundExpression source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3192ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3245ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3260ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3299private bool InferTypeArgumentsFromFirstArgument(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3422ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (51)
101public void ObjectCreationOverloadResolution(ImmutableArray<MethodSymbol> constructors, AnalyzedArguments arguments, OverloadResolutionResult<MethodSymbol> result, bool dynamicResolution, bool isEarlyAttributeBinding, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 143ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 171ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 191ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 237var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 357ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 437ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 452RemoveConstraintViolations(results, template: new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo)); 560ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 644private void RemoveConstraintViolations<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, CompoundUseSiteInfo<AssemblySymbol> template) where TMember : Symbol 794private bool FailsConstraintChecks<TMember>(TMember member, out ArrayBuilder<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt, CompoundUseSiteInfo<AssemblySymbol> template) where TMember : Symbol 851ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 933AnalyzedArguments arguments, bool completeResults, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 971ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1015ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1066ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1392ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1421ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1445private static bool MemberGroupHidesByName<TMember>(ArrayBuilder<TMember> members, TMember member, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1479private void RemoveInaccessibleTypeArguments<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1495bool typeArgumentsAccessible(ImmutableArray<TypeSymbol> typeArguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1505private static void RemoveLessDerivedMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1628private static bool IsLessDerivedThanAny<TMember>(int index, TypeSymbol type, ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1753ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1789private static void ReportUseSiteInfo<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1798private int GetTheBestCandidateIndex<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1950private void RemoveWorseMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2101ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2141ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2752private static BetterResult MoreSpecificType(ref TemporaryArray<TypeSymbol> t1, ref TemporaryArray<TypeSymbol> t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2784private static BetterResult MoreSpecificType(TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2872private BetterResult BetterConversionFromExpression(BoundExpression node, TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2895ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2942private BetterResult BetterConversionFromExpression(BoundExpression node, TypeSymbol t1, Conversion conv1, TypeSymbol t2, Conversion conv2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool okToDowngradeToNeither) 3053ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3087ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3194ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3223bool hasImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => 3227private BetterResult BetterParamsCollectionType(TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3267private bool ExpressionMatchExactly(BoundExpression node, TypeSymbol t, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3383private bool ExpressionMatchExactly(BoundTupleLiteral tupleSource, TypeSymbol targetType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3456ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3474ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3486ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3686private bool CanDowngradeConversionFromLambdaToNeither(BetterResult currentResult, UnboundLambda lambda, TypeSymbol type1, TypeSymbol type2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool fromTypeAnalysis) 4116ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4197ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4265ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4422ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4504ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4703ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo,
Binder\Semantics\SemanticFacts.cs (3)
38var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 51AssemblySymbol within) 63var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\SwitchBinder.cs (5)
26private ImmutableArray<AssemblySymbol> _switchGoverningDependencies; 50protected ReadOnlyBindingDiagnostic<AssemblySymbol> SwitchGoverningDiagnostics 55return new ReadOnlyBindingDiagnostic<AssemblySymbol>(_switchGoverningDiagnostics, _switchGoverningDependencies); 257CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 433CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\SwitchExpressionBinder.cs (1)
164CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\UnionMatchingRewriter.cs (1)
297var discardedSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\UsingStatementBinder.cs (1)
284CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = originalBinder.GetNewCompoundUseSiteInfo(diagnostics);
Binder\WithClassTypeParametersBinder.cs (1)
30internal override bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
Binder\WithExtensionParameterBinder.cs (1)
37LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithExternAliasesBinder.cs (1)
33LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithExternAndUsingAliasesBinder.cs (1)
37LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithLambdaParametersBinder.cs (1)
87LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithParametersBinder.cs (1)
46LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithPrimaryConstructorParametersBinder.cs (1)
64LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithTypeParametersBinder.cs (1)
38LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithUsingNamespacesAndTypesBinder.cs (3)
51protected override AssemblySymbol? GetForwardedToAssemblyInUsingNamespaces(string name, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 55var result = GetForwardedToAssembly( 118LookupResult result, string name, int arity, ConsList<TypeSymbol>? basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
BoundTree\BoundExpressionExtensions.cs (1)
135public static NamedTypeSymbol? GetInferredDelegateType(this BoundExpression expr, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
BoundTree\UnboundLambda.cs (14)
48internal readonly ImmutableArray<AssemblySymbol> Dependencies; 59ImmutableArray<AssemblySymbol> dependencies) 85public BoundLambda(SyntaxNode syntax, UnboundLambda unboundLambda, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? delegateType, InferredLambdaReturnType inferredReturnType) 109public TypeWithAnnotations GetInferredReturnType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType) 123public TypeWithAnnotations GetInferredReturnType(ConversionsBase? conversions, NullableWalker.VariableState? nullableState, NullableWalker.GetterNullResilienceData? getterNullResilienceData, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType) 238var useSiteInfo = withDependencies ? new CompoundUseSiteInfo<AssemblySymbol>(binder.Compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 254useSiteInfo.AccumulatesDependencies ? useSiteInfo.Dependencies.AsImmutableOrEmpty() : ImmutableArray<AssemblySymbol>.Empty); 264ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 502public TypeWithAnnotations InferReturnType(ConversionsBase conversions, NamedTypeSymbol delegateType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType) 1004ImmutableArray<AssemblySymbol>.Empty); 1303ImmutableArray<AssemblySymbol>.Empty)) 1384foreach (ReadOnlyBindingDiagnostic<AssemblySymbol> bag in allBags) 1407foreach (ReadOnlyBindingDiagnostic<AssemblySymbol> bag in allBags)
CodeGen\Optimizer.cs (1)
2475internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue)
Compilation\BuiltInOperators.cs (1)
855internal static bool IsValidObjectEquality(Conversions Conversions, TypeSymbol leftType, bool leftIsNull, bool leftIsDefault, TypeSymbol rightType, bool rightIsNull, bool rightIsDefault, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Compilation\CSharpCompilation.cs (26)
71private ConcurrentDictionary<ImportInfo, ImmutableArray<AssemblySymbol>>? _lazyImportInfos; 76private ImmutableArray<AssemblySymbol> _lazyClsComplianceDependencies; 1265/// Gets the <see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> for a metadata reference used to create this compilation. 1267/// <returns><see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> corresponding to the given reference or null if there is none.</returns> 1407internal void GetUnaliasedReferencedAssemblies(ArrayBuilder<AssemblySymbol> assemblies) 1442internal MetadataReference? GetMetadataReference(AssemblySymbol? assemblySymbol) 1467internal new AssemblySymbol Assembly 1919return AssemblySymbol.DynamicType; 1981ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics; 1993private MethodSymbol? FindEntryPoint(MethodSymbol? simpleProgramEntryPointSymbol, CancellationToken cancellationToken, out ReadOnlyBindingDiagnostic<AssemblySymbol> sealedDiagnostics) 2365public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 2367public static readonly EntryPoint None = new EntryPoint(null, ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty); 2369public EntryPoint(MethodSymbol? methodSymbol, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics) 2415var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2507var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2510AccessCheck.IsSymbolAccessible(symbol0, (AssemblySymbol)within0, ref discardedUseSiteInfo) : 2777ImmutableArray<AssemblySymbol> dependencies = pair.Value; 2818foreach (var assembly in bindingDiagnostics.DependenciesBag) 2883internal void RecordImportDependencies(UsingDirectiveSyntax syntax, ImmutableArray<AssemblySymbol> dependencies) 3395private ReadOnlyBindingDiagnostic<AssemblySymbol> GetSourceDeclarationDiagnostics(SyntaxTree? syntaxTree = null, TextSpan? filterSpanWithinTree = null, Func<IEnumerable<Diagnostic>, SyntaxTree, TextSpan?, IEnumerable<Diagnostic>>? locationFilterOpt = null, Predicate<Symbol>? symbolFilter = null, CancellationToken cancellationToken = default) 3435ReadOnlyBindingDiagnostic<AssemblySymbol> clsDiagnostics = GetClsComplianceDiagnostics(syntaxTree, filterSpanWithinTree, cancellationToken); 3436return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable().Concat(clsDiagnostics.Diagnostics), clsDiagnostics.Dependencies); 3440return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable(), ImmutableArray<AssemblySymbol>.Empty); 3444private ReadOnlyBindingDiagnostic<AssemblySymbol> GetClsComplianceDiagnostics(SyntaxTree? syntaxTree, TextSpan? filterSpanWithinTree, CancellationToken cancellationToken) 3464return new ReadOnlyBindingDiagnostic<AssemblySymbol>(_lazyClsComplianceDiagnostics, _lazyClsComplianceDependencies);
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (1)
136var corLibrary = compilation.SourceAssembly.CorLibrary;
Compilation\CSharpSemanticModel.cs (9)
37/// table, (that is, from an <see cref="AssemblySymbol"/> of the <see cref="Compilation"/>), 1762var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1852var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2037var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2220var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2869var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2921var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4066var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4651var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compilation\MemberSemanticModel.cs (2)
482var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 506var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compilation\SyntaxTreeSemanticModel.cs (1)
254var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compiler\ClsComplianceChecker.cs (2)
44Debug.Assert(diagnostics.DependenciesBag is null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); 89public override void VisitAssembly(AssemblySymbol symbol)
Compiler\DocumentationCommentCompiler.cs (1)
1302CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics);
Compiler\MethodCompiler.cs (2)
93Debug.Assert(diagnostics.DependenciesBag == null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); 1168actualDiagnostics = new ReadOnlyBindingDiagnostic<AssemblySymbol>(sourceMethod.SetDiagnostics(actualDiagnostics.Diagnostics, out diagsWritten), actualDiagnostics.Dependencies);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (10)
110private readonly AssemblySymbol _otherAssembly; 133AssemblySymbol otherAssembly, 196var otherAssembly = (AssemblySymbol?)Visit(module.ContainingAssembly); 223public override Symbol? VisitAssembly(AssemblySymbol assembly) 240foreach (var otherReferencedAssembly in _otherAssembly.Modules[0].ReferencedAssemblySymbols) 251private static bool IdentityEqualIgnoringVersionWildcard(AssemblySymbol left, AssemblySymbol right) 296var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 896var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Emitter\Model\AssemblyReference.cs (2)
21private readonly AssemblySymbol _targetAssembly; 23internal AssemblyReference(AssemblySymbol assemblySymbol)
Emitter\Model\PEModuleBuilder.cs (9)
28internal abstract class PEModuleBuilder : PEModuleBuilder<CSharpCompilation, SourceModuleSymbol, AssemblySymbol, TypeSymbol, NamedTypeSymbol, MethodSymbol, SyntaxNode, NoPia.EmbeddedTypesManager, ModuleCompilationState> 140internal sealed override AssemblySymbol CorLibrary 162foreach (AssemblySymbol aRef in modules[i].GetReferencedAssemblySymbols()) 169private void ValidateReferencedAssembly(AssemblySymbol assembly, AssemblyReference asmRef, DiagnosticBag diagnostics) 955internal IEnumerable<AssemblySymbol> GetReferencedAssembliesUsedSoFar() 957foreach (AssemblySymbol a in SourceModule.GetReferencedAssemblySymbols()) 1014AssemblySymbol corLibrary = CorLibrary; 1026internal sealed override Cci.IAssemblyReference Translate(AssemblySymbol assembly, DiagnosticBag diagnostics) 1082AssemblySymbol container = module.ContainingAssembly;
Emitter\NoPia\EmbeddedEvent.cs (1)
114var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Emitter\NoPia\EmbeddedType.cs (1)
69ImmutableArray<AssemblySymbol> refs = TypeManager.ModuleBeingBuilt.SourceModule.GetReferencedAssemblySymbols();
Emitter\NoPia\EmbeddedTypesManager.cs (9)
34AssemblySymbol, 38private readonly ConcurrentDictionary<AssemblySymbol, string> _assemblyGuidMap = new ConcurrentDictionary<AssemblySymbol, string>(ReferenceEqualityComparer.Instance); 68UseSiteInfo<AssemblySymbol> info = typeSymbol.GetUseSiteInfo(); 101UseSiteInfo<AssemblySymbol> info; 224internal string GetAssemblyGuidString(AssemblySymbol assembly) 249foreach (AssemblySymbol a in ModuleBeingBuilt.GetReferencedAssembliesUsedSoFar()) 273internal override void ReportIndirectReferencesToLinkedAssemblies(AssemblySymbol a, DiagnosticBag diagnostics) 286foreach (AssemblySymbol indirectRef in m.GetReferencedAssemblySymbols())
FlowAnalysis\NullableWalker.cs (20)
2165var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2772var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2898var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4719var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5161var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5275var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5719var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5760var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 6079var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 6513var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 6569var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8417var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8721var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8947new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded), 8976var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded); 9056var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 10821var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 12444var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 12623var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 12815var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (2)
62internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) => ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty;
FlowAnalysis\NullableWalker_Patterns.cs (3)
708var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 873var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1051var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Generated\BoundNodes.xml.Generated.cs (3)
7728public BoundLambda(SyntaxNode syntax, UnboundLambda unboundLambda, MethodSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type, bool hasErrors = false) 7748public ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics { get; } 7754public BoundLambda Update(UnboundLambda unboundLambda, MethodSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
333var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
277var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly); 645var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
627var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(Diagnostics, _bound.Compilation.Assembly);
Lowering\LocalRewriter\LocalRewriter.cs (3)
1149private CompoundUseSiteInfo<AssemblySymbol> GetNewCompoundUseSiteInfo() 1151return new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1170var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
227CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = _localRewriter.GetNewCompoundUseSiteInfo(); 499CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = _localRewriter.GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
745CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
105var assembly = receiver.Type.ContainingAssembly; 124var assembly = receiver.Type.ContainingAssembly;
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
204var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 382var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
833var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 1979CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
104UseSiteInfo<AssemblySymbol> useSiteInfo = field.GetUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
349CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
699var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
157var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
221resultType = AssemblySymbol.DynamicType; 272var resultType = AssemblySymbol.DynamicType; 314resultType = AssemblySymbol.DynamicType; 433return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), loweredRight, AssemblySymbol.DynamicType);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
440var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly);
Lowering\SyntheticBoundNodeFactory.cs (7)
385UseSiteInfo<AssemblySymbol> useSiteInfo = specialMember.GetUseSiteInfo(); 570CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 660var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 702var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1346var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1453var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1509var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Operations\CSharpOperationFactory.cs (1)
1960var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\AliasSymbol.cs (4)
240var corLibrary = this.ContainingAssembly.CorLibrary; 286private StrongBox<ReadOnlyBindingDiagnostic<AssemblySymbol>>? _aliasTargetDiagnostics; 329bool won = Interlocked.Exchange(ref _aliasTargetDiagnostics, new StrongBox<ReadOnlyBindingDiagnostic<AssemblySymbol>>(newDiagnostics.ToReadOnlyAndFree(forceDiagnosticResolution: false))) == null; 346internal ReadOnlyBindingDiagnostic<AssemblySymbol> AliasTargetDiagnostics
Symbols\ArrayTypeSymbol.cs (7)
38AssemblySymbol declaringAssembly, 67AssemblySymbol declaringAssembly, 92AssemblySymbol declaringAssembly, 107AssemblySymbol declaringAssembly) 239internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed; 453internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 455UseSiteInfo<AssemblySymbol> result = default;
Symbols\AssemblySymbol.cs (23)
36private static readonly ObjectPool<ArrayBuilder<AssemblySymbol>> s_symbolPool = new ObjectPool<ArrayBuilder<AssemblySymbol>>(() => new ArrayBuilder<AssemblySymbol>()); 45private AssemblySymbol _corLibrary; 53internal AssemblySymbol CorLibrary 67internal void SetCorLibrary(AssemblySymbol corLibrary) 209public sealed override AssemblySymbol ContainingAssembly 341internal abstract NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies); 362internal virtual NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 373internal ErrorTypeSymbol CreateMultipleForwardingErrorTypeSymbol(ref MetadataTypeName emittedName, ModuleSymbol forwardingModule, AssemblySymbol destination1, AssemblySymbol destination2) 561internal abstract ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(); 562internal abstract void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies); 569internal abstract ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies(); 570internal abstract void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies); 583=> AreInternalsVisibleToThisAssembly((AssemblySymbol)otherAssembly); 585internal abstract bool AreInternalsVisibleToThisAssembly(AssemblySymbol other); 714out (AssemblySymbol, AssemblySymbol) conflicts, 917out (AssemblySymbol, AssemblySymbol) conflicts, 982foreach (var assembly in assemblies) 1072private static NamedTypeSymbol? GetTopLevelTypeByMetadataName(AssemblySymbol assembly, ref MetadataTypeName metadataName, AssemblyIdentity? assemblyOpt)
Symbols\Attributes\AttributeData.cs (1)
115var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\BaseTypeAnalysis.cs (2)
144internal static ManagedKind GetManagedKind(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 173static (bool definitelyManaged, bool hasGenerics) dependsOnDefinitelyManagedType(NamedTypeSymbol type, HashSet<Symbol> partialClosure, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Compilation_UsedAssemblies.cs (21)
19private ConcurrentSet<AssemblySymbol>? _lazyUsedAssemblyReferences; 24ConcurrentSet<AssemblySymbol>? usedAssemblies = GetCompleteSetOfUsedAssemblies(cancellationToken); 39if (symbol is object && usedAssemblies.Contains((AssemblySymbol)symbol) && 63private ConcurrentSet<AssemblySymbol>? GetCompleteSetOfUsedAssemblies(CancellationToken cancellationToken) 92void addUsedAssembly(AssemblySymbol dependency, ArrayBuilder<AssemblySymbol> stack) 100void addReferencedAssemblies(AssemblySymbol assembly, bool includeMainModule, ArrayBuilder<AssemblySymbol> stack) 104foreach (var dependency in assembly.Modules[i].ReferencedAssemblySymbols) 121foreach (var assembly in SourceModule.ReferencedAssemblySymbols) 131foreach (var dependency in SourceAssembly.Modules[i].ReferencedAssemblySymbols) 153var stack = ArrayBuilder<AssemblySymbol>.GetInstance(_lazyUsedAssemblyReferences.Count); 158AssemblySymbol current = stack.Pop(); 159ConcurrentSet<AssemblySymbol>? usedAssemblies; 172foreach (AssemblySymbol dependency in usedAssemblies) 184foreach (AssemblySymbol underlyingDependency in retargetingAssembly.UnderlyingAssembly.SourceModule.ReferencedAssemblySymbols) 188AssemblySymbol dependency; 224internal void AddUsedAssemblies(ICollection<AssemblySymbol>? assemblies) 228foreach (var candidate in assemblies) 235internal bool AddUsedAssembly(AssemblySymbol? assembly) 244Interlocked.CompareExchange(ref _lazyUsedAssemblyReferences, new ConcurrentSet<AssemblySymbol>(), null);
Symbols\Compilation_WellKnownMembers.cs (7)
142(AssemblySymbol, AssemblySymbol) conflicts = default; 203var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 212internal bool IsExceptionType(TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 222internal bool IsEqualOrDerivedFromWellKnownClass(TypeSymbol type, WellKnownType wellKnownType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 251internal static Symbol? GetRuntimeMember(NamedTypeSymbol declaringType, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt) 257internal static Symbol? GetRuntimeMember(ImmutableArray<Symbol> members, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt)
Symbols\ConstantValueUtils.cs (2)
18public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 20public EvaluatedConstant(ConstantValue value, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Symbols\ConstraintsHelper.cs (42)
29public readonly UseSiteInfo<AssemblySymbol> UseSiteInfo; 31public TypeParameterDiagnosticInfo(TypeParameterSymbol typeParameter, UseSiteInfo<AssemblySymbol> useSiteInfo) 73AssemblySymbol corLibrary, 83template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)); 130AssemblySymbol corLibrary, 137CompoundUseSiteInfo<AssemblySymbol> template) 155var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(template); 179diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(constraintTypeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_CircularConstraint, constraintTypeParameter, typeParameter)))); 213diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(errorCode, typeParameter, constraintTypeParameter)))); 251diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(underlyingTypeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_CircularConstraint, underlyingTypeParameter, typeParameter)))); 303diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BaseConstraintConflict, typeParameter, constraintDeducedBase, deducedBaseType)))); 533public readonly CompoundUseSiteInfo<AssemblySymbol> Template; 541this(currentCompilation, conversions, includeNullability, location, diagnostics, template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)) 545public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics, CompoundUseSiteInfo<AssemblySymbol> template) 959diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BadTypeArgument, typeArgument.Type)))); 972diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(diagnosticInfo))); 977diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_RuntimeDoesNotSupportByRefLikeGenerics)))); 984diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NotRefStructConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 992diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_GenericArgIsStaticClass, typeArgument.Type)))); 1001diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_RefConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1010var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(args.Template); 1017diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1032diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(csDiagnosticInfo))); 1043diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_ValConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1085var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(args.Template); 1094new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, iface, member)))); 1128diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NewConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1132diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NewConstraintCannotHaveRequiredMembers, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1151nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, containingSymbol.ConstructedFrom(), typeParameter, typeArgument)))); 1158nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, containingSymbol.ConstructedFrom(), typeParameter, typeArgument)))); 1171ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1182nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, containingSymbol.ConstructedFrom(), constraintType, typeParameter, typeArgument)))); 1223diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(errorCode, containingSymbol.ConstructedFrom(), constraintTypeErrorArgument, typeParameter, typeArgumentErrorArgument)))); 1299CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1307new UseSiteInfo<AssemblySymbol>(useSiteInfo.Dependencies.Single()) : 1308new UseSiteInfo<AssemblySymbol>(useSiteInfo.Dependencies.ToImmutableHashSet()))); 1333useSiteDiagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(info))); 1348ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1408private static bool SelfOrBaseHasStaticAbstractMember(NamedTypeSymbol iface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol memberWithoutImplementation) 1452return new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BaseConstraintConflict, typeParameter, deducedBase, classConflict ? "class" : "struct"))); 1550private static bool IsEncompassedBy(ConversionsBase conversions, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1626var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\DynamicTypeSymbol.cs (1)
110internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed;
Symbols\ErrorTypeSymbol.cs (3)
83internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 85return new UseSiteInfo<AssemblySymbol>(this.ErrorInfo); 656internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo()
Symbols\EventSymbol.cs (4)
195var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 277internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 281return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 287internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\ExtendedErrorTypeSymbol.cs (2)
122internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 126return new UseSiteInfo<AssemblySymbol>(this.ErrorInfo);
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
100internal sealed override UseSiteInfo<AssemblySymbol> GetUseSiteInfo()
Symbols\FieldSymbol.cs (3)
341internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 345return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 351internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (4)
774internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 776UseSiteInfo<AssemblySymbol> info = default; 781MergeUseSiteInfo(ref info, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_UnsupportedCallingConvention, this))); 792MergeUseSiteInfo(ref info, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this)));
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (4)
89internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Unmanaged; 144internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 146UseSiteInfo<AssemblySymbol> fromSignature = Signature.GetUseSiteInfo(); 150return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this));
Symbols\FunctionTypeSymbol.cs (1)
154internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => throw ExceptionUtilities.Unreachable();
Symbols\LocalSymbol.cs (1)
373internal abstract ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue);
Symbols\MemberSymbolExtensions.cs (1)
313NoLocation.Singleton, diagnostics: BindingDiagnosticBag.Discarded, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
Symbols\MergedNamespaceSymbol.cs (1)
256public override AssemblySymbol ContainingAssembly
Symbols\Metadata\PE\DynamicTypeDecoder.cs (4)
35private readonly AssemblySymbol _containingAssembly; 44private DynamicTypeDecoder(ImmutableArray<bool> dynamicTransformFlags, bool haveCustomModifierFlags, bool checkLength, AssemblySymbol containingAssembly) 88AssemblySymbol containingAssembly, 105AssemblySymbol containingAssembly,
Symbols\Metadata\PE\MetadataDecoder.cs (6)
136var assembly = moduleSymbol.GetReferencedAssemblySymbol(referencedAssemblyIndex); 214public static bool IsOrClosedOverATypeFromAssemblies(TypeSymbol symbol, ImmutableArray<AssemblySymbol> assemblies) 234AssemblySymbol containingAssembly = symbol.OriginalDefinition.ContainingAssembly; 336AssemblySymbol referringAssembly) 362foreach (AssemblySymbol assembly in referringAssembly.GetNoPiaResolutionAssemblies()) 547var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Metadata\PE\PEAssemblySymbol.cs (14)
47private ImmutableArray<AssemblySymbol> _noPiaResolutionAssemblies; 55private ImmutableArray<AssemblySymbol> _linkedReferencedAssemblies; 181internal (AssemblySymbol FirstSymbol, AssemblySymbol SecondSymbol) LookupAssembliesForForwardedMetadataType(ref MetadataTypeName emittedName) 197internal override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 200(AssemblySymbol firstSymbol, AssemblySymbol secondSymbol) = LookupAssembliesForForwardedMetadataType(ref emittedName); 217visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.Empty); 227internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 232internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 237internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 242internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 260internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol potentialGiverOfAccess)
Symbols\Metadata\PE\PEEventSymbol.cs (8)
36private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 505internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 507AssemblySymbol primaryDependency = PrimaryDependency; 511UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(primaryDependency); 519void deriveCompilerFeatureRequiredUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result) 534result = new UseSiteInfo<AssemblySymbol>(diag);
Symbols\Metadata\PE\PEFieldSymbol.cs (9)
145private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 679internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 681AssemblySymbol primaryDependency = PrimaryDependency; 685UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(primaryDependency); 690MergeUseSiteInfo(ref result, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 698void deriveCompilerFeatureRequiredUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result) 713result = new UseSiteInfo<AssemblySymbol>(diag);
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
68public override AssemblySymbol ContainingAssembly
Symbols\Metadata\PE\PEMethodSymbol.cs (10)
328public CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo; 446InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 914InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 945InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(diagnosticInfo)); 1520internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1524UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 1627private UseSiteInfo<AssemblySymbol> GetCachedUseSiteInfo() 1632private UseSiteInfo<AssemblySymbol> InitializeUseSiteDiagnostic(UseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Metadata\PE\PEModuleSymbol.cs (13)
31private readonly AssemblySymbol _assemblySymbol; 136: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 142: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 148: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 153private PEModuleSymbol(AssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal) 236public override AssemblySymbol ContainingAssembly 508foreach (AssemblySymbol assembly in this.GetReferencedAssemblySymbols()) 630internal (AssemblySymbol FirstSymbol, AssemblySymbol SecondSymbol) GetAssembliesForForwardedType(ref MetadataTypeName fullName) 640AssemblySymbol firstSymbol = GetReferencedAssemblySymbol(firstIndex); 647AssemblySymbol secondSymbol = GetReferencedAssemblySymbol(secondIndex); 660AssemblySymbol firstSymbol = this.GetReferencedAssemblySymbol(forwarder.Value.FirstIndex); 665var secondSymbol = this.GetReferencedAssemblySymbol(forwarder.Value.SecondIndex);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
83private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 878var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2709internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 2711AssemblySymbol primaryDependency = PrimaryDependency; 2714_lazyCachedUseSiteInfo.Initialize(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency).AdjustDiagnosticInfo(GetUseSiteDiagnosticImpl()));
Symbols\Metadata\PE\PENestedNamespaceSymbol.cs (1)
110public override AssemblySymbol ContainingAssembly
Symbols\Metadata\PE\PEParameterSymbol.cs (4)
712var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 731var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 751var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 773var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Metadata\PE\PEPropertySymbol.cs (8)
204public CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 385retVal._lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 1031internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1033AssemblySymbol primaryDependency = PrimaryDependency; 1037var result = new UseSiteInfo<AssemblySymbol>(primaryDependency); 1054return new UseSiteInfo<AssemblySymbol>(primaryDependency); 1061uncommonFields._lazyCachedUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency));
Symbols\Metadata\PE\PETypeParameterSymbol.cs (8)
39private CachedUseSiteInfo<AssemblySymbol> _lazyCachedConstraintsUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 143public override AssemblySymbol ContainingAssembly 240_lazyCachedConstraintsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 420_lazyCachedConstraintsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 690AssemblySymbol primaryDependency = PrimaryDependency; 691var useSiteInfo = new UseSiteInfo<AssemblySymbol>(primaryDependency); 712internal override UseSiteInfo<AssemblySymbol> GetConstraintsUseSiteErrorInfo()
Symbols\Metadata\PE\SymbolFactory.cs (1)
103ImmutableArray<AssemblySymbol> linkedAssemblies = moduleSymbol.ContainingAssembly.GetLinkedReferencedAssemblies();
Symbols\MetadataOrSourceOrRetargetingAssemblySymbol.cs (19)
23private static readonly ObjectPool<ArrayBuilder<AssemblySymbol>> s_assemblySymbolBuilderPool = new ObjectPool<ArrayBuilder<AssemblySymbol>>(() => new ArrayBuilder<AssemblySymbol>()); 32internal IVTConclusion MakeFinalIVTDetermination(AssemblySymbol potentialGiverOfAccess, bool assertUnexpectedGiver) 78protected bool IsDirectlyOrIndirectlyReferenced(AssemblySymbol potentialGiverOfAccess) 80var checkedAssemblies = PooledHashSet<AssemblySymbol>.GetInstance(); 81ArrayBuilder<AssemblySymbol> queue = s_assemblySymbolBuilderPool.Allocate(); 103static bool checkReferences(AssemblySymbol current, AssemblySymbol potentialGiverOfAccess, PooledHashSet<AssemblySymbol> checkedAssemblies, ArrayBuilder<AssemblySymbol> queue) 107foreach (var referencedAssembly in module.ReferencedAssemblySymbols) 125static bool checkReference(AssemblySymbol referencedAssembly, AssemblySymbol potentialGiverOfAccess, PooledHashSet<AssemblySymbol> checkedAssemblies, ArrayBuilder<AssemblySymbol> queue) 143private ConcurrentDictionary<AssemblySymbol, IVTConclusion> _assembliesToWhichInternalAccessHasBeenAnalyzed; 145internal ConcurrentDictionary<AssemblySymbol, IVTConclusion> AssembliesToWhichInternalAccessHasBeenDetermined 150Interlocked.CompareExchange(ref _assembliesToWhichInternalAccessHasBeenAnalyzed, new ConcurrentDictionary<AssemblySymbol, IVTConclusion>(), null);
Symbols\MethodSymbol.cs (4)
465var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 956internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 960return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 968internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\MissingAssemblySymbol.cs (9)
22/// A <see cref="MissingAssemblySymbol"/> is a special kind of <see cref="AssemblySymbol"/> that represents 125internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 130internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 132return ImmutableArray<AssemblySymbol>.Empty; 135internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 140internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 142return ImmutableArray<AssemblySymbol>.Empty; 171internal override NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 188internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other)
Symbols\MissingMetadataTypeSymbol.cs (3)
66AssemblySymbol containingAssembly = this.ContainingAssembly; 228public override AssemblySymbol ContainingAssembly 292AssemblySymbol containingAssembly = _containingModule.ContainingAssembly;
Symbols\MissingModuleSymbol.cs (7)
27protected readonly AssemblySymbol assembly; 31public MissingModuleSymbol(AssemblySymbol assembly, int ordinal) 82public override AssemblySymbol ContainingAssembly 159internal override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 161return ImmutableArray<AssemblySymbol>.Empty; 164internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly) 214public MissingModuleSymbolWithName(AssemblySymbol assembly, string name)
Symbols\MissingNamespaceSymbol.cs (1)
56public override AssemblySymbol ContainingAssembly
Symbols\ModuleSymbol.cs (7)
39public override AssemblySymbol ContainingAssembly 43return (AssemblySymbol)ContainingSymbol; 226public ImmutableArray<AssemblySymbol> ReferencedAssemblySymbols 243internal abstract ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols(); // TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead. 245internal AssemblySymbol GetReferencedAssemblySymbol(int referencedAssemblyIndex) 255var assembly = ContainingAssembly; 275internal abstract void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly = null);
Symbols\NamedTypeSymbol.cs (10)
72internal ImmutableArray<TypeWithAnnotations> TypeArgumentsWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 84internal TypeWithAnnotations TypeArgumentWithDefinitionUseSiteDiagnostics(int index, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 556internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1505internal void GetAllTypeArguments(ref TemporaryArray<TypeSymbol> builder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1519internal ImmutableArray<TypeWithAnnotations> GetAllTypeArguments(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1526internal void GetAllTypeArguments(ArrayBuilder<TypeWithAnnotations> builder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1601internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1603UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 1619private bool DeriveUseSiteDiagnosticFromTypeArguments(ref UseSiteInfo<AssemblySymbol> result)
Symbols\NamespaceExtent.cs (3)
57public AssemblySymbol Assembly 63return (AssemblySymbol)_symbolOrCompilation; 104internal NamespaceExtent(AssemblySymbol assembly)
Symbols\NamespaceSymbol.cs (2)
102public abstract override AssemblySymbol ContainingAssembly { get; } 340var assembly = this.ContainingAssembly;
Symbols\NativeIntegerTypeSymbol.cs (1)
170internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo()
Symbols\NonMissingAssemblySymbol.cs (3)
18/// A <see cref="NonMissingAssemblySymbol"/> is a special kind of <see cref="AssemblySymbol"/> that represents 161internal sealed override NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 186internal abstract override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies);
Symbols\NonMissingModuleSymbol.cs (7)
24/// An array of <see cref="AssemblySymbol"/> objects corresponding to assemblies directly referenced by this module. 29private ModuleReferences<AssemblySymbol> _moduleReferences; 60internal sealed override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 66internal ImmutableArray<UnifiedAssembly<AssemblySymbol>> GetUnifiedAssemblies() 82var ownerAssembly = ownerModule.ContainingAssembly; 83var dependentAssembly = dependentType.ContainingAssembly; 154internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly = null)
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.cs (3)
22private readonly AssemblySymbol _embeddingAssembly; 27AssemblySymbol embeddingAssembly, 55public AssemblySymbol EmbeddingAssembly
Symbols\NoPiaMissingCanonicalTypeSymbol.cs (3)
23private readonly AssemblySymbol _embeddingAssembly; 30AssemblySymbol embeddingAssembly, 50public AssemblySymbol EmbeddingAssembly
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
1070var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\ParameterSymbol.cs (1)
461UseSiteInfo<AssemblySymbol> info = default;
Symbols\PointerTypeSymbol.cs (3)
110internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Unmanaged; 286internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 288UseSiteInfo<AssemblySymbol> result = default;
Symbols\PropertySymbol.cs (4)
289var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 387internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 391return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 397internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\PublicModel\AssemblySymbol.cs (1)
19internal abstract Symbols.AssemblySymbol UnderlyingAssemblySymbol { get; }
Symbols\PublicModel\NonSourceAssemblySymbol.cs (3)
13private readonly Symbols.AssemblySymbol _underlying; 15public NonSourceAssemblySymbol(Symbols.AssemblySymbol underlying) 22internal override Symbols.AssemblySymbol UnderlyingAssemblySymbol => _underlying;
Symbols\PublicModel\SourceAssemblySymbol.cs (1)
21internal override Symbols.AssemblySymbol UnderlyingAssemblySymbol => _underlying;
Symbols\ReducedExtensionMethodSymbol.cs (5)
44var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 114ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool wasFullyInferred) 134var containingAssembly = method.ContainingAssembly; 208var success = method.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo)), 357public override AssemblySymbol ContainingAssembly
Symbols\ReferenceManager.cs (55)
55internal sealed class ReferenceManager : CommonReferenceManager<CSharpCompilation, AssemblySymbol> 124protected override void GetActualBoundReferencesUsedBy(AssemblySymbol assemblySymbol, List<AssemblySymbol?> referencedAssemblySymbols) 141protected override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(AssemblySymbol candidateAssembly) 148return ImmutableArray<AssemblySymbol>.Empty; 154protected override bool IsLinked(AssemblySymbol candidateAssembly) 159protected override AssemblySymbol? GetCorLibrary(AssemblySymbol candidateAssembly) 161AssemblySymbol corLibrary = candidateAssembly.CorLibrary; 253var referencedAssembliesByIdentity = new AssemblyIdentityMap<AssemblySymbol>(); 254foreach (var symbol in this.ReferencedAssemblies) 280private static AssemblySymbol MapAssemblyIdentityToResolvedSymbol(AssemblyIdentity identity, AssemblyIdentityMap<AssemblySymbol> map) 282AssemblySymbol symbol; 322private void InitializeAssemblyReuseData(AssemblySymbol assemblySymbol, ImmutableArray<AssemblySymbol> referencedAssemblies, ImmutableArray<UnifiedAssembly<AssemblySymbol>> unifiedAssemblies) 328var sourceModuleReferences = new ModuleReferences<AssemblySymbol>(referencedAssemblies.SelectAsArray(a => a.Identity), referencedAssemblies, unifiedAssemblies); 438AssemblySymbol? corLibrary; 463ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences; 545var corLibrary = sourceAssembly.CorLibrary; 565var linkedReferencedAssembliesBuilder = ArrayBuilder<AssemblySymbol>.GetInstance(); 592var linkedAssemblySymbol = bindingResult[referenceBinding.DefinitionIndex].AssemblySymbol; 660ImmutableArray<AssemblySymbol> underlyingReferencedAssemblySymbols = 664foreach (AssemblySymbol asm in underlyingReferencedAssemblySymbols) 692AssemblySymbol[] symbols = new AssemblySymbol[refsCount]; 693ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 708var moduleReferences = new ModuleReferences<AssemblySymbol>(referencedAssemblies, symbols.AsImmutableOrNull(), unifiedAssemblies.AsImmutableOrEmpty()); 734var symbols = new AssemblySymbol[moduleReferenceCount]; 738ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 752var moduleReferences = new ModuleReferences<AssemblySymbol>(identities.AsImmutableOrNull(), symbols.AsImmutableOrNull(), unifiedAssemblies.AsImmutableOrEmpty()); 765out ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences) 770var moduleReferencesBuilder = (moduleSymbols.Length > 1) ? ArrayBuilder<ModuleReferences<AssemblySymbol>>.GetInstance() : null; 778var symbols = new AssemblySymbol[refsCount]; 780ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 800var references = new ModuleReferences<AssemblySymbol>( 818private static AssemblySymbol GetAssemblyDefinitionSymbol( 821ref ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies) 825var assembly = bindingResult[referenceBinding.DefinitionIndex].AssemblySymbol; 832unifiedAssemblies = new ArrayBuilder<UnifiedAssembly<AssemblySymbol>>(); 835unifiedAssemblies.Add(new UnifiedAssembly<AssemblySymbol>(assembly, referenceBinding.ReferenceIdentity)); 864private ImmutableArray<AssemblySymbol> _assemblies; 882internal abstract AssemblySymbol CreateAssemblySymbol(); 892public override ImmutableArray<AssemblySymbol> AvailableSymbols 898var builder = ArrayBuilder<AssemblySymbol>.GetInstance(); 912protected abstract void AddAvailableSymbols(ArrayBuilder<AssemblySymbol> builder); 981internal override AssemblySymbol CreateAssemblySymbol() 1014protected override void AddAvailableSymbols(ArrayBuilder<AssemblySymbol> assemblies) 1030public override bool IsMatchingAssembly(AssemblySymbol? candidateAssembly) 1132internal override AssemblySymbol CreateAssemblySymbol() 1137protected override void AddAvailableSymbols(ArrayBuilder<AssemblySymbol> assemblies) 1148public override bool IsMatchingAssembly(AssemblySymbol? candidateAssembly) 1151AssemblySymbol? asm;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (8)
62private ImmutableArray<AssemblySymbol> _noPiaResolutionAssemblies; 70private ImmutableArray<AssemblySymbol> _linkedReferencedAssemblies; 205internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol potentialGiverOfAccess) 243internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 248internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 253internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 258internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 311internal override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies)
Symbols\Retargeting\RetargetingEventSymbol.cs (6)
30private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 140public override AssemblySymbol ContainingAssembly 174internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 178AssemblySymbol primaryDependency = PrimaryDependency; 179var result = new UseSiteInfo<AssemblySymbol>(primaryDependency);
Symbols\Retargeting\RetargetingFieldSymbol.cs (6)
33private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 88public override AssemblySymbol ContainingAssembly 125internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 129AssemblySymbol primaryDependency = PrimaryDependency; 130var result = new UseSiteInfo<AssemblySymbol>(primaryDependency);
Symbols\Retargeting\RetargetingMethodSymbol.cs (6)
53private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 283public override AssemblySymbol ContainingAssembly 358internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 362AssemblySymbol primaryDependency = PrimaryDependency; 363var result = new UseSiteInfo<AssemblySymbol>(primaryDependency);
Symbols\Retargeting\RetargetingModuleSymbol.cs (11)
45/// to what assembly. Key is the <see cref="AssemblySymbol"/> referenced by the underlying module, 46/// value is the corresponding <see cref="AssemblySymbol"/> referenced by this module, and corresponding 49private readonly Dictionary<AssemblySymbol, DestinationData> _retargetingAssemblyMap = 50new Dictionary<AssemblySymbol, DestinationData>(); 56public AssemblySymbol To; 168public override AssemblySymbol ContainingAssembly 188internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly) 195ImmutableArray<AssemblySymbol> underlyingBoundReferences = _underlyingModule.GetReferencedAssemblySymbols(); 196ImmutableArray<AssemblySymbol> referencedAssemblySymbols = moduleReferences.Symbols; 246internal bool RetargetingDefinitions(AssemblySymbol from, out AssemblySymbol to)
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (6)
45private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 275public override AssemblySymbol ContainingAssembly 395internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 399AssemblySymbol primaryDependency = PrimaryDependency; 400_lazyCachedUseSiteInfo.Initialize(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency).AdjustDiagnosticInfo(CalculateUseSiteDiagnostic()));
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
180public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
76public sealed override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingPropertySymbol.cs (6)
34private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 200public override AssemblySymbol ContainingAssembly 234internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 236AssemblySymbol primaryDependency = PrimaryDependency; 240var result = new UseSiteInfo<AssemblySymbol>(primaryDependency);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
154private Dictionary<AssemblySymbol, DestinationData> RetargetingAssemblyMap 232AssemblySymbol retargetFrom = type.ContainingAssembly; 610ImmutableArray<AssemblySymbol> assembliesToEmbedTypesFrom = this.UnderlyingModule.GetAssembliesToEmbedTypesFrom(); 623ImmutableArray<AssemblySymbol> linkedAssemblies = RetargetingAssembly.GetLinkedReferencedAssemblies();
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
70public override AssemblySymbol ContainingAssembly
Symbols\SignatureOnlyMethodSymbol.cs (1)
161public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
105public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
94public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\CustomModifierUtils.cs (1)
69internal static TypeSymbol CopyTypeCustomModifiers(TypeSymbol sourceType, TypeSymbol destinationType, AssemblySymbol containingAssembly)
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
342var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, implementingMember.ContainingAssembly);
Symbols\Source\LambdaSymbol.cs (3)
31private readonly HashSet<AssemblySymbol> _declarationDependencies; 75_declarationDependencies = new HashSet<AssemblySymbol>(); 321addTo.AddDependencies((IReadOnlyCollection<AssemblySymbol>)_declarationDependencies);
Symbols\Source\LocalFunctionSymbol.cs (3)
37private readonly HashSet<AssemblySymbol> _declarationDependencies; 49_declarationDependencies = new HashSet<AssemblySymbol>(); 162addTo.AddDependencies((IReadOnlyCollection<AssemblySymbol>)_declarationDependencies);
Symbols\Source\ModifierUtils.cs (1)
549var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(futureDestination: diagnostics, assemblyBeingBuilt: symbol.ContainingAssembly);
Symbols\Source\ParameterHelpers.cs (1)
947CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics);
Symbols\Source\SourceAssemblySymbol.cs (18)
533private ConcurrentDictionary<AssemblySymbol, bool> _optimisticallyGrantedInternalsAccess; 537private static AssemblySymbol t_assemblyForWhichCurrentThreadIsComputingKeys; 1853internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 1858internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 1863internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 1867return default(ImmutableArray<AssemblySymbol>); 1870internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 2102ConcurrentDictionary<AssemblySymbol, bool> haveGrantedAssemblies = _optimisticallyGrantedInternalsAccess; 2106foreach (var otherAssembly in haveGrantedAssemblies.Keys) 2150internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol potentialGiverOfAccess) 2159var assemblyWhoseKeysAreBeingComputed = t_assemblyForWhichCurrentThreadIsComputingKeys; 2166Interlocked.CompareExchange(ref _optimisticallyGrantedInternalsAccess, new ConcurrentDictionary<AssemblySymbol, bool>(), null); 2219UseSiteInfo<AssemblySymbol> useSiteInfo = forwardedType.GetUseSiteInfo(); 2829internal override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 2896(AssemblySymbol firstSymbol, AssemblySymbol secondSymbol) = peModuleSymbol.GetAssembliesForForwardedType(ref emittedName); 2912visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.Empty);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
1010var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnosticsOpt, ContainingAssembly); 1086var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1114var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1147var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1188var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
100var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, delegateType.ContainingAssembly);
Symbols\Source\SourceEventSymbol.cs (2)
630var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 740protected static void CopyEventCustomModifiers(EventSymbol eventWithCustomModifiers, ref TypeWithAnnotations type, AssemblySymbol containingAssembly)
Symbols\Source\SourceLocalSymbol.cs (4)
573internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 575return ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty; 705internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 709return _constantTuple == null ? ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty : _constantTuple.Diagnostics;
Symbols\Source\SourceMemberContainerSymbol.cs (5)
189private ImmutableArray<AssemblySymbol> _managedKindUseSiteDependencies; 854internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 859var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(ContainingAssembly); 862ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDependencies, managedKindUseSiteInfo.Dependencies?.ToImmutableArray() ?? ImmutableArray<AssemblySymbol>.Empty); 877ImmutableArray<AssemblySymbol> useSiteDependencies = _managedKindUseSiteDependencies;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (11)
165implementingMemberAndDiagnostics = new SymbolAndDiagnostics(explicitImpl.Single(), ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty); 169implementingMemberAndDiagnostics = new SymbolAndDiagnostics(null, new ReadOnlyBindingDiagnostic<AssemblySymbol>(ImmutableArray.Create(diag), default)); 322UseSiteInfo<AssemblySymbol> useSiteInfo = interfaceMember.GetUseSiteInfo(); 357var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 724var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 894var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1025var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1094var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1157var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, overridingProperty.ContainingAssembly); 1239var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1402var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Source\SourceMemberFieldSymbol.cs (2)
97CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
361var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
971var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceModuleSymbol.cs (7)
34private ImmutableArray<AssemblySymbol> _lazyAssembliesToEmbedTypesFrom; 128internal ImmutableArray<AssemblySymbol> GetAssembliesToEmbedTypesFrom() 133var buffer = ArrayBuilder<AssemblySymbol>.GetInstance(); 135foreach (AssemblySymbol asm in this.GetReferencedAssemblySymbols()) 145default(ImmutableArray<AssemblySymbol>)); 333foreach (AssemblySymbol a in GetReferencedAssemblySymbols()) 468public override AssemblySymbol ContainingAssembly
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (7)
116var corLibrary = this.ContainingAssembly.CorLibrary; 126var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 162var corLibrary = this.ContainingAssembly.CorLibrary; 368CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 749var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 833var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (3)
1206var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1229var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1241NoLocation.Singleton, diagnostics: BindingDiagnosticBag.Discarded, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
1020var corLibrary = compilation.SourceAssembly.CorLibrary;
Symbols\Source\SourceNamespaceSymbol.cs (2)
73public override AssemblySymbol ContainingAssembly 435AssemblySymbol containingAssembly = ContainingAssembly;
Symbols\Source\SourceParameterSymbolBase.cs (1)
62public sealed override AssemblySymbol ContainingAssembly
Symbols\Source\SourcePropertySymbol.cs (2)
578CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 670var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
764var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 868var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\SubstitutedMethodSymbol.cs (1)
127public sealed override AssemblySymbol ContainingAssembly
Symbols\Symbol.cs (18)
164public virtual AssemblySymbol ContainingAssembly 1076internal virtual UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1081protected AssemblySymbol PrimaryDependency 1085AssemblySymbol dependency = this.ContainingAssembly; 1159internal bool MergeUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result, UseSiteInfo<AssemblySymbol> info) 1167result = new UseSiteInfo<AssemblySymbol>(diagnosticInfo); 1172var primaryDependency = result.PrimaryDependency; 1176result = new UseSiteInfo<AssemblySymbol>(diagnosticInfo, primaryDependency, secondaryDependencies); 1214internal bool DeriveUseSiteInfoFromType(ref UseSiteInfo<AssemblySymbol> result, TypeSymbol type) 1216UseSiteInfo<AssemblySymbol> info = type.GetUseSiteInfo(); 1225private void GetSymbolSpecificUnsupportedMetadataUseSiteErrorInfo(ref UseSiteInfo<AssemblySymbol> info) 1238private UseSiteInfo<AssemblySymbol> GetSymbolSpecificUnsupportedMetadataUseSiteErrorInfo() 1240var useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty)); 1245internal bool DeriveUseSiteInfoFromType(ref UseSiteInfo<AssemblySymbol> result, TypeWithAnnotations type, AllowedRequiredModifierType allowedRequiredModifierType) 1251internal bool DeriveUseSiteInfoFromParameter(ref UseSiteInfo<AssemblySymbol> result, ParameterSymbol param) 1260internal bool DeriveUseSiteInfoFromParameters(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<ParameterSymbol> parameters) 1283internal bool DeriveUseSiteInfoFromCustomModifiers(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<CustomModifier> customModifiers, AllowedRequiredModifierType allowedRequiredModifierType)
Symbols\SymbolDistinguisher.cs (3)
104var containingAssembly0 = unwrappedSymbol0.ContainingAssembly; 105var containingAssembly1 = unwrappedSymbol1.ContainingAssembly; 175AssemblySymbol containingAssembly = unwrappedSymbol.ContainingAssembly;
Symbols\SymbolExtensions.cs (10)
48public static bool IsAccessibleViaInheritance(this NamedTypeSymbol superType, NamedTypeSymbol subType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 88public static bool IsNoMoreVisibleThan(this Symbol symbol, TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 93public static bool IsNoMoreVisibleThan(this Symbol symbol, TypeWithAnnotations type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 98internal static void AddUseSiteInfo(this Symbol? symbol, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool addDiagnostics = true) 390internal static AssemblySymbol? EnsureCSharpSymbolOrNull(this IAssemblySymbol? symbol, string paramName) 392return (AssemblySymbol?)EnsureCSharpSymbolOrNull((ISymbol?)symbol, paramName); 593internal static IAssemblySymbol? GetPublicSymbol(this AssemblySymbol? symbol) 737internal static ImmutableArray<IAssemblySymbol> GetPublicSymbols(this ImmutableArray<AssemblySymbol> symbols) 790internal static AssemblySymbol? GetSymbol(this IAssemblySymbol? symbol) 792return symbol.GetSymbol<AssemblySymbol>();
Symbols\SymbolVisitor.cs (1)
35public virtual void VisitAssembly(AssemblySymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
35public virtual TResult VisitAssembly(AssemblySymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
47/// Called when visiting an <see cref="AssemblySymbol" />; Override this method with 54public virtual TResult VisitAssembly(AssemblySymbol symbol, TArgument argument)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
161public override AssemblySymbol ContainingAssembly => _containingType.ContainingAssembly;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
874public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (2)
89var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; // This is reported when we bind bases 141internal static MethodSymbol? FindValidCloneMethod(TypeSymbol containingType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
89internal static MethodSymbol? FindCopyConstructor(NamedTypeSymbol containingType, NamedTypeSymbol within, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
61internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed; 85public override AssemblySymbol ContainingAssembly => _module.ContainingAssembly;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
99internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
78public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (2)
274internal sealed override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 276var result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency);
Symbols\Synthesized\SynthesizedLocal.cs (2)
195internal sealed override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 197return ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
94var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Synthesized\SynthesizedUnionCtor.cs (1)
48var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
129internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue)
Symbols\SynthesizedNamespaceSymbol.cs (1)
58public override AssemblySymbol ContainingAssembly
Symbols\Tuples\TupleErrorFieldSymbol.cs (2)
168internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 170return new UseSiteInfo<AssemblySymbol>(_useSiteDiagnosticInfo);
Symbols\Tuples\TupleFieldSymbol.cs (3)
141internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 281internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 285return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_TupleInferredNamesNotAvailable, _name,
Symbols\Tuples\TupleTypeSymbol.cs (1)
497UseSiteInfo<AssemblySymbol> useSiteInfo = member.GetUseSiteInfo();
Symbols\TypeParameterSymbol.cs (8)
73internal virtual UseSiteInfo<AssemblySymbol> GetConstraintsUseSiteErrorInfo() 92internal ImmutableArray<TypeWithAnnotations> ConstraintTypesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 106private void AppendConstraintsUseSiteErrorInfo(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 269internal NamedTypeSymbol EffectiveBaseClass(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 294internal ImmutableArray<NamedTypeSymbol> EffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 318internal TypeSymbol DeducedBaseType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 344internal ImmutableArray<NamedTypeSymbol> AllEffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 595internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\TypeSymbol.cs (22)
164internal NamedTypeSymbol BaseTypeWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 176internal NamedTypeSymbol BaseTypeOriginalDefinition(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 213internal ImmutableArray<NamedTypeSymbol> AllInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 245internal TypeSymbol EffectiveType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 253internal bool IsDerivedFrom(TypeSymbol type, TypeCompareKind comparison, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 280internal bool IsEqualToOrDerivedFrom(TypeSymbol type, TypeCompareKind comparison, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 402internal MultiDictionary<NamedTypeSymbol, NamedTypeSymbol> InterfacesAndTheirBaseInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 458var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 601internal bool IsManagedType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => GetManagedKind(ref useSiteInfo) == ManagedKind.Managed; 607var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 616internal abstract ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 622var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 840var useSiteInfo = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 1015var useSiteInfo2 = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 1059ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1111private static Symbol FindMostSpecificImplementation(Symbol interfaceMember, NamedTypeSymbol implementingInterface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1155ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1267ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1467private static bool IsExplicitlyImplementedViaAccessors(bool checkPendingExplicitImplementations, Symbol interfaceMember, TypeSymbol currType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol implementingMember) 1504private static bool TryGetExplicitImplementationAssociatedPropertyOrEvent(bool checkPendingExplicitImplementations, MethodSymbol interfaceAccessor, TypeSymbol currType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol associated)
Symbols\TypeSymbol.SymbolAndDiagnostics.cs (3)
21public static readonly SymbolAndDiagnostics Empty = new SymbolAndDiagnostics(null, ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty); 24public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 26public SymbolAndDiagnostics(Symbol symbol, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Symbols\TypeSymbolExtensions.cs (8)
21public CompoundUseSiteInfo<AssemblySymbol> UseSiteInfo; 27public static bool ImplementsInterface(this TypeSymbol subType, TypeSymbol superInterface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 714public static bool IsAtLeastAsVisibleAs(this TypeSymbol type, Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 719public static TypeSymbol? FindTypeLessVisibleThan(this TypeSymbol type, Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 743private static bool IsTypeLessVisibleThan(TypeSymbol type, Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1048internal static bool IsAsRestrictive(this Symbol s1, Symbol sym2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1736AssemblySymbol assembly = containingType.ContainingAssembly; 2055var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\TypeWithAnnotations.cs (1)
430public bool IsAtLeastAsVisibleAs(Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\UpdatedContainingSymbolLocal.cs (1)
95internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) =>
Utilities\ITypeUnionValueSetFactory.cs (1)
12TypeUnionValueSet FromTypeMatch(TypeSymbol type, ConversionsBase conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo);
Utilities\TypeUnionValueSet.cs (13)
79internal static TypeUnionValueSet FromTypeMatch(ImmutableArray<CaseInfo> typesInUnion, TypeSymbol type, ConversionsBase conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 90private static bool AnyTypeFromUnionMightMatch(ImmutableArray<CaseInfo> typesInUnion, TypeSymbol type, ConversionsBase conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 121public bool MightIncludeNonNull(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 160var discardedInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 175public bool IsEmpty(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 181private bool? EvaluateNodeForInputValue(Node node, TypeSymbol? inputValue, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 245bool? evaluateTypeMatch(TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 265public TypeSymbol? SampleType(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 278static TypeSymbol? walkUpInvalidClosedSubtypesIfNeeded(TypeSymbol? sampleType, TypeSymbol? originalClosedBase, Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 291static bool isInvalidClosedSubtype(NamedTypeSymbol possibleClosedSubtype, TypeSymbol originalClosedBase, Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 308private CaseInfo? TryGetSampleType(Node root, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 408public bool TypeMatchesAllValuesIfAny(TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 437var discardedInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Utilities\ValueSetFactory.ClosedClassTypeUnionValueSetFactory.cs (1)
76public TypeUnionValueSet FromTypeMatch(TypeSymbol type, ConversionsBase conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Utilities\ValueSetFactory.UnionTypeTypeUnionValueSetFactory.cs (1)
42public TypeUnionValueSet FromTypeMatch(TypeSymbol type, ConversionsBase conversions, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)