2 types derived from AssemblySymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\MissingAssemblySymbol.cs (1)
24internal class MissingAssemblySymbol : AssemblySymbol
Symbols\NonMissingAssemblySymbol.cs (1)
21internal abstract class NonMissingAssemblySymbol : AssemblySymbol
1730 references to AssemblySymbol
Microsoft.CodeAnalysis.CSharp (1272)
Binder\Binder.cs (7)
762AssemblySymbol within, 763ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 771ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 782ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 819ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 828public CompoundUseSiteInfo<AssemblySymbol> GetNewCompoundUseSiteInfo(BindingDiagnosticBag futureDestination) 830return new CompoundUseSiteInfo<AssemblySymbol>(futureDestination, Compilation.Assembly);
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
199var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 262var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\Binder.ValueChecks.cs (4)
445CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1545CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1594CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1634UseSiteInfo<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)
115CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 215CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 322CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 400protected bool IsAttributeConditionallyOmitted(NamedTypeSymbol attributeType, SyntaxTree? syntaxTree, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 580CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 825var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; // ignoring, since already bound argument and parameter
Binder\Binder_Await.cs (1)
413CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Constraints.cs (1)
410var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingSymbol.ContainingAssembly);
Binder\Binder_Conversions.cs (9)
23CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 550CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 651CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1208CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1302CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1309useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 1384RefKind sourceRefKind, RefKind destinationRefKind, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1442var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1509CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Crefs.cs (2)
331CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 338BindingDiagnosticBag diagnostics, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Deconstruct.cs (1)
322CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Expressions.cs (54)
402CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1185CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1234CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1405var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 1507CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1638private void LookupIdentifier(LookupResult lookupResult, SimpleNameSyntax node, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1765var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1852CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2072var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2136var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2202CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2370CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2476CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2491CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2638var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2669var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 3413CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3440CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4540CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4613CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5379CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5571internal ImmutableArray<MethodSymbol> FilterInaccessibleConstructors(ImmutableArray<MethodSymbol> constructors, bool allowProtectedConstructorsOfBaseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 5596private bool IsConstructorAccessible(MethodSymbol constructor, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool allowProtectedConstructorsOfBaseType = false) 5651CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5664useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 5886CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6032CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6133internal static bool ReportConstructorUseSiteDiagnostics(Location errorLocation, BindingDiagnosticBag diagnostics, bool suppressUnsupportedRequiredMembersError, CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 6158private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 6164private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, bool allowProtectedConstructorsOfBaseType, out ImmutableArray<MethodSymbol> allInstanceConstructors, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 6698CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6772CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6793CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6827CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6880CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6935private void LookupInstanceMember(LookupResult lookupResult, TypeSymbol leftType, bool leftIsBaseReference, string rightName, int rightArity, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7327CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7394CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7413private void LookupExtensionMethods(LookupResult lookupResult, ExtensionMethodScope scope, string rightName, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7666CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8105CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8119CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8160CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8249CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8393AssemblySymbol.DynamicType, 8407CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8875ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 8894ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 8927ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 8948ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 9020ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 9038var sealedDiagnostics = ImmutableBindingDiagnostic<AssemblySymbol>.Empty; 9281new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded), 9311UseSiteInfo<AssemblySymbol> info = invoke.GetUseSiteInfo();
Binder\Binder_Invocation.cs (7)
525CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 577CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1371var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1428CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1917CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1997var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2014CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Lookup.cs (39)
35ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 47internal void LookupExtensionMethods(LookupResult result, string name, int arity, LookupOptions options, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 61private Binder LookupSymbolsWithFallback(LookupResult result, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 82LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 116LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 133ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 148private void LookupMembersWithFallback(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 164protected void LookupMembersInternal(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 180protected void LookupMembersInType(LookupResult result, TypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 220private void LookupMembersInErrorType(LookupResult result, ErrorTypeSymbol errorType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 256LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 407ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 443private static void LookupMembersInNamespace(LookupResult result, NamespaceSymbol ns, string name, int arity, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 460private void LookupExtensionMethodsInSingleBinder(ExtensionMethodScope scope, LookupResult result, string name, int arity, LookupOptions options, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 495ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 522var attributeTypeWithoutSuffixViabilityUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 528var attributeTypeWithSuffixViabilityUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 668private bool IsSingleViableAttributeType(LookupResult result, out Symbol symbol, ref CompoundUseSiteInfo<AssemblySymbol> attributeTypeViabilityUseSiteInfo) 689var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 694private bool CheckAttributeTypeViability(Symbol symbol, bool diagnose, ref DiagnosticInfo diagInfo, ref CompoundUseSiteInfo<AssemblySymbol> attributeTypeViabilityUseSiteInfo) 710new CompoundUseSiteInfo<AssemblySymbol>(attributeTypeViabilityUseSiteInfo) : 711CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 764LookupOptions options, Binder originalBinder, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved) 787ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 803ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 881ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1022ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1036private static ImmutableArray<NamedTypeSymbol> GetBaseInterfaces(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1125ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1150private void LookupMembersInInterface(LookupResult current, NamedTypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1168private void LookupMembersInTypeParameter(LookupResult current, TypeParameterSymbol typeParameter, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1187private static bool IsDerivedType(NamedTypeSymbol baseType, NamedTypeSymbol derivedType, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1224private void MergeHidingLookupResults(LookupResult resultHiding, LookupResult resultHidden, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1385internal SingleLookupResult CheckViability(Symbol symbol, int arity, LookupOptions options, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 1584var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1667internal bool IsAccessible(Symbol symbol, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, TypeSymbol accessThroughType = null, ConsList<TypeSymbol> basesBeingResolved = null) 1686internal bool IsAccessible(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 1698/// Should only be called by <see cref="IsAccessible(Symbol, TypeSymbol, out bool, ref CompoundUseSiteInfo{AssemblySymbol}, ConsList{TypeSymbol})"/>, 1701internal virtual bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
Binder\Binder_Operators.cs (17)
55CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 269CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 714CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 788var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1036CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1149CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1235private bool HasApplicableBooleanOperator(NamedTypeSymbol containingType, string name, TypeSymbol argumentType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out MethodSymbol @operator) 1293CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1386CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2503CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3243CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3751CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3967CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4117CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4138useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 4225CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4286CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Patterns.cs (6)
597CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 755CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 797ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1277CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1761CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1789TypeSymbol? lessSpecificCandidate(TypeSymbol bestSoFar, TypeSymbol possiblyLessSpecificCandidate, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Query.cs (1)
958CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
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 (18)
408CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 472CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 774CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1375CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1928CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2012var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2355var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2374var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2382void tryConversion(BoundExpression expr, ref bool reportedError, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2441var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2477var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2570CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3036CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3157CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3199CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3846var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly); 3883var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingType.ContainingAssembly); 3892var constructorUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly);
Binder\Binder_Symbols.cs (22)
200var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 362CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 872CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1273CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1426CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1506ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1687private static UseSiteInfo<AssemblySymbol> GetUseSiteInfoForWellKnownMemberOrContainingType(Symbol symbol) 1691UseSiteInfo<AssemblySymbol> info = symbol.GetUseSiteInfo(); 1762internal NamedTypeSymbol GetWellKnownType(WellKnownType type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1783UseSiteInfo<AssemblySymbol> useSiteInfo; 1789internal static Symbol GetWellKnownTypeMember(CSharpCompilation compilation, WellKnownMember member, out UseSiteInfo<AssemblySymbol> useSiteInfo, bool isOptional = false) 1814useSiteInfo = new UseSiteInfo<AssemblySymbol>(diagnosticInfo: null, useSiteInfo.PrimaryDependency, useSiteInfo.SecondaryDependencies); 1822useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_MissingPredefinedMember, memberDescriptor.DeclaringTypeMetadataName, memberDescriptor.Name)); 1876AssemblySymbol container = symbol.ContainingAssembly; 2309private static AssemblySymbol GetContainingAssembly(Symbol symbol) 2482var containingAssembly = symbol.ContainingAssembly; 2507AssemblySymbol forwardedToAssembly; 2582protected virtual AssemblySymbol GetForwardedToAssemblyInUsingNamespaces(string metadataName, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2587protected AssemblySymbol GetForwardedToAssembly(string fullName, BindingDiagnosticBag diagnostics, Location location) 2590foreach (var referencedAssembly in 2655protected AssemblySymbol GetForwardedToAssembly(string name, int arity, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2674var result = GetForwardedToAssembly(fullMetadataName, diagnostics, location);
Binder\Binder_TupleOperators.cs (1)
130CompoundUseSiteInfo<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 (5)
14internal sealed class BindingDiagnosticBag : BindingDiagnosticBag<AssemblySymbol> 31public BindingDiagnosticBag(DiagnosticBag? diagnosticBag, ICollection<AssemblySymbol>? dependenciesBag) 54return new BindingDiagnosticBag(diagnosticBag: null, PooledHashSet<AssemblySymbol>.GetInstance()); 80return new BindingDiagnosticBag(diagnosticBag: null, new HashSet<AssemblySymbol>()); 137AssemblySymbol? 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 (4)
371var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 456var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1251var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1493ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\ForEachLoopBinder.cs (11)
446CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1018CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1153CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1220CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1319CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1415CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1428useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 1503CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1547CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1575internal static NamedTypeSymbol GetIEnumerableOfT(TypeSymbol type, bool isAsync, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool foundMultiple) 1654CompoundUseSiteInfo<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) 104LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\InMethodBinder.cs (1)
194LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\InSubmissionClassBinder.cs (1)
48LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\LocalScopeBinder.cs (1)
376LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\LockOrUsingBinder.cs (2)
113public readonly ImmutableBindingDiagnostic<AssemblySymbol> Diagnostics; 115public ExpressionAndDiagnostics(BoundExpression expression, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics)
Binder\MethodGroupResolution.cs (4)
24public readonly ImmutableBindingDiagnostic<AssemblySymbol> Diagnostics; 27public MethodGroupResolution(MethodGroup methodGroup, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics) 32public MethodGroupResolution(Symbol otherSymbol, LookupResultKind resultKind, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics) 43ImmutableBindingDiagnostic<AssemblySymbol> diagnostics)
Binder\NameofBinder.cs (1)
52internal 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\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); 348ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 355var withinAssembly = (object)withinType != null ? withinType.ContainingAssembly : (AssemblySymbol)within; 421ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 496Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 547ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 675internal static bool HasInternalAccessTo(this AssemblySymbol fromAssembly, AssemblySymbol toAssembly)
Binder\Semantics\BestTypeInferrer.cs (4)
54ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 112ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 172ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 255ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\Conversions.cs (7)
44public override Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 113public override Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 129protected override Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 153private static MethodGroupResolution ResolveDelegateOrFunctionPointerMethodGroup(Binder binder, BoundMethodGroup source, MethodSymbol delegateInvokeMethodOpt, bool isFunctionPointer, in CallingConventionInfo callingConventionInfo, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 199CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 278public Conversion MethodGroupConversion(SyntaxNode syntax, MethodGroup methodGroup, NamedTypeSymbol delegateType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 385public override Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\ConversionsBase.cs (91)
22protected readonly AssemblySymbol corLibrary; 33protected ConversionsBase(AssemblySymbol corLibrary, int currentRecursionDepth, bool includeNullability, ConversionsBase otherNullabilityOpt) 66public abstract Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 68public abstract Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 70public abstract Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 74protected abstract Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 76internal AssemblySymbol CorLibrary { get { return corLibrary; } } 89public Conversion ClassifyImplicitConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 160public Conversion ClassifyImplicitConversionFromType(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 195public Conversion ClassifyImplicitConversionFromTypeWhenNeitherOrBothFunctionTypes(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 225public Conversion ClassifyConversionFromExpressionType(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 274public Conversion ClassifyConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast = false) 308public Conversion ClassifyConversionFromType(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast = false) 366private Conversion ClassifyConversionFromExpressionForCast(BoundExpression source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 420private Conversion ClassifyConversionFromTypeForCast(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 490public Conversion ClassifyBuiltInConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 520public Conversion ClassifyStandardConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 532public Conversion ClassifyStandardConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 621private Conversion ClassifyStandardImplicitConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 673private Conversion ClassifyStandardImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 679Conversion classifyConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 736private Conversion ClassifyImplicitBuiltInConversionSlow(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 755private Conversion GetImplicitUserDefinedConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 761private Conversion GetImplicitUserDefinedConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 766private Conversion ClassifyExplicitBuiltInOnlyConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 840private Conversion GetExplicitUserDefinedConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 846private Conversion GetExplicitUserDefinedConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 851private Conversion DeriveStandardExplicitFromOppositeStandardImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 914public bool IsBaseInterface(TypeSymbol baseType, TypeSymbol derivedType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 949public bool IsBaseClass(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 992private Conversion ClassifyImplicitBuiltInConversionFromExpression(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1102private Conversion GetSwitchExpressionConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1131private Conversion GetConditionalExpressionConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1212private Conversion ClassifyImplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1243private Conversion ClassifyExplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 1326private Conversion ClassifyExplicitOnlyConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 1541internal bool IsAssignableFromMulticastDelegate(TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1579internal Conversion ClassifyImplicitUserDefinedConversionForV6SwitchGoverningType(TypeSymbol sourceType, out TypeSymbol switchGoverningType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1611internal Conversion GetCallerLineNumberConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1636internal bool HasCallerLineNumberConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1641internal bool HasCallerInfoStringConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1752var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1770public Conversion ConvertExtensionMethodThisArg(TypeSymbol parameterType, TypeSymbol thisType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1779public Conversion ClassifyImplicitExtensionMethodThisArgConversion(BoundExpression sourceExpressionOpt, TypeSymbol sourceType, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1813(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 1830(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool _, ref CompoundUseSiteInfo<AssemblySymbol> u, bool _) => 2089private Conversion ClassifyImplicitNullableConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2132private delegate Conversion ClassifyConversionFromExpressionDelegate(ConversionsBase conversions, BoundExpression sourceExpression, TypeWithAnnotations destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast); 2133private delegate Conversion ClassifyConversionFromTypeDelegate(ConversionsBase conversions, TypeWithAnnotations source, TypeWithAnnotations destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast); 2135private Conversion GetImplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2147(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) 2153private Conversion GetExplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2165(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 2174ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2211private Conversion ClassifyImplicitTupleConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2218(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool _, ref CompoundUseSiteInfo<AssemblySymbol> u, bool _) => 2230private Conversion ClassifyExplicitTupleConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2237(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 2252ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2284private Conversion ClassifyExplicitNullableConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2339private bool HasCovariantArrayConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2361public bool HasIdentityOrImplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2393private bool HasArrayConversionToInterface(ArrayTypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2454private bool HasImplicitReferenceConversion(TypeWithAnnotations source, TypeWithAnnotations destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2474internal bool HasImplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2537private bool HasImplicitConversionToInterface(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2571private bool HasImplicitConversionFromArray(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2612private bool HasImplicitConversionFromDelegate(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2648private bool HasImplicitFunctionTypeConversion(FunctionTypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2659internal bool IsValidFunctionTypeConversionTarget(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2681private bool HasImplicitFunctionTypeToFunctionTypeConversion(FunctionTypeSymbol sourceType, FunctionTypeSymbol destinationType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2702public bool HasImplicitTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2723private bool HasImplicitReferenceTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2761private bool HasImplicitEffectiveBaseConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2785private bool HasImplicitEffectiveInterfaceSetConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2805private bool HasAnyBaseInterfaceConversion(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2845private bool HasInterfaceVarianceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2864private bool HasDelegateVarianceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2883private bool HasVariantConversion(NamedTypeSymbol source, NamedTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2933private bool HasVariantConversionNoCycleCheck(NamedTypeSymbol source, NamedTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3026private bool HasImplicitBoxingTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3075public bool HasBoxingConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3147internal bool HasImplicitPointerConversion(TypeSymbol? source, TypeSymbol? destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3186bool hasConversion(RefKind refKind, TypeWithAnnotations sourceType, TypeWithAnnotations destinationType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3204private bool HasIdentityOrReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3227private bool HasExplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3301private bool HasExplicitReferenceTypeParameterConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3348private bool HasUnboxingTypeParameterConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3394private bool HasExplicitDelegateConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3483private bool HasExplicitArrayConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3575private bool HasUnboxingConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\TypeConversions.cs (6)
17public TypeConversions(AssemblySymbol corLibrary, bool includeNullability = false) 22private TypeConversions(AssemblySymbol corLibrary, int currentRecursionDepth, bool includeNullability, TypeConversions otherNullabilityOpt) 38public override Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 44public override Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 50public override Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 56protected override Conversion GetInterpolatedStringConversion(BoundExpression 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) 364ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 403CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 421ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 457CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 470private Conversion EncompassingExplicitConversion(BoundExpression expr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 493private Conversion EncompassingExplicitConversion(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (17)
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, 281ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 355private TypeSymbol MostSpecificSourceTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 371private TypeSymbol MostSpecificTargetTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 565private bool IsEncompassedBy(BoundExpression aExpr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 579private bool IsEncompassedBy(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 584private Conversion EncompassingImplicitConversion(BoundExpression aExpr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 599private Conversion EncompassingImplicitConversion(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 677ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 686ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 712CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 739ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 748ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 751CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 879protected UserDefinedConversionResult AnalyzeImplicitUserDefinedConversionForV6SwitchGoverningType(TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (12)
20public void BinaryOperatorOverloadResolution(BinaryOperatorKind kind, bool isChecked, BoundExpression left, BoundExpression right, BinaryOperatorOverloadResolutionResult result, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 54ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 211BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 324ArrayBuilder<BinaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 707private void GetAllBuiltInOperators(BinaryOperatorKind kind, bool isChecked, BoundExpression left, BoundExpression right, ArrayBuilder<BinaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 745static bool useOnlyReferenceEquality(Conversions conversions, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 772ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 835ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1039ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1104ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1154private BetterResult BetterOperator(BinaryOperatorSignature op1, BinaryOperatorSignature op2, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1290private BetterResult MoreSpecificOperator(BinaryOperatorSignature op1, BinaryOperatorSignature op2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (7)
23public void UnaryOperatorOverloadResolution(UnaryOperatorKind kind, bool isChecked, BoundExpression operand, UnaryOperatorOverloadResolutionResult result, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 67ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 131ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 181private BetterResult BetterOperator(UnaryOperatorSignature op1, UnaryOperatorSignature op2, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 239private void GetAllBuiltInOperators(UnaryOperatorKind kind, bool isChecked, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 270private bool CandidateOperators(bool isChecked, ArrayBuilder<UnaryOperatorSignature> operators, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 345private bool GetUserDefinedOperators(UnaryOperatorKind kind, bool isChecked, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (53)
273ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 554private MethodTypeInferenceResult InferTypeArgs(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 572private void InferTypeArgsFirstPhase(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 592private void MakeExplicitParameterTypeInferences(BoundExpression argument, TypeWithAnnotations target, ExactOrBoundsKind kind, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 629private bool MakeExplicitParameterTypeInferences(BoundTupleLiteral argument, TypeWithAnnotations target, ExactOrBoundsKind kind, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 673private bool InferTypeArgsSecondPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 723private InferenceResult DoSecondPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 771private void MakeOutputTypeInferences(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 785private void MakeOutputTypeInferences(Binder binder, BoundExpression argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 804private void MakeOutputTypeInferences(Binder binder, BoundTupleLiteral argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 834private InferenceResult FixNondependentParameters(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 844private InferenceResult FixDependentParameters(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 854ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1250private void OutputTypeInference(Binder binder, BoundExpression expression, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1283private bool InferredReturnTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1319private bool MethodGroupReturnTypeInference(Binder binder, BoundExpression source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1390ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1424private void ExplicitParameterTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1479private void ExplicitReturnTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1515private void ExactInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1577private bool ExactArrayInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1607private void ExactOrBoundsInference(ExactOrBoundsKind kind, TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1623private bool ExactOrBoundsNullableInference(ExactOrBoundsKind kind, TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1647private bool ExactNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1652private bool LowerBoundTupleInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1679private bool ExactConstructedInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1709private bool ExactPointerInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1763private void ExactTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1790private void LowerBoundInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1892private static TypeWithAnnotations GetMatchingElementType(ArrayTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1927private bool LowerBoundArrayInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1965private bool LowerBoundNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1970private bool LowerBoundConstructedInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2034private bool LowerBoundClassInference(TypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2079private bool LowerBoundInterfaceInference(TypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2151private void LowerBoundTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2203private bool LowerBoundFunctionPointerTypeInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2254private void UpperBoundInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2329private bool UpperBoundArrayInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2366private bool UpperBoundNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2371private bool UpperBoundConstructedInference(TypeWithAnnotations sourceWithAnnotations, TypeWithAnnotations targetWithAnnotations, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2431private bool UpperBoundClassInference(NamedTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2460private bool UpperBoundInterfaceInference(NamedTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2501private void UpperBoundTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2553private bool UpperBoundFunctionPointerTypeInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2603private bool Fix(int iParam, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2623var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2643ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2830private static bool ImplicitConversionExists(TypeWithAnnotations sourceWithAnnotations, TypeWithAnnotations destinationWithAnnotations, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConversionsBase conversions) 2854private TypeWithAnnotations InferReturnType(BoundExpression source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2999ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3035private bool InferTypeArgumentsFromFirstArgument(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3144ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (45)
100public void ObjectCreationOverloadResolution(ImmutableArray<MethodSymbol> constructors, AnalyzedArguments arguments, OverloadResolutionResult<MethodSymbol> result, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 123ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 147ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 165ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 241ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 297RemoveConstraintViolations(results, template: new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo)); 336ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 418private void RemoveConstraintViolations<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, CompoundUseSiteInfo<AssemblySymbol> template) where TMember : Symbol 574private bool FailsConstraintChecks(MethodSymbol method, out ArrayBuilder<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt, CompoundUseSiteInfo<AssemblySymbol> template) 618ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 700AnalyzedArguments arguments, bool completeResults, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 738ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 776ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 826ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1054ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1083ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1107private static bool MemberGroupHidesByName<TMember>(ArrayBuilder<TMember> members, TMember member, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1141private void RemoveInaccessibleTypeArguments<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1154private bool TypeArgumentsAccessible(ImmutableArray<TypeSymbol> typeArguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1163private static void RemoveLessDerivedMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1286private static bool IsLessDerivedThanAny<TMember>(TypeSymbol type, ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1404ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1427private static void ReportUseSiteInfo<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1436private int GetTheBestCandidateIndex<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1496private void RemoveWorseMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1673ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1713ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2234private static BetterResult MoreSpecificType(ref TemporaryArray<TypeSymbol> t1, ref TemporaryArray<TypeSymbol> t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2266private static BetterResult MoreSpecificType(TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2354private BetterResult BetterConversionFromExpression(BoundExpression node, TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2377ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2424private BetterResult BetterConversionFromExpression(BoundExpression node, TypeSymbol t1, Conversion conv1, TypeSymbol t2, Conversion conv2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool okToDowngradeToNeither) 2514private bool ExpressionMatchExactly(BoundExpression node, TypeSymbol t, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2630private bool ExpressionMatchExactly(BoundTupleLiteral tupleSource, TypeSymbol targetType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2704ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2714ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2732ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2744ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2907private bool CanDowngradeConversionFromLambdaToNeither(BetterResult currentResult, UnboundLambda lambda, TypeSymbol type1, TypeSymbol type2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool fromTypeAnalysis) 3273ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3355ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3425ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3555ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3611ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3758ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo,
Binder\Semantics\SemanticFacts.cs (3)
38var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 51AssemblySymbol within) 63var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\SwitchBinder.cs (2)
252CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 407CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\SwitchExpressionBinder.cs (1)
148CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\UsingStatementBinder.cs (3)
189CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = originalBinder.GetNewCompoundUseSiteInfo(diagnostics); 255var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 269Conversion classifyConversion(bool fromExpression, TypeSymbol targetInterface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithClassTypeParametersBinder.cs (1)
30internal override bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
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)
39LookupResult 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) 56var result = GetForwardedToAssembly(fullName, diagnostics, location); 131LookupResult result, string name, int arity, ConsList<TypeSymbol>? basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
BoundTree\BoundExpressionExtensions.cs (1)
117public static NamedTypeSymbol? GetInferredDelegateType(this BoundExpression expr, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
BoundTree\UnboundLambda.cs (14)
47internal readonly ImmutableArray<AssemblySymbol> Dependencies; 57ImmutableArray<AssemblySymbol> dependencies) 82public BoundLambda(SyntaxNode syntax, UnboundLambda unboundLambda, BoundBlock body, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? delegateType, InferredLambdaReturnType inferredReturnType) 106public TypeWithAnnotations GetInferredReturnType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType) 117public TypeWithAnnotations GetInferredReturnType(ConversionsBase? conversions, NullableWalker.VariableState? nullableState, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType) 226var useSiteInfo = withDependencies ? new CompoundUseSiteInfo<AssemblySymbol>(binder.Compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 239useSiteInfo.AccumulatesDependencies ? useSiteInfo.Dependencies.AsImmutableOrEmpty() : ImmutableArray<AssemblySymbol>.Empty); 249ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 469public TypeWithAnnotations InferReturnType(ConversionsBase conversions, NamedTypeSymbol delegateType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType) 910ImmutableArray<AssemblySymbol>.Empty); 1195ImmutableArray<AssemblySymbol>.Empty)) 1276foreach (ImmutableBindingDiagnostic<AssemblySymbol> bag in allBags) 1299foreach (ImmutableBindingDiagnostic<AssemblySymbol> bag in allBags)
BoundTree\VariablePendingInference.cs (1)
82, PooledHashSet<AssemblySymbol>.GetInstance()
CodeGen\Optimizer.cs (1)
2293internal override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue)
Compilation\BuiltInOperators.cs (1)
859internal static bool IsValidObjectEquality(Conversions Conversions, TypeSymbol leftType, bool leftIsNull, bool leftIsDefault, TypeSymbol rightType, bool rightIsNull, bool rightIsDefault, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Compilation\CSharpCompilation.cs (27)
67private ConcurrentDictionary<ImportInfo, ImmutableArray<AssemblySymbol>>? _lazyImportInfos; 72private ImmutableArray<AssemblySymbol> _lazyClsComplianceDependencies; 1083/// Gets the <see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> for a metadata reference used to create this compilation. 1085/// <returns><see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> corresponding to the given reference or null if there is none.</returns> 1220internal void GetUnaliasedReferencedAssemblies(ArrayBuilder<AssemblySymbol> assemblies) 1255internal MetadataReference? GetMetadataReference(AssemblySymbol? assemblySymbol) 1280internal new AssemblySymbol Assembly 1658return AssemblySymbol.DynamicType; 1720ImmutableBindingDiagnostic<AssemblySymbol> diagnostics; 1730new ImmutableBindingDiagnostic<AssemblySymbol>( 1741private MethodSymbol? FindEntryPoint(MethodSymbol? simpleProgramEntryPointSymbol, CancellationToken cancellationToken, out ImmutableBindingDiagnostic<AssemblySymbol> sealedDiagnostics) 2084public readonly ImmutableBindingDiagnostic<AssemblySymbol> Diagnostics; 2086public static readonly EntryPoint None = new EntryPoint(null, ImmutableBindingDiagnostic<AssemblySymbol>.Empty); 2088public EntryPoint(MethodSymbol? methodSymbol, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics) 2134var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2226var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2229AccessCheck.IsSymbolAccessible(symbol0, (AssemblySymbol)within0, ref discardedUseSiteInfo) : 2410ImmutableArray<AssemblySymbol> dependencies = pair.Value; 2438var bindingDiagnostics = new BindingDiagnosticBag(diagnosticBag: null, PooledHashSet<AssemblySymbol>.GetInstance()); 2451foreach (var assembly in bindingDiagnostics.DependenciesBag) 2516internal void RecordImportDependencies(UsingDirectiveSyntax syntax, ImmutableArray<AssemblySymbol> dependencies) 2750builder.DependenciesBag is object ? new ConcurrentSet<AssemblySymbol>() : null); 2952private ImmutableBindingDiagnostic<AssemblySymbol> GetSourceDeclarationDiagnostics(SyntaxTree? syntaxTree = null, TextSpan? filterSpanWithinTree = null, Func<IEnumerable<Diagnostic>, SyntaxTree, TextSpan?, IEnumerable<Diagnostic>>? locationFilterOpt = null, CancellationToken cancellationToken = default) 2988ImmutableBindingDiagnostic<AssemblySymbol> clsDiagnostics = GetClsComplianceDiagnostics(syntaxTree, filterSpanWithinTree, cancellationToken); 2990return new ImmutableBindingDiagnostic<AssemblySymbol>(result.AsImmutable().Concat(clsDiagnostics.Diagnostics), clsDiagnostics.Dependencies); 2993private ImmutableBindingDiagnostic<AssemblySymbol> GetClsComplianceDiagnostics(SyntaxTree? syntaxTree, TextSpan? filterSpanWithinTree, CancellationToken cancellationToken) 3013return new ImmutableBindingDiagnostic<AssemblySymbol>(_lazyClsComplianceDiagnostics, _lazyClsComplianceDependencies);
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (1)
136var corLibrary = compilation.SourceAssembly.CorLibrary;
Compilation\CSharpSemanticModel.cs (10)
36/// table, (that is, from an <see cref="AssemblySymbol"/> of the <see cref="Compilation"/>), 1662var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1735var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1846var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2044var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2207var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2851var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2903var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4029var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4616var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compilation\MemberSemanticModel.cs (2)
471var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 495var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compilation\SyntaxTreeSemanticModel.cs (1)
250var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compiler\ClsComplianceChecker.cs (3)
44Debug.Assert(diagnostics.DependenciesBag is null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); 75var queue = new BindingDiagnosticBag(diagnostics.DiagnosticBag, diagnostics.AccumulatesDependencies ? new ConcurrentSet<AssemblySymbol>() : null); 82public override void VisitAssembly(AssemblySymbol symbol)
Compiler\DocumentationCommentCompiler.cs (1)
1153CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics);
Compiler\MethodCompiler.cs (2)
93Debug.Assert(diagnostics.DependenciesBag == null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); 1163actualDiagnostics = new ImmutableBindingDiagnostic<AssemblySymbol>(sourceMethod.SetDiagnostics(actualDiagnostics.Diagnostics, out diagsWritten), actualDiagnostics.Dependencies);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (10)
290private readonly AssemblySymbol _otherAssembly; 316AssemblySymbol otherAssembly, 394var otherAssembly = (AssemblySymbol?)Visit(module.ContainingAssembly); 421public override Symbol? VisitAssembly(AssemblySymbol assembly) 438foreach (var otherReferencedAssembly in _otherAssembly.Modules[0].ReferencedAssemblySymbols) 449private static bool IdentityEqualIgnoringVersionWildcard(AssemblySymbol left, AssemblySymbol right) 494var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1082var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Emitter\Model\AssemblyReference.cs (2)
20private readonly AssemblySymbol _targetAssembly; 22internal AssemblyReference(AssemblySymbol assemblySymbol)
Emitter\Model\PEModuleBuilder.cs (9)
26internal abstract class PEModuleBuilder : PEModuleBuilder<CSharpCompilation, SourceModuleSymbol, AssemblySymbol, TypeSymbol, NamedTypeSymbol, MethodSymbol, SyntaxNode, NoPia.EmbeddedTypesManager, ModuleCompilationState> 134internal sealed override AssemblySymbol CorLibrary 156foreach (AssemblySymbol aRef in modules[i].GetReferencedAssemblySymbols()) 163private void ValidateReferencedAssembly(AssemblySymbol assembly, AssemblyReference asmRef, DiagnosticBag diagnostics) 784internal IEnumerable<AssemblySymbol> GetReferencedAssembliesUsedSoFar() 786foreach (AssemblySymbol a in SourceModule.GetReferencedAssemblySymbols()) 843AssemblySymbol corLibrary = CorLibrary; 855internal sealed override Cci.IAssemblyReference Translate(AssemblySymbol assembly, DiagnosticBag diagnostics) 911AssemblySymbol container = module.ContainingAssembly;
Emitter\NoPia\EmbeddedEvent.cs (1)
112var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Emitter\NoPia\EmbeddedType.cs (1)
70ImmutableArray<AssemblySymbol> refs = TypeManager.ModuleBeingBuilt.SourceModule.GetReferencedAssemblySymbols();
Emitter\NoPia\EmbeddedTypesManager.cs (9)
35AssemblySymbol, 39private readonly ConcurrentDictionary<AssemblySymbol, string> _assemblyGuidMap = new ConcurrentDictionary<AssemblySymbol, string>(ReferenceEqualityComparer.Instance); 61UseSiteInfo<AssemblySymbol> info = typeSymbol.GetUseSiteInfo(); 94UseSiteInfo<AssemblySymbol> info; 156internal string GetAssemblyGuidString(AssemblySymbol assembly) 181foreach (AssemblySymbol a in ModuleBeingBuilt.GetReferencedAssembliesUsedSoFar()) 205internal override void ReportIndirectReferencesToLinkedAssemblies(AssemblySymbol a, DiagnosticBag diagnostics) 218foreach (AssemblySymbol indirectRef in m.GetReferencedAssemblySymbols())
FlowAnalysis\NullableWalker.cs (14)
1958var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2546var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4210var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4326var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4750var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5031var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5482var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 6773var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 7050var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 7183new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded), 7260var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8663var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 10036var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 10204var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (2)
62internal override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) => ImmutableBindingDiagnostic<AssemblySymbol>.Empty;
FlowAnalysis\NullableWalker_Patterns.cs (3)
424var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 722var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 906var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Generated\BoundNodes.xml.Generated.cs (3)
7274public BoundLambda(SyntaxNode syntax, UnboundLambda unboundLambda, LambdaSymbol symbol, BoundBlock body, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type, bool hasErrors = false) 7294public ImmutableBindingDiagnostic<AssemblySymbol> Diagnostics { get; } 7300public BoundLambda Update(UnboundLambda unboundLambda, LambdaSymbol symbol, BoundBlock body, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
275var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly); 602var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
550var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(Diagnostics, _bound.Compilation.Assembly);
Lowering\LocalRewriter\LocalRewriter.cs (2)
1004private CompoundUseSiteInfo<AssemblySymbol> GetNewCompoundUseSiteInfo() 1006return new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
210CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = _localRewriter.GetNewCompoundUseSiteInfo(); 464CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = _localRewriter.GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
735CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
105var assembly = receiver.Type.ContainingAssembly; 124var assembly = receiver.Type.ContainingAssembly;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
672var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 1702CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
104UseSiteInfo<AssemblySymbol> useSiteInfo = field.GetUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
275CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
504var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
48CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
150var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
220resultType = AssemblySymbol.DynamicType; 271var resultType = AssemblySymbol.DynamicType; 313resultType = AssemblySymbol.DynamicType; 432return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), loweredRight, AssemblySymbol.DynamicType);
Lowering\SyntheticBoundNodeFactory.cs (4)
135internal override bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved) 520CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 609var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1356CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Operations\CSharpOperationFactory.cs (1)
1787var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\AliasSymbol.cs (1)
237var corLibrary = this.ContainingAssembly.CorLibrary;
Symbols\ArrayTypeSymbol.cs (7)
36AssemblySymbol declaringAssembly, 65AssemblySymbol declaringAssembly, 90AssemblySymbol declaringAssembly, 105AssemblySymbol declaringAssembly) 237internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed; 451internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 453UseSiteInfo<AssemblySymbol> result = default;
Symbols\AssemblySymbol.cs (20)
40private AssemblySymbol _corLibrary; 48internal AssemblySymbol CorLibrary 60internal void SetCorLibrary(AssemblySymbol corLibrary) 202public sealed override AssemblySymbol ContainingAssembly 337internal abstract NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies); 358internal virtual NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 369internal ErrorTypeSymbol CreateMultipleForwardingErrorTypeSymbol(ref MetadataTypeName emittedName, ModuleSymbol forwardingModule, AssemblySymbol destination1, AssemblySymbol destination2) 506internal abstract ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(); 507internal abstract void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies); 514internal abstract ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies(); 515internal abstract void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies); 518internal abstract bool AreInternalsVisibleToThisAssembly(AssemblySymbol other); 650out (AssemblySymbol, AssemblySymbol) conflicts, 854out (AssemblySymbol, AssemblySymbol) conflicts, 906var assemblies = ArrayBuilder<AssemblySymbol>.GetInstance(); 919foreach (var assembly in assemblies) 1003private static NamedTypeSymbol? GetTopLevelTypeByMetadataName(AssemblySymbol assembly, ref MetadataTypeName metadataName, AssemblyIdentity? assemblyOpt)
Symbols\Attributes\AttributeData.cs (1)
142var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\BaseTypeAnalysis.cs (2)
123internal static ManagedKind GetManagedKind(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 150static (bool definitelyManaged, bool hasGenerics) dependsOnDefinitelyManagedType(NamedTypeSymbol type, HashSet<Symbol> partialClosure, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Compilation_UsedAssemblies.cs (22)
22private ConcurrentSet<AssemblySymbol>? _lazyUsedAssemblyReferences; 27ConcurrentSet<AssemblySymbol>? usedAssemblies = GetCompleteSetOfUsedAssemblies(cancellationToken); 42if (symbol is object && usedAssemblies.Contains((AssemblySymbol)symbol) && 66private ConcurrentSet<AssemblySymbol>? GetCompleteSetOfUsedAssemblies(CancellationToken cancellationToken) 70var diagnostics = new BindingDiagnosticBag(DiagnosticBag.GetInstance(), new ConcurrentSet<AssemblySymbol>()); 95void addUsedAssembly(AssemblySymbol dependency, ArrayBuilder<AssemblySymbol> stack) 103void addReferencedAssemblies(AssemblySymbol assembly, bool includeMainModule, ArrayBuilder<AssemblySymbol> stack) 107foreach (var dependency in assembly.Modules[i].ReferencedAssemblySymbols) 124foreach (var assembly in SourceModule.ReferencedAssemblySymbols) 134foreach (var dependency in SourceAssembly.Modules[i].ReferencedAssemblySymbols) 156var stack = ArrayBuilder<AssemblySymbol>.GetInstance(_lazyUsedAssemblyReferences.Count); 161AssemblySymbol current = stack.Pop(); 162ConcurrentSet<AssemblySymbol>? usedAssemblies; 175foreach (AssemblySymbol dependency in usedAssemblies) 187foreach (AssemblySymbol underlyingDependency in retargetingAssembly.UnderlyingAssembly.SourceModule.ReferencedAssemblySymbols) 191AssemblySymbol dependency; 227internal void AddUsedAssemblies(ICollection<AssemblySymbol>? assemblies) 231foreach (var candidate in assemblies) 238internal bool AddUsedAssembly(AssemblySymbol? assembly) 247Interlocked.CompareExchange(ref _lazyUsedAssemblyReferences, new ConcurrentSet<AssemblySymbol>(), null);
Symbols\Compilation_WellKnownMembers.cs (7)
135(AssemblySymbol, AssemblySymbol) conflicts = default; 194var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 203internal bool IsExceptionType(TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 213internal bool IsEqualOrDerivedFromWellKnownClass(TypeSymbol type, WellKnownType wellKnownType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 242internal static Symbol? GetRuntimeMember(NamedTypeSymbol declaringType, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt) 248internal static Symbol? GetRuntimeMember(ImmutableArray<Symbol> members, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt)
Symbols\ConstantValueUtils.cs (2)
18public readonly ImmutableBindingDiagnostic<AssemblySymbol> Diagnostics; 20public EvaluatedConstant(ConstantValue value, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics)
Symbols\ConstraintsHelper.cs (39)
28public readonly UseSiteInfo<AssemblySymbol> UseSiteInfo; 30public TypeParameterDiagnosticInfo(TypeParameterSymbol typeParameter, UseSiteInfo<AssemblySymbol> useSiteInfo) 72AssemblySymbol corLibrary, 82template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)); 101AssemblySymbol corLibrary, 108CompoundUseSiteInfo<AssemblySymbol> template) 126var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(template); 150diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(constraintTypeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_CircularConstraint, constraintTypeParameter, typeParameter)))); 184diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(errorCode, typeParameter, constraintTypeParameter)))); 222diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(underlyingTypeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_CircularConstraint, underlyingTypeParameter, typeParameter)))); 274diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BaseConstraintConflict, typeParameter, constraintDeducedBase, deducedBaseType)))); 498public readonly CompoundUseSiteInfo<AssemblySymbol> Template; 506this(currentCompilation, conversions, includeNullability, location, diagnostics, template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)) 510public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics, CompoundUseSiteInfo<AssemblySymbol> template) 884diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BadTypeArgument, typeArgument.Type)))); 891diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_GenericArgIsStaticClass, typeArgument.Type)))); 900diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_RefConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 909var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(args.Template); 916diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 930diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(csDiagnosticInfo))); 940diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_ValConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 982var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(args.Template); 991new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, iface, member)))); 1025diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NewConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1029diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NewConstraintCannotHaveRequiredMembers, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1048nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, containingSymbol.ConstructedFrom(), typeParameter, typeArgument)))); 1055nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, containingSymbol.ConstructedFrom(), typeParameter, typeArgument)))); 1068ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1079nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, containingSymbol.ConstructedFrom(), constraintType, typeParameter, typeArgument)))); 1118diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(errorCode, containingSymbol.ConstructedFrom(), constraintTypeErrorArgument, typeParameter, typeArgumentErrorArgument)))); 1194CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1202new UseSiteInfo<AssemblySymbol>(useSiteInfo.Dependencies.Single()) : 1203new UseSiteInfo<AssemblySymbol>(useSiteInfo.Dependencies.ToImmutableHashSet()))); 1228useSiteDiagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(info))); 1243ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1295private static bool SelfOrBaseHasStaticAbstractMember(NamedTypeSymbol iface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol memberWithoutImplementation) 1339return new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BaseConstraintConflict, typeParameter, deducedBase, classConflict ? "class" : "struct"))); 1437private static bool IsEncompassedBy(ConversionsBase conversions, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1512var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\DynamicTypeSymbol.cs (1)
109internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed;
Symbols\ErrorTypeSymbol.cs (3)
80internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 82return new UseSiteInfo<AssemblySymbol>(this.ErrorInfo); 613internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo()
Symbols\EventSymbol.cs (4)
194var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 272internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 276return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 282internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\ExtendedErrorTypeSymbol.cs (2)
122internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 126return new UseSiteInfo<AssemblySymbol>(this.ErrorInfo);
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 (3)
771internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 773UseSiteInfo<AssemblySymbol> info = default; 778MergeUseSiteInfo(ref info, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_UnsupportedCallingConvention, this)));
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (4)
88internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Unmanaged; 143internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 145UseSiteInfo<AssemblySymbol> fromSignature = Signature.GetUseSiteInfo(); 149return 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)
356internal abstract ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue);
Symbols\MergedNamespaceSymbol.cs (1)
250public 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; 160internal (AssemblySymbol FirstSymbol, AssemblySymbol SecondSymbol) LookupAssembliesForForwardedMetadataType(ref MetadataTypeName emittedName) 176internal override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 179(AssemblySymbol firstSymbol, AssemblySymbol secondSymbol) = LookupAssembliesForForwardedMetadataType(ref emittedName); 196visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.Empty); 206internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 211internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 216internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 221internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 239internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol potentialGiverOfAccess)
Symbols\Metadata\PE\PEEventSymbol.cs (8)
35private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 463internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 465AssemblySymbol primaryDependency = PrimaryDependency; 469UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(primaryDependency); 477void deriveCompilerFeatureRequiredUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result) 492result = new UseSiteInfo<AssemblySymbol>(diag);
Symbols\Metadata\PE\PEFieldSymbol.cs (9)
123private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 626internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 628AssemblySymbol primaryDependency = PrimaryDependency; 632UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(primaryDependency); 637MergeUseSiteInfo(ref result, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 645void deriveCompilerFeatureRequiredUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result) 660result = new UseSiteInfo<AssemblySymbol>(diag);
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
66public override AssemblySymbol ContainingAssembly
Symbols\Metadata\PE\PEMethodSymbol.cs (10)
285public CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo; 402InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 855InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 871InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(diagnosticInfo)); 1381internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1385UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 1457private UseSiteInfo<AssemblySymbol> GetCachedUseSiteInfo() 1462private UseSiteInfo<AssemblySymbol> InitializeUseSiteDiagnostic(UseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Metadata\PE\PEModuleSymbol.cs (13)
31private readonly AssemblySymbol _assemblySymbol; 124: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 130: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 136: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 141private PEModuleSymbol(AssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal) 224public override AssemblySymbol ContainingAssembly 617foreach (AssemblySymbol assembly in this.GetReferencedAssemblySymbols()) 731internal (AssemblySymbol FirstSymbol, AssemblySymbol SecondSymbol) GetAssembliesForForwardedType(ref MetadataTypeName fullName) 741AssemblySymbol firstSymbol = GetReferencedAssemblySymbol(firstIndex); 748AssemblySymbol secondSymbol = GetReferencedAssemblySymbol(secondIndex); 761AssemblySymbol firstSymbol = this.GetReferencedAssemblySymbol(forwarder.Value.FirstIndex); 766var secondSymbol = this.GetReferencedAssemblySymbol(forwarder.Value.SecondIndex);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
79private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 614var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2061internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 2065AssemblySymbol primaryDependency = PrimaryDependency; 2066_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)
674var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 693var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 713var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 735var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Metadata\PE\PEPropertySymbol.cs (5)
40private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 818internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 820AssemblySymbol primaryDependency = PrimaryDependency; 824var result = new UseSiteInfo<AssemblySymbol>(primaryDependency);
Symbols\Metadata\PE\PETypeParameterSymbol.cs (8)
38private CachedUseSiteInfo<AssemblySymbol> _lazyCachedConstraintsUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 142public override AssemblySymbol ContainingAssembly 239_lazyCachedConstraintsUseSiteInfo.InterlockedCompareExchange(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 419_lazyCachedConstraintsUseSiteInfo.InterlockedCompareExchange(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 670AssemblySymbol primaryDependency = PrimaryDependency; 671var useSiteInfo = new UseSiteInfo<AssemblySymbol>(primaryDependency); 692internal override UseSiteInfo<AssemblySymbol> GetConstraintsUseSiteErrorInfo()
Symbols\Metadata\PE\SymbolFactory.cs (1)
103ImmutableArray<AssemblySymbol> linkedAssemblies = moduleSymbol.ContainingAssembly.GetLinkedReferencedAssemblies();
Symbols\MetadataOrSourceAssemblySymbol.cs (4)
224protected IVTConclusion MakeFinalIVTDetermination(AssemblySymbol potentialGiverOfAccess) 264private ConcurrentDictionary<AssemblySymbol, IVTConclusion> _assembliesToWhichInternalAccessHasBeenAnalyzed; 266private ConcurrentDictionary<AssemblySymbol, IVTConclusion> AssembliesToWhichInternalAccessHasBeenDetermined 271Interlocked.CompareExchange(ref _assembliesToWhichInternalAccessHasBeenAnalyzed, new ConcurrentDictionary<AssemblySymbol, IVTConclusion>(), null);
Symbols\MethodSymbol.cs (4)
448var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 929internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 933return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 941internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\MissingAssemblySymbol.cs (9)
21/// A <see cref="MissingAssemblySymbol"/> is a special kind of <see cref="AssemblySymbol"/> that represents 120internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 125internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 127return ImmutableArray<AssemblySymbol>.Empty; 130internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 135internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 137return ImmutableArray<AssemblySymbol>.Empty; 166internal override NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 183internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other)
Symbols\MissingMetadataTypeSymbol.cs (3)
65AssemblySymbol containingAssembly = this.ContainingAssembly; 227public override AssemblySymbol ContainingAssembly 291AssemblySymbol containingAssembly = _containingModule.ContainingAssembly;
Symbols\MissingModuleSymbol.cs (7)
26protected readonly AssemblySymbol assembly; 30public MissingModuleSymbol(AssemblySymbol assembly, int ordinal) 81public override AssemblySymbol ContainingAssembly 158internal override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 160return ImmutableArray<AssemblySymbol>.Empty; 163internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly) 207public MissingModuleSymbolWithName(AssemblySymbol assembly, string name)
Symbols\MissingNamespaceSymbol.cs (1)
59public override AssemblySymbol ContainingAssembly
Symbols\ModuleSymbol.cs (7)
39public override AssemblySymbol ContainingAssembly 43return (AssemblySymbol)ContainingSymbol; 233public ImmutableArray<AssemblySymbol> ReferencedAssemblySymbols 250internal abstract ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols(); // TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead. 252internal AssemblySymbol GetReferencedAssemblySymbol(int referencedAssemblyIndex) 262var assembly = ContainingAssembly; 282internal 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) 411internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1271internal void GetAllTypeArguments(ref TemporaryArray<TypeSymbol> builder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1285internal ImmutableArray<TypeWithAnnotations> GetAllTypeArguments(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1292internal void GetAllTypeArguments(ArrayBuilder<TypeWithAnnotations> builder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1367internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1369UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 1385private bool DeriveUseSiteDiagnosticFromTypeArguments(ref UseSiteInfo<AssemblySymbol> result)
Symbols\NamespaceExtent.cs (3)
57public AssemblySymbol Assembly 63return (AssemblySymbol)_symbolOrCompilation; 104internal NamespaceExtent(AssemblySymbol assembly)
Symbols\NamespaceSymbol.cs (2)
100public abstract override AssemblySymbol ContainingAssembly { get; } 349var assembly = this.ContainingAssembly;
Symbols\NativeIntegerTypeSymbol.cs (1)
164internal 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, 54public AssemblySymbol EmbeddingAssembly
Symbols\NoPiaMissingCanonicalTypeSymbol.cs (3)
23private readonly AssemblySymbol _embeddingAssembly; 30AssemblySymbol embeddingAssembly, 50public AssemblySymbol EmbeddingAssembly
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
1072var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\ParameterSymbol.cs (1)
429UseSiteInfo<AssemblySymbol> info = default;
Symbols\PointerTypeSymbol.cs (3)
109internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Unmanaged; 285internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 287UseSiteInfo<AssemblySymbol> result = default;
Symbols\PropertySymbol.cs (4)
290var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 362internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 366return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 372internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\PublicModel\AssemblySymbol.cs (1)
22internal 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)
43var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 112private static MethodSymbol InferExtensionMethodTypeArguments(MethodSymbol method, TypeSymbol thisType, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 128var containingAssembly = method.ContainingAssembly; 201var success = method.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo)), 348public override AssemblySymbol ContainingAssembly
Symbols\ReferenceManager.cs (55)
56internal sealed class ReferenceManager : CommonReferenceManager<CSharpCompilation, AssemblySymbol> 125protected override void GetActualBoundReferencesUsedBy(AssemblySymbol assemblySymbol, List<AssemblySymbol?> referencedAssemblySymbols) 142protected override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(AssemblySymbol candidateAssembly) 149return ImmutableArray<AssemblySymbol>.Empty; 155protected override bool IsLinked(AssemblySymbol candidateAssembly) 160protected override AssemblySymbol? GetCorLibrary(AssemblySymbol candidateAssembly) 162AssemblySymbol corLibrary = candidateAssembly.CorLibrary; 254var referencedAssembliesByIdentity = new AssemblyIdentityMap<AssemblySymbol>(); 255foreach (var symbol in this.ReferencedAssemblies) 281private static AssemblySymbol MapAssemblyIdentityToResolvedSymbol(AssemblyIdentity identity, AssemblyIdentityMap<AssemblySymbol> map) 283AssemblySymbol symbol; 323private void InitializeAssemblyReuseData(AssemblySymbol assemblySymbol, ImmutableArray<AssemblySymbol> referencedAssemblies, ImmutableArray<UnifiedAssembly<AssemblySymbol>> unifiedAssemblies) 329var sourceModuleReferences = new ModuleReferences<AssemblySymbol>(referencedAssemblies.SelectAsArray(a => a.Identity), referencedAssemblies, unifiedAssemblies); 439AssemblySymbol? corLibrary; 464ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences; 546var corLibrary = sourceAssembly.CorLibrary; 566var linkedReferencedAssembliesBuilder = ArrayBuilder<AssemblySymbol>.GetInstance(); 593var linkedAssemblySymbol = bindingResult[referenceBinding.DefinitionIndex].AssemblySymbol; 661ImmutableArray<AssemblySymbol> underlyingReferencedAssemblySymbols = 665foreach (AssemblySymbol asm in underlyingReferencedAssemblySymbols) 693AssemblySymbol[] symbols = new AssemblySymbol[refsCount]; 694ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 709var moduleReferences = new ModuleReferences<AssemblySymbol>(referencedAssemblies, symbols.AsImmutableOrNull(), unifiedAssemblies.AsImmutableOrEmpty()); 735var symbols = new AssemblySymbol[moduleReferenceCount]; 739ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 753var moduleReferences = new ModuleReferences<AssemblySymbol>(identities.AsImmutableOrNull(), symbols.AsImmutableOrNull(), unifiedAssemblies.AsImmutableOrEmpty()); 766out ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences) 771var moduleReferencesBuilder = (moduleSymbols.Length > 1) ? ArrayBuilder<ModuleReferences<AssemblySymbol>>.GetInstance() : null; 779var symbols = new AssemblySymbol[refsCount]; 781ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 801var references = new ModuleReferences<AssemblySymbol>( 819private static AssemblySymbol GetAssemblyDefinitionSymbol( 822ref ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies) 826var assembly = bindingResult[referenceBinding.DefinitionIndex].AssemblySymbol; 833unifiedAssemblies = new ArrayBuilder<UnifiedAssembly<AssemblySymbol>>(); 836unifiedAssemblies.Add(new UnifiedAssembly<AssemblySymbol>(assembly, referenceBinding.ReferenceIdentity)); 865private List<AssemblySymbol>? _assemblies; 883internal abstract AssemblySymbol CreateAssemblySymbol(); 893public override IEnumerable<AssemblySymbol> AvailableSymbols 899_assemblies = new List<AssemblySymbol>(); 911protected abstract void AddAvailableSymbols(List<AssemblySymbol> assemblies); 980internal override AssemblySymbol CreateAssemblySymbol() 1013protected override void AddAvailableSymbols(List<AssemblySymbol> assemblies) 1029public override bool IsMatchingAssembly(AssemblySymbol? candidateAssembly) 1121internal override AssemblySymbol CreateAssemblySymbol() 1126protected override void AddAvailableSymbols(List<AssemblySymbol> assemblies) 1137public override bool IsMatchingAssembly(AssemblySymbol? candidateAssembly) 1140AssemblySymbol? asm;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (8)
62private ImmutableArray<AssemblySymbol> _noPiaResolutionAssemblies; 70private ImmutableArray<AssemblySymbol> _linkedReferencedAssemblies; 196internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other) 219internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 224internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 229internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 234internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 283internal 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 123internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 127AssemblySymbol primaryDependency = PrimaryDependency; 128var result = new UseSiteInfo<AssemblySymbol>(primaryDependency);
Symbols\Retargeting\RetargetingMethodSymbol.cs (6)
53private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 274public override AssemblySymbol ContainingAssembly 349internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 353AssemblySymbol primaryDependency = PrimaryDependency; 354var 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)
44private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 237public override AssemblySymbol ContainingAssembly 357internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 361AssemblySymbol primaryDependency = PrimaryDependency; 362_lazyCachedUseSiteInfo.Initialize(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency).AdjustDiagnosticInfo(CalculateUseSiteDiagnostic()));
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
169public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
71public 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)
68public override AssemblySymbol ContainingAssembly
Symbols\SignatureOnlyMethodSymbol.cs (1)
153public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
94public 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)
306var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, implementingMember.ContainingAssembly);
Symbols\Source\ModifierUtils.cs (1)
491var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(futureDestination: diagnostics, assemblyBeingBuilt: symbol.ContainingAssembly);
Symbols\Source\ParameterHelpers.cs (1)
709CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics);
Symbols\Source\SourceAssemblySymbol.cs (18)
528private ConcurrentDictionary<AssemblySymbol, bool> _optimisticallyGrantedInternalsAccess; 532private static AssemblySymbol t_assemblyForWhichCurrentThreadIsComputingKeys; 1843internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 1848internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 1853internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 1857return default(ImmutableArray<AssemblySymbol>); 1860internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 2084ConcurrentDictionary<AssemblySymbol, bool> haveGrantedAssemblies = _optimisticallyGrantedInternalsAccess; 2088foreach (var otherAssembly in haveGrantedAssemblies.Keys) 2122internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol potentialGiverOfAccess) 2131var assemblyWhoseKeysAreBeingComputed = t_assemblyForWhichCurrentThreadIsComputingKeys; 2138Interlocked.CompareExchange(ref _optimisticallyGrantedInternalsAccess, new ConcurrentDictionary<AssemblySymbol, bool>(), null); 2191UseSiteInfo<AssemblySymbol> useSiteInfo = forwardedType.GetUseSiteInfo(); 2760internal override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 2827(AssemblySymbol firstSymbol, AssemblySymbol secondSymbol) = peModuleSymbol.GetAssembliesForForwardedType(ref emittedName); 2843visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.Empty);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
968var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnosticsOpt, ContainingAssembly); 1051var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1079var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1112var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1153var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
96var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, delegateType.ContainingAssembly);
Symbols\Source\SourceEventSymbol.cs (2)
522var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 615protected static void CopyEventCustomModifiers(EventSymbol eventWithCustomModifiers, ref TypeWithAnnotations type, AssemblySymbol containingAssembly)
Symbols\Source\SourceLocalSymbol.cs (4)
476internal override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 478return ImmutableBindingDiagnostic<AssemblySymbol>.Empty; 593internal override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 597return _constantTuple == null ? ImmutableBindingDiagnostic<AssemblySymbol>.Empty : _constantTuple.Diagnostics;
Symbols\Source\SourceMemberContainerSymbol.cs (5)
178private ImmutableArray<AssemblySymbol> _managedKindUseSiteDependencies; 787internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 792var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(ContainingAssembly); 795ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDependencies, managedKindUseSiteInfo.Dependencies?.ToImmutableArray() ?? ImmutableArray<AssemblySymbol>.Empty); 810ImmutableArray<AssemblySymbol> useSiteDependencies = _managedKindUseSiteDependencies;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (11)
165implementingMemberAndDiagnostics = new SymbolAndDiagnostics(explicitImpl.Single(), ImmutableBindingDiagnostic<AssemblySymbol>.Empty); 169implementingMemberAndDiagnostics = new SymbolAndDiagnostics(null, new ImmutableBindingDiagnostic<AssemblySymbol>(ImmutableArray.Create(diag), default)); 322UseSiteInfo<AssemblySymbol> useSiteInfo = interfaceMember.GetUseSiteInfo(); 357var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 708var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 878var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 997var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1068var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1139var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, overridingProperty.ContainingAssembly); 1204var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1367var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Source\SourceMemberFieldSymbol.cs (2)
91CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
252var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
897var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceModuleSymbol.cs (7)
33private ImmutableArray<AssemblySymbol> _lazyAssembliesToEmbedTypesFrom; 127internal ImmutableArray<AssemblySymbol> GetAssembliesToEmbedTypesFrom() 132var buffer = ArrayBuilder<AssemblySymbol>.GetInstance(); 134foreach (AssemblySymbol asm in this.GetReferencedAssemblySymbols()) 144default(ImmutableArray<AssemblySymbol>)); 300foreach (AssemblySymbol a in GetReferencedAssemblySymbols()) 393public override AssemblySymbol ContainingAssembly
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (7)
115var corLibrary = this.ContainingAssembly.CorLibrary; 125var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 161var corLibrary = this.ContainingAssembly.CorLibrary; 367CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 688var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 762var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
951var corLibrary = compilation.SourceAssembly.CorLibrary;
Symbols\Source\SourceNamespaceSymbol.cs (2)
85public override AssemblySymbol ContainingAssembly 455AssemblySymbol containingAssembly = ContainingAssembly;
Symbols\Source\SourceParameterSymbolBase.cs (1)
62public sealed override AssemblySymbol ContainingAssembly
Symbols\Source\SourcePropertySymbol.cs (2)
453CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 536var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
569var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 668var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\SubstitutedMethodSymbol.cs (1)
125public sealed override AssemblySymbol ContainingAssembly
Symbols\Symbol.cs (18)
163public virtual AssemblySymbol ContainingAssembly 921internal virtual UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 926protected AssemblySymbol PrimaryDependency 930AssemblySymbol dependency = this.ContainingAssembly; 1004internal bool MergeUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result, UseSiteInfo<AssemblySymbol> info) 1012result = new UseSiteInfo<AssemblySymbol>(diagnosticInfo); 1017var primaryDependency = result.PrimaryDependency; 1021result = new UseSiteInfo<AssemblySymbol>(diagnosticInfo, primaryDependency, secondaryDependencies); 1059internal bool DeriveUseSiteInfoFromType(ref UseSiteInfo<AssemblySymbol> result, TypeSymbol type) 1061UseSiteInfo<AssemblySymbol> info = type.GetUseSiteInfo(); 1070private void GetSymbolSpecificUnsupportedMetadataUseSiteErrorInfo(ref UseSiteInfo<AssemblySymbol> info) 1083private UseSiteInfo<AssemblySymbol> GetSymbolSpecificUnsupportedMetadataUseSiteErrorInfo() 1085var useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty)); 1090internal bool DeriveUseSiteInfoFromType(ref UseSiteInfo<AssemblySymbol> result, TypeWithAnnotations type, AllowedRequiredModifierType allowedRequiredModifierType) 1096internal bool DeriveUseSiteInfoFromParameter(ref UseSiteInfo<AssemblySymbol> result, ParameterSymbol param) 1105internal bool DeriveUseSiteInfoFromParameters(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<ParameterSymbol> parameters) 1128internal bool DeriveUseSiteInfoFromCustomModifiers(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<CustomModifier> customModifiers, AllowedRequiredModifierType allowedRequiredModifierType)
Symbols\SymbolDistinguisher.cs (3)
106var containingAssembly0 = unwrappedSymbol0.ContainingAssembly; 107var containingAssembly1 = unwrappedSymbol1.ContainingAssembly; 177AssemblySymbol containingAssembly = unwrappedSymbol.ContainingAssembly;
Symbols\SymbolExtensions.cs (10)
47public static bool IsAccessibleViaInheritance(this NamedTypeSymbol superType, NamedTypeSymbol subType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 87public static bool IsNoMoreVisibleThan(this Symbol symbol, TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 92public static bool IsNoMoreVisibleThan(this Symbol symbol, TypeWithAnnotations type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 97internal static void AddUseSiteInfo(this Symbol? symbol, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool addDiagnostics = true) 396internal static AssemblySymbol? EnsureCSharpSymbolOrNull(this IAssemblySymbol? symbol, string paramName) 398return (AssemblySymbol?)EnsureCSharpSymbolOrNull((ISymbol?)symbol, paramName); 599internal static IAssemblySymbol? GetPublicSymbol(this AssemblySymbol? symbol) 743internal static ImmutableArray<IAssemblySymbol> GetPublicSymbols(this ImmutableArray<AssemblySymbol> symbols) 796internal static AssemblySymbol? GetSymbol(this IAssemblySymbol? symbol) 798return 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\Records\SynthesizedRecordClone.cs (2)
92var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; // This is reported when we bind bases 146internal static MethodSymbol? FindValidCloneMethod(TypeSymbol containingType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
74internal static MethodSymbol? FindCopyConstructor(NamedTypeSymbol containingType, NamedTypeSymbol within, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
60internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed; 80public override AssemblySymbol ContainingAssembly => _module.ContainingAssembly;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
68public sealed override AssemblySymbol ContainingAssembly
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (2)
274internal sealed override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 276var result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency);
Symbols\Synthesized\SynthesizedLocal.cs (2)
192internal sealed override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 194return ImmutableBindingDiagnostic<AssemblySymbol>.Empty;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
94var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
118internal override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue)
Symbols\SynthesizedNamespaceSymbol.cs (1)
58public override AssemblySymbol ContainingAssembly
Symbols\Tuples\TupleErrorFieldSymbol.cs (2)
166internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 168return new UseSiteInfo<AssemblySymbol>(_useSiteDiagnosticInfo);
Symbols\Tuples\TupleFieldSymbol.cs (3)
138internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 278internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 282return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_TupleInferredNamesNotAvailable, _name,
Symbols\Tuples\TupleTypeSymbol.cs (1)
504UseSiteInfo<AssemblySymbol> useSiteInfo = member.GetUseSiteInfo();
Symbols\TypeParameterSymbol.cs (8)
72internal virtual UseSiteInfo<AssemblySymbol> GetConstraintsUseSiteErrorInfo() 91internal ImmutableArray<TypeWithAnnotations> ConstraintTypesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 105private void AppendConstraintsUseSiteErrorInfo(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 268internal NamedTypeSymbol EffectiveBaseClass(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 293internal ImmutableArray<NamedTypeSymbol> EffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 317internal TypeSymbol DeducedBaseType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 343internal ImmutableArray<NamedTypeSymbol> AllEffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 589internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\TypeSymbol.cs (22)
162internal NamedTypeSymbol BaseTypeWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 174internal NamedTypeSymbol BaseTypeOriginalDefinition(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 211internal ImmutableArray<NamedTypeSymbol> AllInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 243internal TypeSymbol EffectiveType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 251internal bool IsDerivedFrom(TypeSymbol type, TypeCompareKind comparison, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 278internal bool IsEqualToOrDerivedFrom(TypeSymbol type, TypeCompareKind comparison, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 400internal MultiDictionary<NamedTypeSymbol, NamedTypeSymbol> InterfacesAndTheirBaseInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 456var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 597internal bool IsManagedType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => GetManagedKind(ref useSiteInfo) == ManagedKind.Managed; 603var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 612internal abstract ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 618var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 834var useSiteInfo = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 1003var useSiteInfo2 = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 1047ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1099private static Symbol FindMostSpecificImplementation(Symbol interfaceMember, NamedTypeSymbol implementingInterface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1143ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1255ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1455private static bool IsExplicitlyImplementedViaAccessors(bool checkPendingExplicitImplementations, Symbol interfaceMember, TypeSymbol currType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol implementingMember) 1492private 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, ImmutableBindingDiagnostic<AssemblySymbol>.Empty); 24public readonly ImmutableBindingDiagnostic<AssemblySymbol> Diagnostics; 26public SymbolAndDiagnostics(Symbol symbol, ImmutableBindingDiagnostic<AssemblySymbol> diagnostics)
Symbols\TypeSymbolExtensions.cs (7)
18public static bool ImplementsInterface(this TypeSymbol subType, TypeSymbol superInterface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 609public static bool IsAtLeastAsVisibleAs(this TypeSymbol type, Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 611CompoundUseSiteInfo<AssemblySymbol> localUseSiteInfo = useSiteInfo; 618private static bool IsTypeLessVisibleThan(TypeSymbol type, Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 913internal static bool IsAsRestrictive(this Symbol s1, Symbol sym2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1560AssemblySymbol assembly = containingType.ContainingAssembly; 1880var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\TypeWithAnnotations.cs (1)
419public bool IsAtLeastAsVisibleAs(Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\UpdatedContainingSymbolLocal.cs (1)
95internal override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) =>
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
CodeGen\CodeGenTupleTest.cs (2)
13925Assert.NotSame(comp2.Assembly, (AssemblySymbol)comp3.GetAssemblyOrModuleSymbol(comp2CompilationRef)); // We are interested in retargeting scenario 14090Assert.NotSame(comp2.Assembly, (AssemblySymbol)comp3.GetAssemblyOrModuleSymbol(comp2CompilationRef)); // We are interested in retargeting scenario
CodeGen\DestructorTests.cs (1)
586var mscorlib = module.ContainingAssembly.CorLibrary;
Emit\CompilationEmitTests.cs (8)
1062var referencedAssembly = comp.GetReferencedAssemblySymbol(reference); 1144var referencedAssembly = comp.GetReferencedAssemblySymbol(reference); 4016var assembly = compilation.Assembly; 4047var assembly = compilation.Assembly; 4077var assembly = compilation.Assembly; 4108var assembly = compilation.Assembly; 4139var assembly = compilation.Assembly; 4170var assembly = compilation.Assembly;
Emit\DeterministicTests.cs (3)
337var assembly = module.ContainingAssembly; 365static IEnumerable<string> getNamesOfForwardedTypes(AssemblySymbol assembly) 370static ImmutableArray<INamedTypeSymbol> getForwardedTypes(AssemblySymbol assembly)
Emit\InAttributeModifierTests.cs (1)
4421var assembly = ((Symbols.PublicModel.NonSourceAssemblySymbol)attribute.ContainingAssembly).UnderlyingAssemblySymbol;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (27)
Attributes\AttributeTests.cs (3)
8383var assembly = compilation.Assembly; 8426var assembly = compilation.Assembly; 8473var assembly = compilation.Assembly;
Attributes\AttributeTests_Assembly.cs (3)
476var naturalRef = m.ContainingAssembly.Modules[1].GetReferencedAssemblySymbols()[1]; 2128private static IEnumerable<CSharpAttributeData> GetAssemblyDescriptionAttributes(AssemblySymbol assembly) 2241var asm = m.ContainingAssembly;
Attributes\AttributeTests_IsByRefLike.cs (2)
1081private static void AssertNoIsByRefLikeAttributeOrCompilerFeatureRequiredAttributeExists(AssemblySymbol assembly, bool hasCompilerFeatureRequired) 1089private static void AssertGeneratedEmbeddedAttribute(AssemblySymbol assembly, string expectedTypeName)
Attributes\AttributeTests_IsUnmanaged.cs (1)
855private void AssertNoIsUnmanagedAttributeExists(AssemblySymbol assembly)
Attributes\AttributeTests_NativeInteger.cs (1)
1290var assembly = module.ContainingAssembly;
Attributes\AttributeTests_Nullable.cs (9)
800var assembly = module.ContainingAssembly; 814var assembly = module.ContainingAssembly; 844var assembly = module.ContainingAssembly; 867var assembly = module.ContainingAssembly; 889var assembly = module.ContainingAssembly; 911var assembly = module.ContainingAssembly; 934var assembly = module.ContainingAssembly; 957var assembly = module.ContainingAssembly; 973var assembly = module.ContainingAssembly;
Attributes\AttributeTests_ReadOnlyStruct.cs (2)
650private static void AssertNoIsReadOnlyAttributeExists(AssemblySymbol assembly) 656private static void AssertGeneratedEmbeddedAttribute(AssemblySymbol assembly, string expectedTypeName)
Attributes\AttributeTests_RefReadOnly.cs (2)
2542private void AssertNoIsReadOnlyAttributeExists(AssemblySymbol assembly) 2548private void AssertGeneratedEmbeddedAttribute(AssemblySymbol assembly, string expectedTypeName)
Attributes\AttributeTests_Security.cs (1)
38var assembly = module.ContainingAssembly;
Attributes\AttributeTests_Synthesized.cs (2)
375var assembly = m.ContainingAssembly; 393string GetDebuggerDisplayString(AssemblySymbol assembly, int ordinal, int fieldCount)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
2747var assembly = module.ContainingAssembly;
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (21)
Binders\EEMethodBinder.cs (1)
52internal override void LookupSymbolsInSingleBinder(LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binders\PlaceholderLocalBinder.cs (1)
70ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
CompilationContext.cs (5)
868var targetAssembly = externAliasRecord.TargetAssembly as AssemblySymbol; 918if (assembliesAndModules[i] is AssemblySymbol assembly && assemblyIdentityComparer.ReferenceMatchesDefinition(referenceIdentity, assembly.Identity)) 1100var targetAssembly = (AssemblySymbol?)importRecord.TargetAssembly;
CompilationExtensions.cs (2)
66var assembly = (AssemblySymbol)pair.Value;
CSharpEESymbolProvider.cs (1)
94var assembly = _metadataDecoder.ModuleSymbol.GetReferencedAssemblySymbol(index);
EETypeNameDecoder.cs (1)
64var assembly = Module.GetReferencedAssemblySymbol(referencedAssemblyIndex);
EvaluationContext.cs (1)
484var identity = (argument as AssemblyIdentity) ?? (argument as AssemblySymbol)?.Identity;
Rewriters\CapturedVariableRewriter.cs (1)
87CompoundUseSiteInfo<AssemblySymbol> discardedSiteInfo =
Symbols\EELocalSymbolBase.cs (4)
41internal override ImmutableBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 43return ImmutableBindingDiagnostic<AssemblySymbol>.Empty; 78internal sealed override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 81UseSiteInfo<AssemblySymbol> result = default;
Symbols\EEMethodSymbol.cs (1)
493UseSiteInfo<AssemblySymbol> useSiteInfo = default;
Symbols\PlaceholderLocalSymbol.cs (3)
40AssemblySymbol sourceAssembly, 192var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 221private static TypeSymbol DecodeDynamicTypes(TypeSymbol type, AssemblySymbol sourceAssembly, ReadOnlyCollection<byte> bytes)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
MissingAssemblyTests.cs (1)
39var assembly = CreateEmptyCompilation("").Assembly;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\DelegateTypeTests.cs (1)
12292var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Semantics\NativeIntegerTests.cs (9)
780var corLibA = comp.Assembly.CorLibrary; 794var corLibB = comp.Assembly.CorLibrary; 809static void verifyField(FieldSymbol field, string expectedSymbol, AssemblySymbol expectedAssembly) 861var corLibA = comp.Assembly.CorLibrary; 904var corLibB = comp.Assembly.CorLibrary; 922static void verifyField(FieldSymbol field, string expectedSymbol, AssemblySymbol expectedAssembly) 976var corLibA = comp.Assembly.CorLibrary; 1021var corLibB = comp.Assembly.CorLibrary; 1029static void verifyField(FieldSymbol field, string expectedSymbol, AssemblySymbol expectedAssembly)
Semantics\OperatorTests.cs (1)
7384var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Semantics\StructConstructorTests.cs (2)
3222var corLibA = comp.Assembly.CorLibrary; 3240var corLibB = comp.Assembly.CorLibrary;
Semantics\StructsTests.cs (2)
385var c1AsmRef = c2.GetReferencedAssemblySymbol(new CSharpCompilationReference(c1)); 389var mscorlibAssembly = c2.GetReferencedAssemblySymbol(MscorlibRef);
Semantics\UseSiteErrorTests.cs (2)
2749var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(s3.ContainingAssembly); 2766var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(s3.ContainingAssembly);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (350)
Compilation\CompilationAPITests.cs (3)
501var assemblySmb = comp.GetReferencedAssemblySymbol(ref1); 1198var smb = comp.GetReferencedAssemblySymbol(compRef1); 2353var assemblySmb = comp.GetReferencedAssemblySymbol(metadata);
Compilation\ReferenceManagerTests.cs (23)
888var as1 = compilation.GetReferencedAssemblySymbol(r2); 1226var arSA_sym = compilation.GetReferencedAssemblySymbol(arSA); 1227var enUS_sym = compilation.GetReferencedAssemblySymbol(enUS); 1285var assemblySymbol1 = c1.GetReferencedAssemblySymbol(dirRefs[0]); 1286var assemblySymbol2 = c1.GetReferencedAssemblySymbol(dirRefs[1]); 1327Assert.Throws<TestException>(() => { var a = c.Assembly; }); 1405var symbolB = a2.GetReferencedAssemblySymbol(refB); 1410var symbolA2 = c.GetReferencedAssemblySymbol(refA2); 1460var refA2_symbol1 = withCircularReference1.GetReferencedAssemblySymbol(refA2); 1461var refA2_symbol2 = withCircularReference2.GetReferencedAssemblySymbol(refA2); 2152var assembly1 = corlib1.Assembly; 2155var assembly2 = corlib2.Assembly; 2190Assert.Equal("System.Numerics.Vectors, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", ((AssemblySymbol)a0).Identity.GetDisplayName()); 2191Assert.Equal("System.Numerics.Vectors, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", ((AssemblySymbol)a1).Identity.GetDisplayName()); 2200Assert.Equal("System.Numerics.Vectors, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", ((AssemblySymbol)a0).Identity.GetDisplayName()); 2201Assert.Equal("System.Numerics.Vectors, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", ((AssemblySymbol)a1).Identity.GetDisplayName()); 2539Assert.Equal("B", ((AssemblySymbol)c.GetAssemblyOrModuleSymbol(bRef)).Name); 2612Assert.Equal("B", ((AssemblySymbol)c.GetAssemblyOrModuleSymbol(b3RefY)).Name); 2782Assert.Equal("D", ((AssemblySymbol)c.GetAssemblyOrModuleSymbol(dRef)).Name); 2814Assert.Equal("B", ((AssemblySymbol)c.GetAssemblyOrModuleSymbol(bRef)).Name); 2815Assert.Equal("D", ((AssemblySymbol)c.GetAssemblyOrModuleSymbol(dRef)).Name); 2857((AssemblySymbol)c.GetAssemblyOrModuleSymbol(b3Ref)).Identity.GetDisplayName()); 2859Assert.Null((AssemblySymbol)c.GetAssemblyOrModuleSymbol(b2Ref));
Compilation\UsedAssembliesTests.cs (10)
74void verify<TAssemblySymbol>(string source2, MetadataReference reference) where TAssemblySymbol : AssemblySymbol 401void verify<TAssemblySymbol>(string source2, MetadataReference reference) where TAssemblySymbol : AssemblySymbol 435void verify<TAssemblySymbol>(string source2, MetadataReference reference) where TAssemblySymbol : AssemblySymbol 487void verify<TAssemblySymbol>(string source2, MetadataReference reference) where TAssemblySymbol : AssemblySymbol 558void verify<TAssemblySymbol>(string source2, MetadataReference reference0, MetadataReference reference1) where TAssemblySymbol : AssemblySymbol 656Compilation verify2<TAssemblySymbol>(string source2, MetadataReference reference0, MetadataReference reference1) where TAssemblySymbol : AssemblySymbol 663void verify3<TAssemblySymbol>(string source3, params MetadataReference[] references) where TAssemblySymbol : AssemblySymbol 1380void verify<TAssemblySymbol>(string source2, MetadataReference reference) where TAssemblySymbol : AssemblySymbol 2002void verify<TAssemblySymbol>(string source2, MetadataReference reference) where TAssemblySymbol : AssemblySymbol 2469void verify<TAssemblySymbol>(string source2, MetadataReference reference0, MetadataReference reference1) where TAssemblySymbol : AssemblySymbol
Symbols\AssemblyAndNamespaceTests.cs (1)
31var sym = comp.Assembly;
Symbols\CompilationCreationTests.cs (9)
1438var asm2 = new AssemblySymbol[] { asm2Prime[0], asm2Prime[2], asm2Prime[1] }; 1478var asm_MTTestLib3 = new AssemblySymbol[] { asm_MTTestLib3Prime[0], asm_MTTestLib3Prime[2], asm_MTTestLib3Prime[1] }; 1495var asm3 = new AssemblySymbol[] { asm3Prime[0], asm3Prime[2], asm3Prime[1], asm3Prime[3] }; 1564var asm_MTTestLib4 = new AssemblySymbol[] { asm_MTTestLib4Prime[0], asm_MTTestLib4Prime[2], asm_MTTestLib4Prime[1], asm_MTTestLib4Prime[3] }; 1583var asm4 = new AssemblySymbol[] { asm4Prime[0], asm4Prime[2], asm4Prime[1], asm4Prime[3], asm4Prime[4] }; 1729AssemblySymbol missingAssembly; 1820var asm10 = new AssemblySymbol[] { asm10Prime[0], asm10Prime[2], asm10Prime[1], asm10Prime[3], asm10Prime[4] }; 2977var sourceAssembly = lib2.Assembly; 2991var addedModuleAssembly = addedModule.ContainingAssembly;
Symbols\CorLibrary\CorTypes.cs (1)
31var noMsCorLibRef = assemblies[0];
Symbols\CovariantReturnTests.cs (9)
346var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 467var originalCorLib = comp.Assembly.CorLibrary; 468var newCorLib = result.Assembly.CorLibrary; 470var sourceAssembly = (AssemblySymbol)result.GetAssemblyOrModuleSymbol(compAsMetadata); 519var originalCorLib = comp.Assembly.CorLibrary; 520var newCorLib = result.Assembly.CorLibrary; 522var retargetingAssembly = (AssemblySymbol)result.GetAssemblyOrModuleSymbol(compAsMetadata);
Symbols\DefaultInterfaceImplementationTests.cs (1)
34448foreach (var assembly in m.ReferencedAssemblySymbols)
Symbols\ExtensionMethodTests.cs (5)
2460var mscorlib = type.GetMember<FieldSymbol>("F").Type.ContainingAssembly; 2469var systemCore = type.GetMember<FieldSymbol>("G").Type.ContainingAssembly; 2474var assembly = type.ContainingAssembly; 2498AssemblySymbol sourceAssembly = null; 2501var assembly = module.ContainingAssembly;
Symbols\GenericConstraintTests.cs (1)
3923AssemblySymbol asm = i2.ContainingAssembly;
Symbols\Metadata\MetadataMemberTests.cs (5)
154var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 189var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 241var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 299var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 344var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib);
Symbols\Metadata\MetadataTypeTests.cs (6)
29var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 69var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 119var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 169var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 219var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 286var systemCoreNS = compilation2.GetReferencedAssemblySymbol(compilation1Lib);
Symbols\Metadata\PE\BaseTypeResolution.cs (4)
27var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.mscorlib); 57private void TestBaseTypeResolutionHelper1(AssemblySymbol assembly) 108private void TestBaseTypeResolutionHelper2(AssemblySymbol[] assemblies) 177private void TestBaseTypeResolutionHelper4(AssemblySymbol[] assemblies)
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
20private AssemblySymbol _assembly;
Symbols\Metadata\PE\LoadingAttributes.cs (5)
32var assembly0 = assemblies[0]; 33var assembly1 = assemblies[1]; 104var assembly1 = assemblies[1]; 596var asm = (AssemblySymbol)assemblies[0];
Symbols\Metadata\PE\LoadingEvents.cs (1)
379var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.Events);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (1)
22var assembly = MetadataTestHelpers.GetSymbolForReference(TestMetadata.Net40.mscorlib);
Symbols\Metadata\PE\LoadingIndexers.cs (1)
602var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.Indexers);
Symbols\Metadata\PE\LoadingMetadataTokens.cs (2)
46var assembly = peModule.ContainingAssembly; 104var assembly = compilation.Assembly;
Symbols\Metadata\PE\LoadingMethods.cs (6)
383var assembly = MetadataTestHelpers.GetSymbolForReference( 407var assembly = MetadataTestHelpers.GetSymbolForReference( 511var assembly = MetadataTestHelpers.GetSymbolForReference( 539var assembly = MetadataTestHelpers.GetSymbolForReference( 606var assembly = MetadataTestHelpers.GetSymbolForReference( 630var assembly = MetadataTestHelpers.GetSymbolForReference(
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (7)
26var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.mscorlib); 40var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.mscorlib); 125var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.mscorlib); 170var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.mscorlib); 173var assembly2 = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.DifferByCase.TypeAndNamespaceDifferByCase); 372var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.WithSpaces); 389var assembly = type.ContainingAssembly;
Symbols\Metadata\PE\LoadingProperties.cs (2)
26var assembly = MetadataTestHelpers.GetSymbolForReference( 294var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.Properties);
Symbols\Metadata\PE\MissingTypeReferences.cs (5)
24var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.MDTestLib2); 38private void TestMissingTypeReferencesHelper1(AssemblySymbol assembly) 120private void TestMissingTypeReferencesHelper2(AssemblySymbol[] assemblies, bool reflectionOnly = false) 283var asm1 = assemblies[0]; 306var asm2 = assemblies[1];
Symbols\Metadata\PE\NoPia.cs (94)
56var localTypes1_1 = assemblies1[0]; 57var localTypes2_1 = assemblies1[1]; 58var pia1_1 = assemblies1[2]; 98var localTypes1_2 = assemblies2[0]; 99var localTypes2_2 = assemblies2[1]; 128var localTypes1_3 = assemblies3[0]; 129var localTypes2_3 = assemblies3[1]; 130var pia1_3 = assemblies3[2]; 189var localTypes1_5 = assemblies5[0]; 190var localTypes2_5 = assemblies5[1]; 226var localTypes1_6 = assemblies6[0]; 227var localTypes2_6 = assemblies6[1]; 257var localTypes1_7 = assemblies7[0]; 258var localTypes2_7 = assemblies7[1]; 289var localTypes1_8 = assemblies8[0]; 290var localTypes2_8 = assemblies8[1]; 291var pia4_8 = assemblies8[2]; 292var pia1_8 = assemblies8[3]; 322var library1_9 = assemblies9[0]; 323var localTypes1_9 = assemblies9[1]; 334var library1_10 = assemblies10[0]; 335var localTypes1_10 = assemblies10[1]; 372var localTypes1Asm = localTypes1.Assembly; 376var localTypes2Asm = localTypes2.Assembly; 387var localTypes1_1 = assemblies1[4]; 388var localTypes2_1 = assemblies1[5]; 389var pia1_1 = assemblies1[0]; 439var localTypes1_2 = assemblies2[3]; 440var localTypes2_2 = assemblies2[4]; 469var localTypes1_3 = assemblies3[2]; 470var localTypes2_3 = assemblies3[3]; 515var localTypes1_5 = assemblies5[2]; 516var localTypes2_5 = assemblies5[3]; 560var localTypes1_6 = assemblies6[2]; 561var localTypes2_6 = assemblies6[3]; 590var pia4_7 = assemblies7[0]; 591var localTypes1_7 = assemblies7[2]; 592var localTypes2_7 = assemblies7[3]; 625var localTypes1_8 = assemblies8[3]; 626var localTypes2_8 = assemblies8[4]; 627var pia4_8 = assemblies8[0]; 628var pia1_8 = assemblies8[1]; 657var library1_9 = assemblies9[0]; 658var localTypes1_9 = assemblies9[3]; 669var library1_10 = assemblies10[0]; 670var localTypes1_10 = assemblies10[4]; 714var asmLocalTypes3 = assemblies[0]; 764var pia5Asm1 = tc1.GetReferencedAssemblySymbol(pia5Link); 774var pia5Asm2 = tc2.GetReferencedAssemblySymbol(pia5Ref); 784var pia5Asm3 = tc3.GetReferencedAssemblySymbol(pia5Link); 785var library2Asm3 = tc3.GetReferencedAssemblySymbol(library2Ref); 798var pia5Asm4 = tc4.GetReferencedAssemblySymbol(pia5Ref); 799var library2Asm4 = tc4.GetReferencedAssemblySymbol(library2Ref); 814var pia1Asm5 = tc5.GetReferencedAssemblySymbol(pia1Link); 815var pia5Asm5 = tc5.GetReferencedAssemblySymbol(pia5Link); 816var library2Asm5 = tc5.GetReferencedAssemblySymbol(library2Ref); 832var pia1Asm6 = tc6.GetReferencedAssemblySymbol(pia1Ref); 833var pia5Asm6 = tc6.GetReferencedAssemblySymbol(pia5Link); 834var library2Asm6 = tc6.GetReferencedAssemblySymbol(library2Ref); 845var pia5Asm7 = tc7.GetReferencedAssemblySymbol(pia5Link); 846var library2Asm7 = tc7.GetReferencedAssemblySymbol(library2Link); 884var varA1 = tc1.GetReferencedAssemblySymbol(varARef); 885var varB1 = tc1.GetReferencedAssemblySymbol(varBLink); 886var varC1 = tc1.GetReferencedAssemblySymbol(varCRef); 894var varD2 = tc2.GetReferencedAssemblySymbol(varDRef); 905var varB4 = tc4.GetReferencedAssemblySymbol(varBRef); 906var varC4 = tc4.GetReferencedAssemblySymbol(varCRef); 915var varA5 = tc5.GetReferencedAssemblySymbol(varALink); 916var varC5 = tc5.GetReferencedAssemblySymbol(varCRef); 927var varC6 = tc6.GetReferencedAssemblySymbol(varCLink); 1015var asmLocalTypes3 = assemblies[1]; 1131var pia5Asm1 = tc1.GetReferencedAssemblySymbol(pia5Link); 1141var pia5Asm2 = tc2.GetReferencedAssemblySymbol(pia5Ref); 1151var pia5Asm3 = tc3.GetReferencedAssemblySymbol(pia5Link); 1152var library2Asm3 = tc3.GetReferencedAssemblySymbol(library2Ref); 1165var pia5Asm4 = tc4.GetReferencedAssemblySymbol(pia5Ref); 1166var library2Asm4 = tc4.GetReferencedAssemblySymbol(library2Ref); 1181var pia1Asm5 = tc5.GetReferencedAssemblySymbol(pia1Link); 1182var pia5Asm5 = tc5.GetReferencedAssemblySymbol(pia5Link); 1183var library2Asm5 = tc5.GetReferencedAssemblySymbol(library2Ref); 1199var pia1Asm6 = tc6.GetReferencedAssemblySymbol(pia1Ref); 1200var pia5Asm6 = tc6.GetReferencedAssemblySymbol(pia5Link); 1201var library2Asm6 = tc6.GetReferencedAssemblySymbol(library2Ref); 1212var pia5Asm7 = tc7.GetReferencedAssemblySymbol(pia5Link); 1213var library2Asm7 = tc7.GetReferencedAssemblySymbol(library2Link); 1289var varA1 = tc1.GetReferencedAssemblySymbol(varARef); 1290var varB1 = tc1.GetReferencedAssemblySymbol(varBLink); 1291var varC1 = tc1.GetReferencedAssemblySymbol(varCRef); 1299var varD2 = tc2.GetReferencedAssemblySymbol(varDRef); 1310var varB4 = tc4.GetReferencedAssemblySymbol(varBRef); 1311var varC4 = tc4.GetReferencedAssemblySymbol(varCRef); 1320var varA5 = tc5.GetReferencedAssemblySymbol(varALink); 1321var varC5 = tc5.GetReferencedAssemblySymbol(varCRef); 1332var varC6 = tc6.GetReferencedAssemblySymbol(varCLink);
Symbols\Metadata\PE\TypeAccessibility.cs (1)
23var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.mscorlib);
Symbols\Metadata\PE\TypeForwarders.cs (23)
41private void TestTypeForwarderHelper(AssemblySymbol[] assemblies) 96var corlibAssembly = compilation.GetReferencedAssemblySymbol(Net40.mscorlib); 98var systemCoreAssembly = compilation.GetReferencedAssemblySymbol(Net40.SystemCore); 172var ilAssembly1 = compilation.GetReferencedAssemblySymbol(ref1); 176var ilAssembly2 = compilation.GetReferencedAssemblySymbol(ref2); 180var ilAssembly3 = compilation.GetReferencedAssemblySymbol(ref3); 235var ilAssembly1 = compilation.GetReferencedAssemblySymbol(ref1); 239var ilAssembly2 = compilation.GetReferencedAssemblySymbol(ref2); 309var ilAssembly1 = compilation.GetReferencedAssemblySymbol(ref1); 313var ilAssembly2 = compilation.GetReferencedAssemblySymbol(ref2); 317var ilAssembly3 = compilation.GetReferencedAssemblySymbol(ref3); 408var ilAssembly1 = compilation.GetReferencedAssemblySymbol(ref1); 412var ilAssembly2 = compilation.GetReferencedAssemblySymbol(ref2); 416var ilAssembly3 = compilation.GetReferencedAssemblySymbol(ref3); 420var ilAssembly4 = compilation.GetReferencedAssemblySymbol(ref4); 516var ilAssembly1 = compilation.GetReferencedAssemblySymbol(ref1); 520var ilAssembly2 = compilation.GetReferencedAssemblySymbol(ref2); 524var ilAssembly3 = compilation.GetReferencedAssemblySymbol(ref3); 572var ilAssembly1 = compilation.GetReferencedAssemblySymbol(ref1); 576var ilAssembly2 = compilation.GetReferencedAssemblySymbol(ref2); 1464var assembly = module.ContainingAssembly; 1516private static IEnumerable<string> GetNamesOfForwardedTypes(AssemblySymbol assembly) 1736var assembly = module.ContainingAssembly;
Symbols\Metadata\PE\TypeKindTests.cs (2)
23var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.mscorlib); 28private void TestTypeKindHelper(AssemblySymbol assembly)
Symbols\MockAssemblySymbol.cs (8)
53internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 55return default(ImmutableArray<AssemblySymbol>); 58internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 60return default(ImmutableArray<AssemblySymbol>); 68internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 73internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 78internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other) 109internal override NamedTypeSymbol TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol> visitedAssemblies)
Symbols\MockNamedTypeSymbol.cs (1)
267internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed;
Symbols\MockNamespaceSymbol.cs (1)
81public override AssemblySymbol ContainingAssembly
Symbols\MockSymbolTests.cs (2)
67AssemblySymbol assem = new MockAssemblySymbol("banana"); 91AssemblySymbol assem1 = new MockAssemblySymbol("goo");
Symbols\NamespaceExtentTests.cs (2)
21var a1 = c1.Assembly; 22var a2 = c2.Assembly;
Symbols\Retargeting\NoPia.cs (69)
365var localTypes1_1 = assemblies1[0]; 366var localTypes2_1 = assemblies1[1]; 367var pia1_1 = assemblies1[2]; 407var localTypes1_2 = assemblies2[0]; 408var localTypes2_2 = assemblies2[1]; 435var localTypes1_3 = assemblies3[0]; 436var localTypes2_3 = assemblies3[1]; 437var pia1_3 = assemblies3[2]; 494var localTypes1_5 = assemblies5[0]; 495var localTypes2_5 = assemblies5[1]; 529var localTypes1_6 = assemblies6[0]; 530var localTypes2_6 = assemblies6[1]; 559var localTypes1_7 = assemblies7[0]; 560var localTypes2_7 = assemblies7[1]; 590var localTypes1_8 = assemblies8[0]; 591var localTypes2_8 = assemblies8[1]; 592var pia4_8 = assemblies8[2]; 593var pia1_8 = assemblies8[3]; 621var library1_9 = assemblies9[0]; 622var localTypes1_9 = assemblies9[1]; 632var library1_10 = assemblies10[0]; 633var localTypes1_10 = assemblies10[1]; 666var localTypes1_1 = assemblies1[0]; 667var localTypes2_1 = assemblies1[1]; 668var pia1_1 = assemblies1[2]; 708var localTypes1_2 = assemblies2[0]; 709var localTypes2_2 = assemblies2[1]; 736var localTypes1_3 = assemblies3[0]; 737var localTypes2_3 = assemblies3[1]; 738var pia1_3 = assemblies3[2]; 795var localTypes1_5 = assemblies5[0]; 796var localTypes2_5 = assemblies5[1]; 830var localTypes1_6 = assemblies6[0]; 831var localTypes2_6 = assemblies6[1]; 860var localTypes1_7 = assemblies7[0]; 861var localTypes2_7 = assemblies7[1]; 891var localTypes1_8 = assemblies8[0]; 892var localTypes2_8 = assemblies8[1]; 893var pia4_8 = assemblies8[2]; 894var pia1_8 = assemblies8[3]; 922var library1_9 = assemblies9[0]; 923var localTypes1_9 = assemblies9[1]; 933var library1_10 = assemblies10[0]; 934var localTypes1_10 = assemblies10[1]; 970var localTypes1_1 = assemblies1[0]; 971var localTypes2_1 = assemblies1[1]; 972var pia1_1 = assemblies1[2]; 1012var localTypes1_2 = assemblies2[0]; 1013var localTypes2_2 = assemblies2[1]; 1040var localTypes1_3 = assemblies3[0]; 1041var localTypes2_3 = assemblies3[1]; 1042var pia1_3 = assemblies3[2]; 1099var localTypes1_5 = assemblies5[0]; 1100var localTypes2_5 = assemblies5[1]; 1134var localTypes1_6 = assemblies6[0]; 1135var localTypes2_6 = assemblies6[1]; 1164var localTypes1_7 = assemblies7[0]; 1165var localTypes2_7 = assemblies7[1]; 1195var localTypes1_8 = assemblies8[0]; 1196var localTypes2_8 = assemblies8[1]; 1197var pia4_8 = assemblies8[2]; 1198var pia1_8 = assemblies8[3]; 1226var library1_9 = assemblies9[0]; 1227var localTypes1_9 = assemblies9[1]; 1237var library1_10 = assemblies10[0]; 1238var localTypes1_10 = assemblies10[1]; 1345var asmLocalTypes3 = assemblies[0]; 1898var asmLocalTypes3 = assemblies[0]; 1948var asmLocalTypes3 = assemblies[0];
Symbols\Retargeting\RetargetCustomAttributes.cs (5)
24public AssemblySymbol c1MscorLibAssemblyRef, c2MscorlibAssemblyRef; 71var c1Assembly = compilation1.Assembly; 76var c1AsmRef = compilation2.GetReferencedAssemblySymbol(c1); 179var c1AsmRef = test.c2.Compilation.GetReferencedAssemblySymbol(test.c1); 188var c1AsmRef = test.c2.Compilation.GetReferencedAssemblySymbol(test.c1);
Symbols\Retargeting\RetargetCustomModifiers.cs (5)
34var c1Assembly = c1.Assembly; 38var mscorlibAssembly = c2.GetReferencedAssemblySymbol(newMsCorLib); 148var c1Assembly = c1.Assembly; 152var c1AsmRef = c2.GetReferencedAssemblySymbol(r1); 156var mscorlibAssembly = c2.GetReferencedAssemblySymbol(newMsCorLib);
Symbols\Retargeting\RetargetingTests.cs (4)
266var assembly2 = compilation3.GetReferencedAssemblySymbol(compilation2Ref); 929static (AssemblySymbol retargetedAssembly1, AssemblySymbol retargetedAssembly2, AssemblySymbol consistentAssembly, CSharpCompilation originalComp, CSharpCompilation retargetedComp)
Symbols\SymbolDistinguisherTests.cs (24)
39var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 81var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 102var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 121var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 143var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 162var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 186var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 212var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 237var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 262var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 284var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef); 301var referencedAssembly = (AssemblySymbol)comp.GetAssemblyOrModuleSymbol(libRef);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (20)
Extensions.cs (15)
27public static AssemblySymbol GetReferencedAssemblySymbol(this CSharpCompilation compilation, MetadataReference reference) 29return (AssemblySymbol)compilation.GetAssemblyOrModuleSymbol(reference); 86public static AssemblySymbol[] BoundReferences(this AssemblySymbol @this) 98public static bool HasUnresolvedReferencesByComparisonTo(this AssemblySymbol @this, AssemblySymbol that) 114public static bool RepresentsTheSameAssemblyButHasUnresolvedReferencesByComparisonTo(this AssemblySymbol @this, AssemblySymbol that) 731public static bool GivesAccessTo(this AssemblySymbol first, AssemblySymbol second) 849CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = default; 855private static void AddDiagnosticInfos(ref HashSet<DiagnosticInfo> useSiteDiagnostics, CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 872CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = default; 889CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = default; 909public static void Verify(this ImmutableBindingDiagnostic<AssemblySymbol> actual, params Microsoft.CodeAnalysis.Test.Utilities.DiagnosticDescription[] expected)
MetadataTestHelpers.cs (5)
21internal static AssemblySymbol CorLibrary(this ModuleSymbol module) 26internal static AssemblySymbol GetSymbolForReference(MetadataReference reference) 31internal static AssemblySymbol[] GetSymbolsForReferences(params MetadataReference[] mrefs) 36internal static AssemblySymbol[] GetSymbolsForReferences(MetadataReference[] mrefs, Compilation[] compilations) 42internal static AssemblySymbol[] GetSymbolsForReferences(
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (7)
Metadata\WinMdEventTests.cs (1)
2748var winmdNS = comp.GetReferencedAssemblySymbol(winmdlib);
Metadata\WinMdMetadataTests.cs (6)
47var winmdNS = comp.GetReferencedAssemblySymbol(winmdlib); 69var winmdNS = comp.GetReferencedAssemblySymbol(winmdlib); 90var winmdNS = comp.GetReferencedAssemblySymbol(winmdlib); 110var winmdNS = comp.GetReferencedAssemblySymbol(winmdlib); 130var winmdNS = comp.GetReferencedAssemblySymbol(winmdlib); 172var winmdNS = comp.GetReferencedAssemblySymbol(winmdlib);