2 types derived from AssemblySymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\MissingAssemblySymbol.cs (1)
25internal class MissingAssemblySymbol : AssemblySymbol
Symbols\NonMissingAssemblySymbol.cs (1)
21internal abstract class NonMissingAssemblySymbol : AssemblySymbol
1820 references to AssemblySymbol
Microsoft.CodeAnalysis.CSharp (1385)
Binder\Binder.cs (7)
786AssemblySymbol within, 787ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 795ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 806ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 843ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 852public CompoundUseSiteInfo<AssemblySymbol> GetNewCompoundUseSiteInfo(BindingDiagnosticBag futureDestination) 854return 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)
617CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1789CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1838CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1878UseSiteInfo<AssemblySymbol> useSiteInfo = accessor.GetUseSiteInfo();
Binder\Binder.WithQueryLambdaParametersBinder.cs (2)
95CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 105LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Attributes.cs (6)
114CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 208out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo); 226CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 329CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 411protected bool IsAttributeConditionallyOmitted(NamedTypeSymbol attributeType, SyntaxTree? syntaxTree, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 598CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Await.cs (1)
414CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Constraints.cs (1)
452var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingSymbol.ContainingAssembly);
Binder\Binder_Conversions.cs (16)
25CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1146out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 1178in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 1209in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 1361CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = addMethodBinder.GetNewCompoundUseSiteInfo(diagnostics); 1461ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1854ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1878var candidateUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 2083CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2187CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2760CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2848CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2855useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 2946RefKind sourceRefKind, RefKind destinationRefKind, bool checkingReturns, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3018var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 3086CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Crefs.cs (3)
295CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = this.GetNewCompoundUseSiteInfo(diagnostics); 514CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 521BindingDiagnosticBag diagnostics, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Deconstruct.cs (1)
322CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Expressions.cs (68)
419CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1228CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1277CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1489var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1531var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 1633CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1806var discardedInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1828private void LookupIdentifier(LookupResult lookupResult, SimpleNameSyntax node, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1833private void LookupIdentifier(LookupResult lookupResult, string name, int arity, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1960var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2047CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2306var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2381var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2447CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2630CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2736CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2751CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2903var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2934var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4123CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4150CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4949out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo); 4973in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 5393CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5466CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6310CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6606internal ImmutableArray<MethodSymbol> FilterInaccessibleConstructors(ImmutableArray<MethodSymbol> constructors, bool allowProtectedConstructorsOfBaseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 6631private bool IsConstructorAccessible(MethodSymbol constructor, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool allowProtectedConstructorsOfBaseType = false) 6700CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 6754out CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo) && 6773in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 6857in CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo, 6876CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7004CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7158out CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 7253internal static void ReportConstructorUseSiteDiagnostics(Location errorLocation, BindingDiagnosticBag diagnostics, bool suppressUnsupportedRequiredMembersError, in CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7276private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7282private ImmutableArray<MethodSymbol> GetAccessibleConstructorsForOverloadResolution(NamedTypeSymbol type, bool allowProtectedConstructorsOfBaseType, out ImmutableArray<MethodSymbol> allInstanceConstructors, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 7818CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7893CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7914CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 7963CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8007CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = this.GetNewCompoundUseSiteInfo(diagnostics); 8086CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8157private void LookupInstanceMember(LookupResult lookupResult, TypeSymbol leftType, bool leftIsBaseReference, string rightName, int rightArity, bool invoked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 8522ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 8607ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 8623CompoundUseSiteInfo<AssemblySymbol> classicExtensionUseSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 8769CompoundUseSiteInfo<AssemblySymbol> overloadResolutionUseSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 8795ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 8865CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 8884private void LookupExtensionMethods(LookupResult lookupResult, ExtensionScope scope, string rightName, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 9147CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 9832CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 9846CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 9887CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 9976CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10120AssemblySymbol.DynamicType, 10136CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 10630ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 10653ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 10685ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 10757ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 10781var sealedDiagnostics = ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty; 11072CompoundUseSiteInfo<AssemblySymbol> discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 11280new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded), 11310UseSiteInfo<AssemblySymbol> info = invoke.GetUseSiteInfo();
Binder\Binder_Invocation.cs (8)
636CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 713CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1680var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1737CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1799CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2355CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2437var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2454CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Lookup.cs (43)
35ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 50var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 67private Binder LookupSymbolsWithFallback(LookupResult result, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 88LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 122LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 139ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 154private void LookupMembersWithFallback(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null, LookupOptions options = LookupOptions.Default) 170protected void LookupMembersInternal(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 187int arity, LookupOptions options, Binder originalBinder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ref CompoundUseSiteInfo<AssemblySymbol> classicExtensionUseSiteInfo) 200string? name, int arity, LookupOptions options, Binder originalBinder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ref CompoundUseSiteInfo<AssemblySymbol> classicExtensionUseSiteInfo) 253protected void LookupMembersInType(LookupResult result, TypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 294private void LookupMembersInErrorType(LookupResult result, ErrorTypeSymbol errorType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 330LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 481ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 517private static void LookupMembersInNamespace(LookupResult result, NamespaceSymbol ns, string name, int arity, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 535private void LookupExtensionMethodsInSingleBinder(ExtensionScope scope, LookupResult result, string name, int arity, LookupOptions options, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 570ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 597var attributeTypeWithoutSuffixViabilityUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 603var attributeTypeWithSuffixViabilityUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 743private bool IsSingleViableAttributeType(LookupResult result, out Symbol symbol, ref CompoundUseSiteInfo<AssemblySymbol> attributeTypeViabilityUseSiteInfo) 764var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 769private bool CheckAttributeTypeViability(Symbol symbol, bool diagnose, ref DiagnosticInfo diagInfo, ref CompoundUseSiteInfo<AssemblySymbol> attributeTypeViabilityUseSiteInfo) 785new CompoundUseSiteInfo<AssemblySymbol>(attributeTypeViabilityUseSiteInfo) : 786CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 852LookupOptions options, Binder originalBinder, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved) 875ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 891ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 969ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1110ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1124private static ImmutableArray<NamedTypeSymbol> GetBaseInterfaces(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1213ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1238private void LookupMembersInInterface(LookupResult current, NamedTypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1256private void LookupMembersInTypeParameter(LookupResult current, TypeParameterSymbol typeParameter, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1275private static bool IsDerivedType(NamedTypeSymbol baseType, NamedTypeSymbol derivedType, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1312private void MergeHidingLookupResults(LookupResult resultHiding, LookupResult resultHidden, ConsList<TypeSymbol> basesBeingResolved, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1473internal SingleLookupResult CheckViability(Symbol symbol, int arity, LookupOptions options, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 1676var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1759internal bool IsAccessible(Symbol symbol, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, TypeSymbol accessThroughType = null, ConsList<TypeSymbol> basesBeingResolved = null) 1778internal bool IsAccessible(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 1790/// Should only be called by <see cref="IsAccessible(Symbol, TypeSymbol, out bool, ref CompoundUseSiteInfo{AssemblySymbol}, ConsList{TypeSymbol})"/>, 1793internal virtual bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
Binder\Binder_Operators.cs (29)
58CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 383CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 448CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 576CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 668CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1176CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1272var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1486CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1556CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1713CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1836CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1878ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1901private bool HasApplicableBooleanOperator(NamedTypeSymbol containingType, string name, TypeSymbol argumentType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out MethodSymbol @operator) 2022CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2060CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2198CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2310CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3343CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3405CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3535CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3609private ArrayBuilder<MethodSymbol>? LookupUserDefinedInstanceOperators(TypeSymbol lookupInType, string? checkedName, string ordinaryName, int parameterCount, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3961CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 4713CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5250CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5471CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5621CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5642useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 5729CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 5785CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\Binder_Patterns.cs (6)
607CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 765CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 807ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1287CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1801CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 1829TypeSymbol? lessSpecificCandidate(TypeSymbol bestSoFar, TypeSymbol possiblyLessSpecificCandidate, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_QueryErrors.cs (5)
43CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 80private bool ImplementsStandardQueryInterface(TypeSymbol instanceType, string name, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 96private static bool HasUniqueInterface(TypeSymbol instanceType, NamedTypeSymbol interfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 102private static bool HasUniqueInterface(TypeSymbol instanceType, NamedTypeSymbol interfaceType, ref bool nonUnique, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 124private bool HasCastToQueryProvider(TypeSymbol instanceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Statements.cs (17)
411CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 475CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1366CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1953CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 2057var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2407var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2430var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2438void tryConversion(BoundExpression expr, ref bool reportedError, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2497var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2533var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2687CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3151CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3272CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3314CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 3958var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly); 3996var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingType.ContainingAssembly); 4005var constructorUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly);
Binder\Binder_Symbols.cs (22)
200var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 372CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 882CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1283CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1483CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1545ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1776private static UseSiteInfo<AssemblySymbol> GetUseSiteInfoForWellKnownMemberOrContainingType(Symbol symbol) 1780UseSiteInfo<AssemblySymbol> info = symbol.GetUseSiteInfo(); 1851internal NamedTypeSymbol GetWellKnownType(WellKnownType type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1872UseSiteInfo<AssemblySymbol> useSiteInfo; 1882internal static Symbol GetWellKnownTypeMember(CSharpCompilation compilation, WellKnownMember member, out UseSiteInfo<AssemblySymbol> useSiteInfo, bool isOptional = false) 1907useSiteInfo = new UseSiteInfo<AssemblySymbol>(diagnosticInfo: null, useSiteInfo.PrimaryDependency, useSiteInfo.SecondaryDependencies); 1915useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_MissingPredefinedMember, memberDescriptor.DeclaringTypeMetadataName, memberDescriptor.Name)); 1969AssemblySymbol container = symbol.ContainingAssembly; 2402private static AssemblySymbol GetContainingAssembly(Symbol symbol) 2575var containingAssembly = symbol.ContainingAssembly; 2600AssemblySymbol forwardedToAssembly; 2676protected virtual AssemblySymbol GetForwardedToAssemblyInUsingNamespaces(string metadataName, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2681protected AssemblySymbol GetForwardedToAssembly(MetadataTypeName metadataName, BindingDiagnosticBag diagnostics, Location location) 2683foreach (var referencedAssembly in 2748protected AssemblySymbol GetForwardedToAssembly(string name, int arity, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 2767var result = GetForwardedToAssembly(
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 (7)
13internal sealed class BindingDiagnosticBag : BindingDiagnosticBag<AssemblySymbol> 15private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithBoth = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithBoth!, new DiagnosticBag(), new HashSet<AssemblySymbol>())); 17private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithDependenciesOnly = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithDependenciesOnly!, diagnosticBag: null, new HashSet<AssemblySymbol>())); 18private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithConcurrent = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithConcurrent!, new DiagnosticBag(), new Roslyn.Utilities.ConcurrentSet<AssemblySymbol>())); 24private BindingDiagnosticBag(DiagnosticBag? diagnosticBag, ICollection<AssemblySymbol>? dependenciesBag) 29private BindingDiagnosticBag(ObjectPool<BindingDiagnosticBag> pool, DiagnosticBag? diagnosticBag, ICollection<AssemblySymbol>? dependenciesBag) 139AssemblySymbol? containingAssembly = ns.ContainingAssembly;
Binder\BuckStopsHereBinder.cs (1)
67internal override bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
Binder\DecisionDagBuilder.cs (4)
374var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 459var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1300var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1542ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\ForEachLoopBinder.cs (12)
482CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1286CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1387CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1454CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1530CompoundUseSiteInfo<AssemblySymbol> extensionUseSiteInfo = this.GetNewCompoundUseSiteInfo(diagnostics); 1568CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1675CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1688useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo); 1763CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1808CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 1839TypeSymbol type, bool isAsync, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1921CompoundUseSiteInfo<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) 112LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\InMethodBinder.cs (1)
195LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\InSubmissionClassBinder.cs (1)
48LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\LocalScopeBinder.cs (1)
422LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\LockOrUsingBinder.cs (2)
113public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 115public ExpressionAndDiagnostics(BoundExpression expression, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Binder\MethodGroupResolution.cs (4)
25public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 28public MethodGroupResolution(MethodGroup methodGroup, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics) 33public MethodGroupResolution(Symbol otherSymbol, LookupResultKind resultKind, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics) 44ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Binder\NameofBinder.cs (1)
60internal override void LookupSymbolsInSingleBinder(LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\NamespaceOrTypeAndUsingDirective.cs (2)
15public readonly ImmutableArray<AssemblySymbol> Dependencies; 17public NamespaceOrTypeAndUsingDirective(NamespaceOrTypeSymbol namespaceOrType, UsingDirectiveSyntax? usingDirective, ImmutableArray<AssemblySymbol> dependencies)
Binder\Semantics\AccessCheck.cs (22)
26AssemblySymbol within, 27ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 40ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 57ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 139ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 145Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 223private static bool IsNamedTypeAccessible(NamedTypeSymbol type, Symbol within, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null) 225Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 257AssemblySymbol assembly, 261Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 282var withinAssembly = (object)withinType != null ? withinType.ContainingAssembly : (AssemblySymbol)within; 304ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 307Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 349ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 356var withinAssembly = (object)withinType != null ? withinType.ContainingAssembly : (AssemblySymbol)within; 422ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 497Debug.Assert(within is NamedTypeSymbol || within is AssemblySymbol); 548ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 676internal static bool HasInternalAccessTo(this AssemblySymbol fromAssembly, AssemblySymbol toAssembly)
Binder\Semantics\BestTypeInferrer.cs (4)
54ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 121ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 180ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 263ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\Conversions.cs (10)
44public override Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 115public override Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 131protected override Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 162ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 220Conversion convertElement(BoundNode element, TypeSymbol elementType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 233ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 251private static MethodGroupResolution ResolveDelegateOrFunctionPointerMethodGroup(Binder binder, BoundMethodGroup source, MethodSymbol delegateInvokeMethodOpt, bool isFunctionPointer, in CallingConventionInfo callingConventionInfo, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 302CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 395public Conversion MethodGroupConversion(SyntaxNode syntax, MethodGroup methodGroup, NamedTypeSymbol delegateType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 507public override Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\ConversionsBase.cs (103)
22protected readonly AssemblySymbol corLibrary; 33protected ConversionsBase(AssemblySymbol corLibrary, int currentRecursionDepth, bool includeNullability, ConversionsBase otherNullabilityOpt) 67public abstract Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 69public abstract Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 71public abstract Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 75protected abstract Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 78protected abstract Conversion GetCollectionExpressionConversion(BoundUnconvertedCollectionExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 85internal AssemblySymbol CorLibrary { get { return corLibrary; } } 98public Conversion ClassifyImplicitConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 169public Conversion ClassifyImplicitConversionFromType(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 204public Conversion ClassifyImplicitConversionFromTypeWhenNeitherOrBothFunctionTypes(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 234public Conversion ClassifyConversionFromExpressionType(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 283public Conversion ClassifyConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast = false) 317public Conversion ClassifyConversionFromType(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast = false) 375private Conversion ClassifyConversionFromExpressionForCast(BoundExpression source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 429private Conversion ClassifyConversionFromTypeForCast(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 499public Conversion ClassifyBuiltInConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 529public Conversion ClassifyStandardConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 541public Conversion ClassifyStandardConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 605private Conversion ClassifyStandardImplicitConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 695private Conversion ClassifyStandardImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 701Conversion classifyConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 763private Conversion ClassifyImplicitBuiltInConversionSlow(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 782private Conversion GetImplicitUserDefinedConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 788private Conversion GetImplicitUserDefinedConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 793private Conversion ClassifyExplicitBuiltInOnlyConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 872private Conversion GetExplicitUserDefinedConversion(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 878private Conversion GetExplicitUserDefinedConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 883private Conversion DeriveStandardExplicitFromOppositeStandardImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 950public bool IsBaseInterface(TypeSymbol baseType, TypeSymbol derivedType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 985public bool IsBaseClass(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1029private Conversion ClassifyImplicitBuiltInConversionFromExpression(BoundExpression sourceExpression, TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1159private Conversion GetImplicitCollectionExpressionConversion(BoundUnconvertedCollectionExpression collectionExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1184private Conversion GetSwitchExpressionConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1213private Conversion GetConditionalExpressionConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1293private Conversion ClassifyImplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1319private Conversion ClassifyExplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 1401private Conversion ClassifyExplicitOnlyConversionFromExpression(BoundExpression sourceExpression, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 1617internal bool IsAssignableFromMulticastDelegate(TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1719internal Conversion ClassifyImplicitUserDefinedConversionForV6SwitchGoverningType(TypeSymbol sourceType, out TypeSymbol switchGoverningType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1751internal Conversion GetCallerLineNumberConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1776internal bool HasCallerLineNumberConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1781internal bool HasCallerInfoStringConversion(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1892var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1910public Conversion ConvertExtensionMethodThisArg(TypeSymbol parameterType, TypeSymbol thisType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool isMethodGroupConversion) 1920public Conversion ClassifyImplicitExtensionMethodThisArgConversion(BoundExpression sourceExpressionOpt, TypeSymbol sourceType, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool isMethodGroupConversion) 1959(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 1976(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool _, ref CompoundUseSiteInfo<AssemblySymbol> u, bool _) => 2236private Conversion ClassifyImplicitNullableConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2279private delegate Conversion ClassifyConversionFromExpressionDelegate(ConversionsBase conversions, BoundExpression sourceExpression, TypeWithAnnotations destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast); 2280private delegate Conversion ClassifyConversionFromTypeDelegate(ConversionsBase conversions, TypeWithAnnotations source, TypeWithAnnotations destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast); 2282private Conversion GetImplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2294(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) 2300private Conversion GetExplicitTupleLiteralConversion(BoundTupleLiteral source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2312(ConversionsBase conversions, BoundExpression s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 2321ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2358private Conversion ClassifyImplicitTupleConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2365(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool _, ref CompoundUseSiteInfo<AssemblySymbol> u, bool _) => 2377private Conversion ClassifyExplicitTupleConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2384(ConversionsBase conversions, TypeWithAnnotations s, TypeWithAnnotations d, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> u, bool forCast) => 2399ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2431private Conversion ClassifyExplicitNullableConversion(TypeSymbol source, TypeSymbol destination, bool isChecked, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool forCast) 2486private bool HasCovariantArrayConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2508public bool HasIdentityOrImplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2540private bool HasArrayConversionToInterface(ArrayTypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2601private bool HasImplicitReferenceConversion(TypeWithAnnotations source, TypeWithAnnotations destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2621internal bool HasImplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2684private bool HasImplicitConversionToInterface(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2718private bool HasImplicitConversionFromArray(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2759private bool HasImplicitConversionFromDelegate(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2795private bool HasImplicitFunctionTypeConversion(FunctionTypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2806internal bool IsValidFunctionTypeConversionTarget(TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2828private bool HasImplicitFunctionTypeToFunctionTypeConversion(FunctionTypeSymbol sourceType, FunctionTypeSymbol destinationType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2849public bool HasImplicitTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2871private bool HasImplicitReferenceTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2914private bool HasImplicitEffectiveBaseConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2938private bool HasImplicitEffectiveInterfaceSetConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2943private bool HasVarianceCompatibleInterfaceInEffectiveInterfaceSet(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2963private bool HasAnyBaseInterfaceConversion(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2968private bool ImplementsVarianceCompatibleInterface(TypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2994internal bool ImplementsVarianceCompatibleInterface(NamedTypeSymbol derivedType, TypeSymbol baseType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2999internal bool HasImplicitConversionToOrImplementsVarianceCompatibleInterface(TypeSymbol typeToCheck, NamedTypeSymbol targetInterfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool needSupportForRefStructInterfaces) 3019private bool IsRefLikeOrAllowsRefLikeTypeImplementingVarianceCompatibleInterface(TypeSymbol typeToCheck, NamedTypeSymbol targetInterfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3033internal bool HasImplicitConversionToOrImplementsVarianceCompatibleInterface(BoundExpression expressionToCheck, NamedTypeSymbol targetInterfaceType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool needSupportForRefStructInterfaces) 3067private bool HasInterfaceVarianceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3086private bool HasDelegateVarianceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3105private bool HasVariantConversion(NamedTypeSymbol source, NamedTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3155private bool HasVariantConversionNoCycleCheck(NamedTypeSymbol source, NamedTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3248private bool HasImplicitBoxingTypeParameterConversion(TypeParameterSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3302public bool HasBoxingConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3374internal bool HasImplicitPointerConversion(TypeSymbol? source, TypeSymbol? destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3413bool hasConversion(RefKind refKind, TypeWithAnnotations sourceType, TypeWithAnnotations destinationType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3431private bool HasIdentityOrReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3454private bool HasExplicitReferenceConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3528private bool HasExplicitReferenceTypeParameterConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3580private bool HasUnboxingTypeParameterConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3631private bool HasExplicitDelegateConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3720private bool HasExplicitArrayConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3812private bool HasUnboxingConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3951private bool HasImplicitSpanConversion(TypeSymbol? source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3998bool hasCovariantConversion(TypeWithAnnotations source, TypeWithAnnotations destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4014private bool HasExplicitSpanConversion(TypeSymbol? source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4039var discarded = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\Semantics\Conversions\TypeConversions.cs (7)
15public TypeConversions(AssemblySymbol corLibrary, bool includeNullability = false) 20private TypeConversions(AssemblySymbol corLibrary, int currentRecursionDepth, bool includeNullability, TypeConversions otherNullabilityOpt) 36public override Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 42public override Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 48public override Conversion GetStackAllocConversion(BoundStackAllocArrayCreation sourceExpression, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 54protected override Conversion GetInterpolatedStringConversion(BoundExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 60protected override Conversion GetCollectionExpressionConversion(BoundUnconvertedCollectionExpression source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\UserDefinedConversions.cs (2)
17public static void AddTypesParticipatingInUserDefinedConversion(ArrayBuilder<(NamedTypeSymbol ParticipatingType, TypeParameterSymbol? ConstrainedToTypeOpt)> result, TypeSymbol type, bool includeBaseTypes, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 114static void addFromClassOrStruct(ArrayBuilder<(NamedTypeSymbol ParticipatingType, TypeParameterSymbol? ConstrainedToTypeOpt)> result, bool excludeExisting, TypeSymbol type, bool includeBaseTypes, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (11)
25ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 74private static void ComputeUserDefinedExplicitConversionTypeSet(TypeSymbol source, TypeSymbol target, ArrayBuilder<(NamedTypeSymbol ParticipatingType, TypeParameterSymbol ConstrainedToTypeOpt)> d, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 92ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 134ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 150ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 373ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 412CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 430ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 466CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 479private Conversion EncompassingExplicitConversion(BoundExpression expr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 502private Conversion EncompassingExplicitConversion(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (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, 286ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 365private TypeSymbol MostSpecificSourceTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 381private TypeSymbol MostSpecificTargetTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 575private bool IsEncompassedBy(BoundExpression aExpr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 589private bool IsEncompassedBy(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 594private Conversion EncompassingImplicitConversion(BoundExpression aExpr, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 609private Conversion EncompassingImplicitConversion(TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 692ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 701ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 727CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 754ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 763ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 766CompoundUseSiteInfo<AssemblySymbol> inLambdaUseSiteInfo = useSiteInfo; 894protected UserDefinedConversionResult AnalyzeImplicitUserDefinedConversionForV6SwitchGoverningType(TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (18)
29ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 65ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 224BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 337ArrayBuilder<BinaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 719private void GetAllBuiltInOperators(BinaryOperatorKind kind, bool isChecked, BoundExpression left, BoundExpression right, ArrayBuilder<BinaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 776static bool useOnlyReferenceEquality(Conversions conversions, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 790Conversion getOperandConversionForAllowByRefLikeNullCheck(bool isChecked, BoundExpression operand, TypeSymbol objectType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 808ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 873ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1098ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1165ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1215private BetterResult BetterOperator(BinaryOperatorSignature op1, BinaryOperatorSignature op2, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1364private BetterResult MoreSpecificOperator(BinaryOperatorSignature op1, BinaryOperatorSignature op2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1432ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1510void inferTypeArgumentsAndRemoveInapplicableToReceiverType(BinaryOperatorKind kind, BoundExpression left, BoundExpression right, ArrayBuilder<BinaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1544if (!FailsConstraintChecks(method, out ArrayBuilder<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded)) 1584bool isApplicableToReceiver(in BinaryOperatorSignature candidate, BoundExpression left, BoundExpression right, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1610bool isOperandApplicableToReceiver(in BinaryOperatorSignature candidate, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (11)
31ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 80ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 159void inferTypeArgumentsAndRemoveInapplicableToReceiverType(UnaryOperatorKind kind, BoundExpression operand, ArrayBuilder<UnaryOperatorSignature> operators, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 193if (!FailsConstraintChecks(method, out ArrayBuilder<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded)) 224bool isApplicableToReceiver(in UnaryOperatorSignature candidate, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 302ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 368ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 418private BetterResult BetterOperator(UnaryOperatorSignature op1, UnaryOperatorSignature op2, BoundExpression operand, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 489private void GetAllBuiltInOperators(UnaryOperatorKind kind, bool isChecked, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 520private bool CandidateOperators(bool isChecked, ArrayBuilder<UnaryOperatorSignature> operators, BoundExpression operand, ArrayBuilder<UnaryOperatorAnalysisResult> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 602ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (60)
278ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 581private MethodTypeInferenceResult InferTypeArgs(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 599private void InferTypeArgsFirstPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 620private void MakeExplicitParameterTypeInferences(Binder binder, BoundExpression argument, TypeWithAnnotations target, ExactOrBoundsKind kind, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 666ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 701ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 719private bool MakeExplicitParameterTypeInferences(Binder binder, BoundTupleLiteral argument, TypeWithAnnotations target, ExactOrBoundsKind kind, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 763private bool InferTypeArgsSecondPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 813private InferenceResult DoSecondPhase(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 861private void MakeOutputTypeInferences(Binder binder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 875private void MakeOutputTypeInferences(Binder binder, BoundExpression argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 898private void MakeOutputTypeInferences(Binder binder, BoundUnconvertedCollectionExpression argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 919private void MakeOutputTypeInferences(Binder binder, BoundTupleLiteral argument, TypeWithAnnotations formalType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 949private InferenceResult FixNondependentParameters(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 959private InferenceResult FixDependentParameters(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 971ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1367private void OutputTypeInference(Binder binder, BoundExpression expression, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1400private bool InferredReturnTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1436private bool MethodGroupReturnTypeInference(Binder binder, BoundExpression source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1507ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1545private void ExplicitParameterTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1600private void ExplicitReturnTypeInference(BoundExpression source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1636private void ExactInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1705private bool ExactArrayInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1737private bool ExactSpanInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1784private void ExactOrBoundsInference(ExactOrBoundsKind kind, TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1800private bool ExactOrBoundsNullableInference(ExactOrBoundsKind kind, TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1824private bool ExactNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1829private bool LowerBoundTupleInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1856private bool ExactConstructedInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1886private bool ExactPointerInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1940private void ExactTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1967private void LowerBoundInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2076private static TypeWithAnnotations GetMatchingElementType(ArrayTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2111private bool LowerBoundArrayInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2149private bool LowerBoundSpanInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2187private bool LowerBoundNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2192private bool LowerBoundConstructedInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2256private bool LowerBoundClassInference(TypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2301private bool LowerBoundInterfaceInference(TypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2373private void LowerBoundTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2425private bool LowerBoundFunctionPointerTypeInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2476private void UpperBoundInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2551private bool UpperBoundArrayInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2588private bool UpperBoundNullableInference(TypeWithAnnotations source, TypeWithAnnotations target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2593private bool UpperBoundConstructedInference(TypeWithAnnotations sourceWithAnnotations, TypeWithAnnotations targetWithAnnotations, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2653private bool UpperBoundClassInference(NamedTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2682private bool UpperBoundInterfaceInference(NamedTypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2723private void UpperBoundTypeArgumentInference(NamedTypeSymbol source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2775private bool UpperBoundFunctionPointerTypeInference(TypeSymbol source, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2825private bool Fix(int iParam, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2845var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2865ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3037private static bool ImplicitConversionExists(TypeWithAnnotations sourceWithAnnotations, TypeWithAnnotations destinationWithAnnotations, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConversionsBase conversions) 3061private TypeWithAnnotations InferReturnType(BoundExpression source, NamedTypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3192ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3244ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3259ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3298private bool InferTypeArgumentsFromFirstArgument(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3421ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (51)
101public void ObjectCreationOverloadResolution(ImmutableArray<MethodSymbol> constructors, AnalyzedArguments arguments, OverloadResolutionResult<MethodSymbol> result, bool dynamicResolution, bool isEarlyAttributeBinding, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 143ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 171ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 191ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 237var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 357ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 437ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 452RemoveConstraintViolations(results, template: new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo)); 560ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 642private void RemoveConstraintViolations<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, CompoundUseSiteInfo<AssemblySymbol> template) where TMember : Symbol 792private bool FailsConstraintChecks<TMember>(TMember member, out ArrayBuilder<TypeParameterDiagnosticInfo> constraintFailureDiagnosticsOpt, CompoundUseSiteInfo<AssemblySymbol> template) where TMember : Symbol 849ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 931AnalyzedArguments arguments, bool completeResults, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 969ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1013ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1064ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1383ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1412ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1436private static bool MemberGroupHidesByName<TMember>(ArrayBuilder<TMember> members, TMember member, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1470private void RemoveInaccessibleTypeArguments<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1486bool typeArgumentsAccessible(ImmutableArray<TypeSymbol> typeArguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1496private static void RemoveLessDerivedMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1619private static bool IsLessDerivedThanAny<TMember>(int index, TypeSymbol type, ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1744ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1780private static void ReportUseSiteInfo<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1789private int GetTheBestCandidateIndex<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1941private void RemoveWorseMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2114ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2154ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2733private static BetterResult MoreSpecificType(ref TemporaryArray<TypeSymbol> t1, ref TemporaryArray<TypeSymbol> t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2765private static BetterResult MoreSpecificType(TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2853private BetterResult BetterConversionFromExpression(BoundExpression node, TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2876ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 2923private BetterResult BetterConversionFromExpression(BoundExpression node, TypeSymbol t1, Conversion conv1, TypeSymbol t2, Conversion conv2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool okToDowngradeToNeither) 3034ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3068ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3175ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3204bool hasImplicitConversion(TypeSymbol source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => 3208private BetterResult BetterParamsCollectionType(TypeSymbol t1, TypeSymbol t2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3248private bool ExpressionMatchExactly(BoundExpression node, TypeSymbol t, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3364private bool ExpressionMatchExactly(BoundTupleLiteral tupleSource, TypeSymbol targetType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 3437ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3455ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3467ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 3667private bool CanDowngradeConversionFromLambdaToNeither(BetterResult currentResult, UnboundLambda lambda, TypeSymbol type1, TypeSymbol type2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool fromTypeAnalysis) 4097ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4178ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4246ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4403ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4485ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 4684ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo,
Binder\Semantics\SemanticFacts.cs (3)
38var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 51AssemblySymbol within) 63var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Binder\SwitchBinder.cs (5)
26private ImmutableArray<AssemblySymbol> _switchGoverningDependencies; 50protected ReadOnlyBindingDiagnostic<AssemblySymbol> SwitchGoverningDiagnostics 55return new ReadOnlyBindingDiagnostic<AssemblySymbol>(_switchGoverningDiagnostics, _switchGoverningDependencies); 256CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics); 411CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\SwitchExpressionBinder.cs (1)
153CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo(diagnostics);
Binder\UsingStatementBinder.cs (1)
272CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = originalBinder.GetNewCompoundUseSiteInfo(diagnostics);
Binder\WithClassTypeParametersBinder.cs (1)
30internal override bool IsAccessibleHelper(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
Binder\WithExtensionParameterBinder.cs (1)
37LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithExternAliasesBinder.cs (1)
33LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithExternAndUsingAliasesBinder.cs (1)
37LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithLambdaParametersBinder.cs (1)
87LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithParametersBinder.cs (1)
46LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithPrimaryConstructorParametersBinder.cs (1)
64LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithTypeParametersBinder.cs (1)
38LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithUsingNamespacesAndTypesBinder.cs (3)
51protected override AssemblySymbol? GetForwardedToAssemblyInUsingNamespaces(string name, ref NamespaceOrTypeSymbol qualifierOpt, BindingDiagnosticBag diagnostics, Location location) 55var result = GetForwardedToAssembly( 158LookupResult result, string name, int arity, ConsList<TypeSymbol>? basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
BoundTree\BoundExpression.cs (4)
677public ReadOnlyBindingDiagnostic<AssemblySymbol> ValueDiagnostics { get; } 679public ReadOnlyBindingDiagnostic<AssemblySymbol> TypeDiagnostics { get; } 681public BoundTypeOrValueData(Symbol valueSymbol, BoundExpression valueExpression, ReadOnlyBindingDiagnostic<AssemblySymbol> valueDiagnostics, BoundExpression typeExpression, ReadOnlyBindingDiagnostic<AssemblySymbol> typeDiagnostics)
BoundTree\BoundExpressionExtensions.cs (1)
135public 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, ReadOnlyBindingDiagnostic<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, 484public TypeWithAnnotations InferReturnType(ConversionsBase conversions, NamedTypeSymbol delegateType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType) 971ImmutableArray<AssemblySymbol>.Empty); 1256ImmutableArray<AssemblySymbol>.Empty)) 1337foreach (ReadOnlyBindingDiagnostic<AssemblySymbol> bag in allBags) 1360foreach (ReadOnlyBindingDiagnostic<AssemblySymbol> bag in allBags)
CodeGen\Optimizer.cs (1)
2415internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue)
Compilation\BuiltInOperators.cs (1)
855internal static bool IsValidObjectEquality(Conversions Conversions, TypeSymbol leftType, bool leftIsNull, bool leftIsDefault, TypeSymbol rightType, bool rightIsNull, bool rightIsDefault, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Compilation\CSharpCompilation.cs (27)
70private ConcurrentDictionary<ImportInfo, ImmutableArray<AssemblySymbol>>? _lazyImportInfos; 75private ImmutableArray<AssemblySymbol> _lazyClsComplianceDependencies; 1182/// Gets the <see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> for a metadata reference used to create this compilation. 1184/// <returns><see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> corresponding to the given reference or null if there is none.</returns> 1324internal void GetUnaliasedReferencedAssemblies(ArrayBuilder<AssemblySymbol> assemblies) 1359internal MetadataReference? GetMetadataReference(AssemblySymbol? assemblySymbol) 1384internal new AssemblySymbol Assembly 1836return AssemblySymbol.DynamicType; 1898ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics; 1908new ReadOnlyBindingDiagnostic<AssemblySymbol>( 1919private MethodSymbol? FindEntryPoint(MethodSymbol? simpleProgramEntryPointSymbol, CancellationToken cancellationToken, out ReadOnlyBindingDiagnostic<AssemblySymbol> sealedDiagnostics) 2286public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 2288public static readonly EntryPoint None = new EntryPoint(null, ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty); 2290public EntryPoint(MethodSymbol? methodSymbol, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics) 2336var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2428var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2431AccessCheck.IsSymbolAccessible(symbol0, (AssemblySymbol)within0, ref discardedUseSiteInfo) : 2698ImmutableArray<AssemblySymbol> dependencies = pair.Value; 2739foreach (var assembly in bindingDiagnostics.DependenciesBag) 2804internal void RecordImportDependencies(UsingDirectiveSyntax syntax, ImmutableArray<AssemblySymbol> dependencies) 3243private ReadOnlyBindingDiagnostic<AssemblySymbol> GetSourceDeclarationDiagnostics(SyntaxTree? syntaxTree = null, TextSpan? filterSpanWithinTree = null, Func<IEnumerable<Diagnostic>, SyntaxTree, TextSpan?, IEnumerable<Diagnostic>>? locationFilterOpt = null, Predicate<Symbol>? symbolFilter = null, CancellationToken cancellationToken = default) 3283ReadOnlyBindingDiagnostic<AssemblySymbol> clsDiagnostics = GetClsComplianceDiagnostics(syntaxTree, filterSpanWithinTree, cancellationToken); 3284return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable().Concat(clsDiagnostics.Diagnostics), clsDiagnostics.Dependencies); 3288return new ReadOnlyBindingDiagnostic<AssemblySymbol>(result.AsImmutable(), ImmutableArray<AssemblySymbol>.Empty); 3292private ReadOnlyBindingDiagnostic<AssemblySymbol> GetClsComplianceDiagnostics(SyntaxTree? syntaxTree, TextSpan? filterSpanWithinTree, CancellationToken cancellationToken) 3312return new ReadOnlyBindingDiagnostic<AssemblySymbol>(_lazyClsComplianceDiagnostics, _lazyClsComplianceDependencies);
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (1)
136var corLibrary = compilation.SourceAssembly.CorLibrary;
Compilation\CSharpSemanticModel.cs (9)
37/// table, (that is, from an <see cref="AssemblySymbol"/> of the <see cref="Compilation"/>), 1746var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1836var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2034var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2220var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2869var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2921var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4053var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4638var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compilation\MemberSemanticModel.cs (2)
482var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 506var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compilation\SyntaxTreeSemanticModel.cs (1)
254var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Compiler\ClsComplianceChecker.cs (2)
44Debug.Assert(diagnostics.DependenciesBag is null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); 89public override void VisitAssembly(AssemblySymbol symbol)
Compiler\DocumentationCommentCompiler.cs (1)
1195CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics);
Compiler\MethodCompiler.cs (2)
93Debug.Assert(diagnostics.DependenciesBag == null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); 1146actualDiagnostics = new ReadOnlyBindingDiagnostic<AssemblySymbol>(sourceMethod.SetDiagnostics(actualDiagnostics.Diagnostics, out diagsWritten), actualDiagnostics.Dependencies);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (10)
102private readonly AssemblySymbol _otherAssembly; 125AssemblySymbol otherAssembly, 188var otherAssembly = (AssemblySymbol?)Visit(module.ContainingAssembly); 215public override Symbol? VisitAssembly(AssemblySymbol assembly) 232foreach (var otherReferencedAssembly in _otherAssembly.Modules[0].ReferencedAssemblySymbols) 243private static bool IdentityEqualIgnoringVersionWildcard(AssemblySymbol left, AssemblySymbol right) 288var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 889var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Emitter\Model\AssemblyReference.cs (2)
21private readonly AssemblySymbol _targetAssembly; 23internal AssemblyReference(AssemblySymbol assemblySymbol)
Emitter\Model\PEModuleBuilder.cs (9)
26internal abstract class PEModuleBuilder : PEModuleBuilder<CSharpCompilation, SourceModuleSymbol, AssemblySymbol, TypeSymbol, NamedTypeSymbol, MethodSymbol, SyntaxNode, NoPia.EmbeddedTypesManager, ModuleCompilationState> 136internal sealed override AssemblySymbol CorLibrary 158foreach (AssemblySymbol aRef in modules[i].GetReferencedAssemblySymbols()) 165private void ValidateReferencedAssembly(AssemblySymbol assembly, AssemblyReference asmRef, DiagnosticBag diagnostics) 803internal IEnumerable<AssemblySymbol> GetReferencedAssembliesUsedSoFar() 805foreach (AssemblySymbol a in SourceModule.GetReferencedAssemblySymbols()) 862AssemblySymbol corLibrary = CorLibrary; 874internal sealed override Cci.IAssemblyReference Translate(AssemblySymbol assembly, DiagnosticBag diagnostics) 930AssemblySymbol container = module.ContainingAssembly;
Emitter\NoPia\EmbeddedEvent.cs (1)
114var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Emitter\NoPia\EmbeddedType.cs (1)
69ImmutableArray<AssemblySymbol> refs = TypeManager.ModuleBeingBuilt.SourceModule.GetReferencedAssemblySymbols();
Emitter\NoPia\EmbeddedTypesManager.cs (9)
34AssemblySymbol, 38private readonly ConcurrentDictionary<AssemblySymbol, string> _assemblyGuidMap = new ConcurrentDictionary<AssemblySymbol, string>(ReferenceEqualityComparer.Instance); 60UseSiteInfo<AssemblySymbol> info = typeSymbol.GetUseSiteInfo(); 93UseSiteInfo<AssemblySymbol> info; 171internal string GetAssemblyGuidString(AssemblySymbol assembly) 196foreach (AssemblySymbol a in ModuleBeingBuilt.GetReferencedAssembliesUsedSoFar()) 220internal override void ReportIndirectReferencesToLinkedAssemblies(AssemblySymbol a, DiagnosticBag diagnostics) 233foreach (AssemblySymbol indirectRef in m.GetReferencedAssemblySymbols())
FlowAnalysis\NullableWalker.cs (19)
2104var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2711var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2836var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4833var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 4947var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5391var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5432var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 5751var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 6183var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 6239var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8023var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8308var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 8477new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded), 8506var constraintsArgs = new ConstraintsHelper.CheckConstraintsArgs(compilation, _conversions, includeNullability: false, location: NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded); 8586var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 10055var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 11627var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 11813var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 11998var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (2)
62internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) => ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty;
FlowAnalysis\NullableWalker_Patterns.cs (3)
462var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 762var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 949var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Generated\BoundNodes.xml.Generated.cs (3)
7584public BoundLambda(SyntaxNode syntax, UnboundLambda unboundLambda, MethodSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type, bool hasErrors = false) 7604public ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics { get; } 7610public BoundLambda Update(UnboundLambda unboundLambda, MethodSymbol symbol, BoundBlock body, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics, Binder binder, TypeSymbol? type)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
333var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
277var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly); 625var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
620var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(Diagnostics, _bound.Compilation.Assembly);
Lowering\LocalRewriter\LocalRewriter.cs (3)
1134private CompoundUseSiteInfo<AssemblySymbol> GetNewCompoundUseSiteInfo() 1136return new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly); 1147var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
214CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = _localRewriter.GetNewCompoundUseSiteInfo(); 468CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = _localRewriter.GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
744CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
104var assembly = receiver.Type.ContainingAssembly; 123var assembly = receiver.Type.ContainingAssembly;
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
194var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
816var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly); 1857CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
104UseSiteInfo<AssemblySymbol> useSiteInfo = field.GetUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
340CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = GetNewCompoundUseSiteInfo();
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
699var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
150var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
221resultType = AssemblySymbol.DynamicType; 272var resultType = AssemblySymbol.DynamicType; 314resultType = AssemblySymbol.DynamicType; 433return MakeDynamicOperation(binderConstruction, loweredReceiver, RefKind.None, loweredArguments, default(ImmutableArray<RefKind>), loweredRight, AssemblySymbol.DynamicType);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
436var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(F.Diagnostics, F.Compilation.Assembly);
Lowering\SyntheticBoundNodeFactory.cs (6)
380UseSiteInfo<AssemblySymbol> useSiteInfo = specialMember.GetUseSiteInfo(); 565CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 654var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1325var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1432var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1491CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Operations\CSharpOperationFactory.cs (1)
1894var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\AliasSymbol.cs (1)
237var corLibrary = this.ContainingAssembly.CorLibrary;
Symbols\ArrayTypeSymbol.cs (7)
38AssemblySymbol declaringAssembly, 67AssemblySymbol declaringAssembly, 92AssemblySymbol declaringAssembly, 107AssemblySymbol declaringAssembly) 241internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed; 455internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 457UseSiteInfo<AssemblySymbol> result = default;
Symbols\AssemblySymbol.cs (21)
40private AssemblySymbol _corLibrary; 48internal AssemblySymbol CorLibrary 62internal void SetCorLibrary(AssemblySymbol corLibrary) 204public sealed override AssemblySymbol ContainingAssembly 334internal abstract NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies); 355internal virtual NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 366internal ErrorTypeSymbol CreateMultipleForwardingErrorTypeSymbol(ref MetadataTypeName emittedName, ModuleSymbol forwardingModule, AssemblySymbol destination1, AssemblySymbol destination2) 534internal abstract ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(); 535internal abstract void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies); 542internal abstract ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies(); 543internal abstract void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies); 556=> AreInternalsVisibleToThisAssembly((AssemblySymbol)otherAssembly); 558internal abstract bool AreInternalsVisibleToThisAssembly(AssemblySymbol other); 687out (AssemblySymbol, AssemblySymbol) conflicts, 891out (AssemblySymbol, AssemblySymbol) conflicts, 943var assemblies = ArrayBuilder<AssemblySymbol>.GetInstance(); 956foreach (var assembly in assemblies) 1040private static NamedTypeSymbol? GetTopLevelTypeByMetadataName(AssemblySymbol assembly, ref MetadataTypeName metadataName, AssemblyIdentity? assemblyOpt)
Symbols\Attributes\AttributeData.cs (1)
115var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\BaseTypeAnalysis.cs (2)
144internal static ManagedKind GetManagedKind(NamedTypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 173static (bool definitelyManaged, bool hasGenerics) dependsOnDefinitelyManagedType(NamedTypeSymbol type, HashSet<Symbol> partialClosure, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Compilation_UsedAssemblies.cs (21)
19private ConcurrentSet<AssemblySymbol>? _lazyUsedAssemblyReferences; 24ConcurrentSet<AssemblySymbol>? usedAssemblies = GetCompleteSetOfUsedAssemblies(cancellationToken); 39if (symbol is object && usedAssemblies.Contains((AssemblySymbol)symbol) && 63private ConcurrentSet<AssemblySymbol>? GetCompleteSetOfUsedAssemblies(CancellationToken cancellationToken) 92void addUsedAssembly(AssemblySymbol dependency, ArrayBuilder<AssemblySymbol> stack) 100void addReferencedAssemblies(AssemblySymbol assembly, bool includeMainModule, ArrayBuilder<AssemblySymbol> stack) 104foreach (var dependency in assembly.Modules[i].ReferencedAssemblySymbols) 121foreach (var assembly in SourceModule.ReferencedAssemblySymbols) 131foreach (var dependency in SourceAssembly.Modules[i].ReferencedAssemblySymbols) 153var stack = ArrayBuilder<AssemblySymbol>.GetInstance(_lazyUsedAssemblyReferences.Count); 158AssemblySymbol current = stack.Pop(); 159ConcurrentSet<AssemblySymbol>? usedAssemblies; 172foreach (AssemblySymbol dependency in usedAssemblies) 184foreach (AssemblySymbol underlyingDependency in retargetingAssembly.UnderlyingAssembly.SourceModule.ReferencedAssemblySymbols) 188AssemblySymbol dependency; 224internal void AddUsedAssemblies(ICollection<AssemblySymbol>? assemblies) 228foreach (var candidate in assemblies) 235internal bool AddUsedAssembly(AssemblySymbol? assembly) 244Interlocked.CompareExchange(ref _lazyUsedAssemblyReferences, new ConcurrentSet<AssemblySymbol>(), null);
Symbols\Compilation_WellKnownMembers.cs (7)
138(AssemblySymbol, AssemblySymbol) conflicts = default; 199var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 208internal bool IsExceptionType(TypeSymbol type, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 218internal bool IsEqualOrDerivedFromWellKnownClass(TypeSymbol type, WellKnownType wellKnownType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 247internal static Symbol? GetRuntimeMember(NamedTypeSymbol declaringType, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt) 253internal static Symbol? GetRuntimeMember(ImmutableArray<Symbol> members, in MemberDescriptor descriptor, SignatureComparer<MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol> comparer, AssemblySymbol? accessWithinOpt)
Symbols\ConstantValueUtils.cs (2)
18public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 20public EvaluatedConstant(ConstantValue value, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Symbols\ConstraintsHelper.cs (42)
29public readonly UseSiteInfo<AssemblySymbol> UseSiteInfo; 31public TypeParameterDiagnosticInfo(TypeParameterSymbol typeParameter, UseSiteInfo<AssemblySymbol> useSiteInfo) 73AssemblySymbol corLibrary, 83template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)); 130AssemblySymbol corLibrary, 137CompoundUseSiteInfo<AssemblySymbol> template) 155var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(template); 179diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(constraintTypeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_CircularConstraint, constraintTypeParameter, typeParameter)))); 213diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(errorCode, typeParameter, constraintTypeParameter)))); 251diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(underlyingTypeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_CircularConstraint, underlyingTypeParameter, typeParameter)))); 303diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BaseConstraintConflict, typeParameter, constraintDeducedBase, deducedBaseType)))); 533public readonly CompoundUseSiteInfo<AssemblySymbol> Template; 541this(currentCompilation, conversions, includeNullability, location, diagnostics, template: new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, currentCompilation.Assembly)) 545public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics, CompoundUseSiteInfo<AssemblySymbol> template) 961diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BadTypeArgument, typeArgument.Type)))); 974diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(diagnosticInfo))); 979diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_RuntimeDoesNotSupportByRefLikeGenerics)))); 986diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NotRefStructConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 994diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_GenericArgIsStaticClass, typeArgument.Type)))); 1003diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_RefConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1012var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(args.Template); 1019diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1034diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(csDiagnosticInfo))); 1045diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_ValConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1087var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(args.Template); 1096new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, iface, member)))); 1130diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NewConstraintNotSatisfied, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1134diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_NewConstraintCannotHaveRequiredMembers, containingSymbol.ConstructedFrom(), typeParameter, typeArgument.Type)))); 1153nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, containingSymbol.ConstructedFrom(), typeParameter, typeArgument)))); 1160nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, containingSymbol.ConstructedFrom(), typeParameter, typeArgument)))); 1173ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1184nullabilityDiagnosticsBuilderOpt.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, containingSymbol.ConstructedFrom(), constraintType, typeParameter, typeArgument)))); 1225diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(errorCode, containingSymbol.ConstructedFrom(), constraintTypeErrorArgument, typeParameter, typeArgumentErrorArgument)))); 1301CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1309new UseSiteInfo<AssemblySymbol>(useSiteInfo.Dependencies.Single()) : 1310new UseSiteInfo<AssemblySymbol>(useSiteInfo.Dependencies.ToImmutableHashSet()))); 1335useSiteDiagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(info))); 1350ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1410private static bool SelfOrBaseHasStaticAbstractMember(NamedTypeSymbol iface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol memberWithoutImplementation) 1454return new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BaseConstraintConflict, typeParameter, deducedBase, classConflict ? "class" : "struct"))); 1552private static bool IsEncompassedBy(ConversionsBase conversions, TypeSymbol a, TypeSymbol b, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1628var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\DynamicTypeSymbol.cs (1)
112internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed;
Symbols\ErrorTypeSymbol.cs (3)
83internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 85return new UseSiteInfo<AssemblySymbol>(this.ErrorInfo); 649internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo()
Symbols\EventSymbol.cs (4)
194var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 276internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 280return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 286internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\ExtendedErrorTypeSymbol.cs (2)
122internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 126return new UseSiteInfo<AssemblySymbol>(this.ErrorInfo);
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
91internal sealed override UseSiteInfo<AssemblySymbol> GetUseSiteInfo()
Symbols\FieldSymbol.cs (3)
341internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 345return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 351internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (4)
774internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 776UseSiteInfo<AssemblySymbol> info = default; 781MergeUseSiteInfo(ref info, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_UnsupportedCallingConvention, this))); 792MergeUseSiteInfo(ref info, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this)));
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (4)
90internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Unmanaged; 145internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 147UseSiteInfo<AssemblySymbol> fromSignature = Signature.GetUseSiteInfo(); 151return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, this));
Symbols\FunctionTypeSymbol.cs (1)
156internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => throw ExceptionUtilities.Unreachable();
Symbols\LocalSymbol.cs (1)
363internal abstract ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue);
Symbols\MemberSymbolExtensions.cs (1)
307NoLocation.Singleton, diagnostics: BindingDiagnosticBag.Discarded, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
Symbols\MergedNamespaceSymbol.cs (1)
255public 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; 168internal (AssemblySymbol FirstSymbol, AssemblySymbol SecondSymbol) LookupAssembliesForForwardedMetadataType(ref MetadataTypeName emittedName) 184internal override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 187(AssemblySymbol firstSymbol, AssemblySymbol secondSymbol) = LookupAssembliesForForwardedMetadataType(ref emittedName); 204visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.Empty); 214internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 219internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 224internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 229internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 247internal 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; 628internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 630AssemblySymbol primaryDependency = PrimaryDependency; 634UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(primaryDependency); 639MergeUseSiteInfo(ref result, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 647void deriveCompilerFeatureRequiredUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result) 662result = new UseSiteInfo<AssemblySymbol>(diag);
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
68public override AssemblySymbol ContainingAssembly
Symbols\Metadata\PE\PEMethodSymbol.cs (10)
312public CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo; 430InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 883InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 914InitializeUseSiteDiagnostic(new UseSiteInfo<AssemblySymbol>(diagnosticInfo)); 1473internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1477UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 1562private UseSiteInfo<AssemblySymbol> GetCachedUseSiteInfo() 1567private UseSiteInfo<AssemblySymbol> InitializeUseSiteDiagnostic(UseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Metadata\PE\PEModuleSymbol.cs (13)
31private readonly AssemblySymbol _assemblySymbol; 126: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 132: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 138: this((AssemblySymbol)assemblySymbol, module, importOptions, ordinal) 143private PEModuleSymbol(AssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal) 226public override AssemblySymbol ContainingAssembly 619foreach (AssemblySymbol assembly in this.GetReferencedAssemblySymbols()) 741internal (AssemblySymbol FirstSymbol, AssemblySymbol SecondSymbol) GetAssembliesForForwardedType(ref MetadataTypeName fullName) 751AssemblySymbol firstSymbol = GetReferencedAssemblySymbol(firstIndex); 758AssemblySymbol secondSymbol = GetReferencedAssemblySymbol(secondIndex); 771AssemblySymbol firstSymbol = this.GetReferencedAssemblySymbol(forwarder.Value.FirstIndex); 776var secondSymbol = this.GetReferencedAssemblySymbol(forwarder.Value.SecondIndex);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
83private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 822var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 2363internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 2365AssemblySymbol primaryDependency = PrimaryDependency; 2368_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)
691var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 710var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 730var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 752var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Metadata\PE\PEPropertySymbol.cs (8)
181public CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 362retVal._lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 935internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 937AssemblySymbol primaryDependency = PrimaryDependency; 941var result = new UseSiteInfo<AssemblySymbol>(primaryDependency); 958return new UseSiteInfo<AssemblySymbol>(primaryDependency); 965uncommonFields._lazyCachedUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency));
Symbols\Metadata\PE\PETypeParameterSymbol.cs (8)
39private CachedUseSiteInfo<AssemblySymbol> _lazyCachedConstraintsUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 143public override AssemblySymbol ContainingAssembly 240_lazyCachedConstraintsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 420_lazyCachedConstraintsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency: null, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BindToBogus, this))); 679AssemblySymbol primaryDependency = PrimaryDependency; 680var useSiteInfo = new UseSiteInfo<AssemblySymbol>(primaryDependency); 701internal override UseSiteInfo<AssemblySymbol> GetConstraintsUseSiteErrorInfo()
Symbols\Metadata\PE\SymbolFactory.cs (1)
103ImmutableArray<AssemblySymbol> linkedAssemblies = moduleSymbol.ContainingAssembly.GetLinkedReferencedAssemblies();
Symbols\MetadataOrSourceAssemblySymbol.cs (4)
226protected IVTConclusion MakeFinalIVTDetermination(AssemblySymbol potentialGiverOfAccess) 266private ConcurrentDictionary<AssemblySymbol, IVTConclusion> _assembliesToWhichInternalAccessHasBeenAnalyzed; 268private ConcurrentDictionary<AssemblySymbol, IVTConclusion> AssembliesToWhichInternalAccessHasBeenDetermined 273Interlocked.CompareExchange(ref _assembliesToWhichInternalAccessHasBeenAnalyzed, new ConcurrentDictionary<AssemblySymbol, IVTConclusion>(), null);
Symbols\MethodSymbol.cs (4)
454var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 943internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 947return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 955internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\MissingAssemblySymbol.cs (9)
22/// A <see cref="MissingAssemblySymbol"/> is a special kind of <see cref="AssemblySymbol"/> that represents 125internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 130internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 132return ImmutableArray<AssemblySymbol>.Empty; 135internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 140internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 142return ImmutableArray<AssemblySymbol>.Empty; 171internal override NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 188internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other)
Symbols\MissingMetadataTypeSymbol.cs (3)
66AssemblySymbol containingAssembly = this.ContainingAssembly; 228public override AssemblySymbol ContainingAssembly 292AssemblySymbol containingAssembly = _containingModule.ContainingAssembly;
Symbols\MissingModuleSymbol.cs (7)
27protected readonly AssemblySymbol assembly; 31public MissingModuleSymbol(AssemblySymbol assembly, int ordinal) 82public override AssemblySymbol ContainingAssembly 159internal override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 161return ImmutableArray<AssemblySymbol>.Empty; 164internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly) 212public MissingModuleSymbolWithName(AssemblySymbol assembly, string name)
Symbols\MissingNamespaceSymbol.cs (1)
56public override AssemblySymbol ContainingAssembly
Symbols\ModuleSymbol.cs (7)
39public override AssemblySymbol ContainingAssembly 43return (AssemblySymbol)ContainingSymbol; 224public ImmutableArray<AssemblySymbol> ReferencedAssemblySymbols 241internal abstract ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols(); // TODO: Remove this method and make ReferencedAssemblySymbols property abstract instead. 243internal AssemblySymbol GetReferencedAssemblySymbol(int referencedAssemblyIndex) 253var assembly = ContainingAssembly; 273internal abstract void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly = null);
Symbols\NamedTypeSymbol.cs (10)
71internal ImmutableArray<TypeWithAnnotations> TypeArgumentsWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 83internal TypeWithAnnotations TypeArgumentWithDefinitionUseSiteDiagnostics(int index, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 417internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1280internal void GetAllTypeArguments(ref TemporaryArray<TypeSymbol> builder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1294internal ImmutableArray<TypeWithAnnotations> GetAllTypeArguments(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1301internal void GetAllTypeArguments(ArrayBuilder<TypeWithAnnotations> builder, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1376internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1378UseSiteInfo<AssemblySymbol> result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 1394private bool DeriveUseSiteDiagnosticFromTypeArguments(ref UseSiteInfo<AssemblySymbol> result)
Symbols\NamespaceExtent.cs (3)
57public AssemblySymbol Assembly 63return (AssemblySymbol)_symbolOrCompilation; 104internal NamespaceExtent(AssemblySymbol assembly)
Symbols\NamespaceSymbol.cs (2)
101public abstract override AssemblySymbol ContainingAssembly { get; } 339var assembly = this.ContainingAssembly;
Symbols\NativeIntegerTypeSymbol.cs (1)
165internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo()
Symbols\NonMissingAssemblySymbol.cs (3)
18/// A <see cref="NonMissingAssemblySymbol"/> is a special kind of <see cref="AssemblySymbol"/> that represents 161internal sealed override NamedTypeSymbol LookupDeclaredOrForwardedTopLevelMetadataType(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 186internal abstract override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies);
Symbols\NonMissingModuleSymbol.cs (7)
24/// An array of <see cref="AssemblySymbol"/> objects corresponding to assemblies directly referenced by this module. 29private ModuleReferences<AssemblySymbol> _moduleReferences; 60internal sealed override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() 66internal ImmutableArray<UnifiedAssembly<AssemblySymbol>> GetUnifiedAssemblies() 82var ownerAssembly = ownerModule.ContainingAssembly; 83var dependentAssembly = dependentType.ContainingAssembly; 154internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly = null)
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.cs (3)
22private readonly AssemblySymbol _embeddingAssembly; 27AssemblySymbol embeddingAssembly, 55public AssemblySymbol EmbeddingAssembly
Symbols\NoPiaMissingCanonicalTypeSymbol.cs (3)
23private readonly AssemblySymbol _embeddingAssembly; 30AssemblySymbol embeddingAssembly, 50public AssemblySymbol EmbeddingAssembly
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
1072var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\ParameterSymbol.cs (1)
443UseSiteInfo<AssemblySymbol> info = default;
Symbols\PointerTypeSymbol.cs (3)
112internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Unmanaged; 288internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 290UseSiteInfo<AssemblySymbol> result = default;
Symbols\PropertySymbol.cs (4)
291var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 389internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 393return new UseSiteInfo<AssemblySymbol>(PrimaryDependency); 399internal bool CalculateUseSiteDiagnostic(ref UseSiteInfo<AssemblySymbol> result)
Symbols\PublicModel\AssemblySymbol.cs (1)
19internal abstract Symbols.AssemblySymbol UnderlyingAssemblySymbol { get; }
Symbols\PublicModel\NonSourceAssemblySymbol.cs (3)
13private readonly Symbols.AssemblySymbol _underlying; 15public NonSourceAssemblySymbol(Symbols.AssemblySymbol underlying) 22internal override Symbols.AssemblySymbol UnderlyingAssemblySymbol => _underlying;
Symbols\PublicModel\SourceAssemblySymbol.cs (1)
21internal override Symbols.AssemblySymbol UnderlyingAssemblySymbol => _underlying;
Symbols\ReducedExtensionMethodSymbol.cs (5)
43var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 113ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool wasFullyInferred) 133var containingAssembly = method.ContainingAssembly; 207var success = method.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation, conversions, includeNullability: false, NoLocation.Singleton, diagnostics: null, template: new CompoundUseSiteInfo<AssemblySymbol>(useSiteInfo)), 356public override AssemblySymbol ContainingAssembly
Symbols\ReferenceManager.cs (55)
55internal sealed class ReferenceManager : CommonReferenceManager<CSharpCompilation, AssemblySymbol> 124protected override void GetActualBoundReferencesUsedBy(AssemblySymbol assemblySymbol, List<AssemblySymbol?> referencedAssemblySymbols) 141protected override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies(AssemblySymbol candidateAssembly) 148return ImmutableArray<AssemblySymbol>.Empty; 154protected override bool IsLinked(AssemblySymbol candidateAssembly) 159protected override AssemblySymbol? GetCorLibrary(AssemblySymbol candidateAssembly) 161AssemblySymbol corLibrary = candidateAssembly.CorLibrary; 253var referencedAssembliesByIdentity = new AssemblyIdentityMap<AssemblySymbol>(); 254foreach (var symbol in this.ReferencedAssemblies) 280private static AssemblySymbol MapAssemblyIdentityToResolvedSymbol(AssemblyIdentity identity, AssemblyIdentityMap<AssemblySymbol> map) 282AssemblySymbol symbol; 322private void InitializeAssemblyReuseData(AssemblySymbol assemblySymbol, ImmutableArray<AssemblySymbol> referencedAssemblies, ImmutableArray<UnifiedAssembly<AssemblySymbol>> unifiedAssemblies) 328var sourceModuleReferences = new ModuleReferences<AssemblySymbol>(referencedAssemblies.SelectAsArray(a => a.Identity), referencedAssemblies, unifiedAssemblies); 438AssemblySymbol? corLibrary; 463ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences; 545var corLibrary = sourceAssembly.CorLibrary; 565var linkedReferencedAssembliesBuilder = ArrayBuilder<AssemblySymbol>.GetInstance(); 592var linkedAssemblySymbol = bindingResult[referenceBinding.DefinitionIndex].AssemblySymbol; 660ImmutableArray<AssemblySymbol> underlyingReferencedAssemblySymbols = 664foreach (AssemblySymbol asm in underlyingReferencedAssemblySymbols) 692AssemblySymbol[] symbols = new AssemblySymbol[refsCount]; 693ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 708var moduleReferences = new ModuleReferences<AssemblySymbol>(referencedAssemblies, symbols.AsImmutableOrNull(), unifiedAssemblies.AsImmutableOrEmpty()); 734var symbols = new AssemblySymbol[moduleReferenceCount]; 738ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 752var moduleReferences = new ModuleReferences<AssemblySymbol>(identities.AsImmutableOrNull(), symbols.AsImmutableOrNull(), unifiedAssemblies.AsImmutableOrEmpty()); 765out ImmutableArray<ModuleReferences<AssemblySymbol>> moduleReferences) 770var moduleReferencesBuilder = (moduleSymbols.Length > 1) ? ArrayBuilder<ModuleReferences<AssemblySymbol>>.GetInstance() : null; 778var symbols = new AssemblySymbol[refsCount]; 780ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies = null; 800var references = new ModuleReferences<AssemblySymbol>( 818private static AssemblySymbol GetAssemblyDefinitionSymbol( 821ref ArrayBuilder<UnifiedAssembly<AssemblySymbol>>? unifiedAssemblies) 825var assembly = bindingResult[referenceBinding.DefinitionIndex].AssemblySymbol; 832unifiedAssemblies = new ArrayBuilder<UnifiedAssembly<AssemblySymbol>>(); 835unifiedAssemblies.Add(new UnifiedAssembly<AssemblySymbol>(assembly, referenceBinding.ReferenceIdentity)); 864private ImmutableArray<AssemblySymbol> _assemblies; 882internal abstract AssemblySymbol CreateAssemblySymbol(); 892public override ImmutableArray<AssemblySymbol> AvailableSymbols 898var builder = ArrayBuilder<AssemblySymbol>.GetInstance(); 912protected abstract void AddAvailableSymbols(ArrayBuilder<AssemblySymbol> builder); 981internal override AssemblySymbol CreateAssemblySymbol() 1014protected override void AddAvailableSymbols(ArrayBuilder<AssemblySymbol> assemblies) 1030public override bool IsMatchingAssembly(AssemblySymbol? candidateAssembly) 1132internal override AssemblySymbol CreateAssemblySymbol() 1137protected override void AddAvailableSymbols(ArrayBuilder<AssemblySymbol> assemblies) 1148public override bool IsMatchingAssembly(AssemblySymbol? candidateAssembly) 1151AssemblySymbol? asm;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (8)
62private ImmutableArray<AssemblySymbol> _noPiaResolutionAssemblies; 70private ImmutableArray<AssemblySymbol> _linkedReferencedAssemblies; 205internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other) 228internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 233internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 238internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 243internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 296internal 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; 279public override AssemblySymbol ContainingAssembly 354internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 358AssemblySymbol primaryDependency = PrimaryDependency; 359var 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)
40private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; 265public override AssemblySymbol ContainingAssembly 385internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 389AssemblySymbol primaryDependency = PrimaryDependency; 390_lazyCachedUseSiteInfo.Initialize(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency).AdjustDiagnosticInfo(CalculateUseSiteDiagnostic()));
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
169public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
75public 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)
161public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
101public 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\LambdaSymbol.cs (3)
29private readonly HashSet<AssemblySymbol> _declarationDependencies; 71_declarationDependencies = new HashSet<AssemblySymbol>(); 306addTo.AddDependencies((IReadOnlyCollection<AssemblySymbol>)_declarationDependencies);
Symbols\Source\LocalFunctionSymbol.cs (3)
36private readonly HashSet<AssemblySymbol> _declarationDependencies; 48_declarationDependencies = new HashSet<AssemblySymbol>(); 135addTo.AddDependencies((IReadOnlyCollection<AssemblySymbol>)_declarationDependencies);
Symbols\Source\ModifierUtils.cs (1)
516var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(futureDestination: diagnostics, assemblyBeingBuilt: symbol.ContainingAssembly);
Symbols\Source\ParameterHelpers.cs (1)
931CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics);
Symbols\Source\SourceAssemblySymbol.cs (18)
533private ConcurrentDictionary<AssemblySymbol, bool> _optimisticallyGrantedInternalsAccess; 537private static AssemblySymbol t_assemblyForWhichCurrentThreadIsComputingKeys; 1853internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 1858internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 1863internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 1867return default(ImmutableArray<AssemblySymbol>); 1870internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 2100ConcurrentDictionary<AssemblySymbol, bool> haveGrantedAssemblies = _optimisticallyGrantedInternalsAccess; 2104foreach (var otherAssembly in haveGrantedAssemblies.Keys) 2148internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol potentialGiverOfAccess) 2157var assemblyWhoseKeysAreBeingComputed = t_assemblyForWhichCurrentThreadIsComputingKeys; 2164Interlocked.CompareExchange(ref _optimisticallyGrantedInternalsAccess, new ConcurrentDictionary<AssemblySymbol, bool>(), null); 2217UseSiteInfo<AssemblySymbol> useSiteInfo = forwardedType.GetUseSiteInfo(); 2808internal override NamedTypeSymbol? TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol>? visitedAssemblies) 2875(AssemblySymbol firstSymbol, AssemblySymbol secondSymbol) = peModuleSymbol.GetAssembliesForForwardedType(ref emittedName); 2891visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.Empty);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
983var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnosticsOpt, ContainingAssembly); 1059var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1087var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1120var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1161var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
100var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, delegateType.ContainingAssembly);
Symbols\Source\SourceEventSymbol.cs (2)
585var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 695protected static void CopyEventCustomModifiers(EventSymbol eventWithCustomModifiers, ref TypeWithAnnotations type, AssemblySymbol containingAssembly)
Symbols\Source\SourceLocalSymbol.cs (4)
475internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 477return ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty; 609internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 613return _constantTuple == null ? ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty : _constantTuple.Diagnostics;
Symbols\Source\SourceMemberContainerSymbol.cs (5)
189private ImmutableArray<AssemblySymbol> _managedKindUseSiteDependencies; 816internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 821var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(ContainingAssembly); 824ImmutableInterlocked.InterlockedInitialize(ref _managedKindUseSiteDependencies, managedKindUseSiteInfo.Dependencies?.ToImmutableArray() ?? ImmutableArray<AssemblySymbol>.Empty); 839ImmutableArray<AssemblySymbol> useSiteDependencies = _managedKindUseSiteDependencies;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (11)
165implementingMemberAndDiagnostics = new SymbolAndDiagnostics(explicitImpl.Single(), ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty); 169implementingMemberAndDiagnostics = new SymbolAndDiagnostics(null, new ReadOnlyBindingDiagnostic<AssemblySymbol>(ImmutableArray.Create(diag), default)); 322UseSiteInfo<AssemblySymbol> useSiteInfo = interfaceMember.GetUseSiteInfo(); 357var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 709var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 879var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1002var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1071var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 1134var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, overridingProperty.ContainingAssembly); 1208var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1371var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Source\SourceMemberFieldSymbol.cs (2)
97CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
361var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
955var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceModuleSymbol.cs (7)
34private ImmutableArray<AssemblySymbol> _lazyAssembliesToEmbedTypesFrom; 128internal ImmutableArray<AssemblySymbol> GetAssembliesToEmbedTypesFrom() 133var buffer = ArrayBuilder<AssemblySymbol>.GetInstance(); 135foreach (AssemblySymbol asm in this.GetReferencedAssemblySymbols()) 145default(ImmutableArray<AssemblySymbol>)); 313foreach (AssemblySymbol a in GetReferencedAssemblySymbols()) 448public override AssemblySymbol ContainingAssembly
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (7)
116var corLibrary = this.ContainingAssembly.CorLibrary; 126var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 162var corLibrary = this.ContainingAssembly.CorLibrary; 368CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 688var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 766var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (3)
496var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 518var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 528NoLocation.Singleton, diagnostics: BindingDiagnosticBag.Discarded, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
999var corLibrary = compilation.SourceAssembly.CorLibrary;
Symbols\Source\SourceNamespaceSymbol.cs (2)
73public override AssemblySymbol ContainingAssembly 434AssemblySymbol containingAssembly = ContainingAssembly;
Symbols\Source\SourceParameterSymbolBase.cs (1)
62public sealed override AssemblySymbol ContainingAssembly
Symbols\Source\SourcePropertySymbol.cs (2)
579CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = binder.GetNewCompoundUseSiteInfo(diagnostics); 671var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
764var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 868var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\SubstitutedMethodSymbol.cs (1)
126public sealed override AssemblySymbol ContainingAssembly
Symbols\Symbol.cs (18)
165public virtual AssemblySymbol ContainingAssembly 1071internal virtual UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 1076protected AssemblySymbol PrimaryDependency 1080AssemblySymbol dependency = this.ContainingAssembly; 1154internal bool MergeUseSiteInfo(ref UseSiteInfo<AssemblySymbol> result, UseSiteInfo<AssemblySymbol> info) 1162result = new UseSiteInfo<AssemblySymbol>(diagnosticInfo); 1167var primaryDependency = result.PrimaryDependency; 1171result = new UseSiteInfo<AssemblySymbol>(diagnosticInfo, primaryDependency, secondaryDependencies); 1209internal bool DeriveUseSiteInfoFromType(ref UseSiteInfo<AssemblySymbol> result, TypeSymbol type) 1211UseSiteInfo<AssemblySymbol> info = type.GetUseSiteInfo(); 1220private void GetSymbolSpecificUnsupportedMetadataUseSiteErrorInfo(ref UseSiteInfo<AssemblySymbol> info) 1233private UseSiteInfo<AssemblySymbol> GetSymbolSpecificUnsupportedMetadataUseSiteErrorInfo() 1235var useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty)); 1240internal bool DeriveUseSiteInfoFromType(ref UseSiteInfo<AssemblySymbol> result, TypeWithAnnotations type, AllowedRequiredModifierType allowedRequiredModifierType) 1246internal bool DeriveUseSiteInfoFromParameter(ref UseSiteInfo<AssemblySymbol> result, ParameterSymbol param) 1255internal bool DeriveUseSiteInfoFromParameters(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<ParameterSymbol> parameters) 1278internal bool DeriveUseSiteInfoFromCustomModifiers(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<CustomModifier> customModifiers, AllowedRequiredModifierType allowedRequiredModifierType)
Symbols\SymbolDistinguisher.cs (3)
104var containingAssembly0 = unwrappedSymbol0.ContainingAssembly; 105var containingAssembly1 = unwrappedSymbol1.ContainingAssembly; 175AssemblySymbol containingAssembly = unwrappedSymbol.ContainingAssembly;
Symbols\SymbolExtensions.cs (10)
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) 389internal static AssemblySymbol? EnsureCSharpSymbolOrNull(this IAssemblySymbol? symbol, string paramName) 391return (AssemblySymbol?)EnsureCSharpSymbolOrNull((ISymbol?)symbol, paramName); 592internal static IAssemblySymbol? GetPublicSymbol(this AssemblySymbol? symbol) 736internal static ImmutableArray<IAssemblySymbol> GetPublicSymbols(this ImmutableArray<AssemblySymbol> symbols) 789internal static AssemblySymbol? GetSymbol(this IAssemblySymbol? symbol) 791return symbol.GetSymbol<AssemblySymbol>();
Symbols\SymbolVisitor.cs (1)
35public virtual void VisitAssembly(AssemblySymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
35public virtual TResult VisitAssembly(AssemblySymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
47/// Called when visiting an <see cref="AssemblySymbol" />; Override this method with 54public virtual TResult VisitAssembly(AssemblySymbol symbol, TArgument argument)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
152public override AssemblySymbol ContainingAssembly => _containingType.ContainingAssembly;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
829public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (2)
89var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; // This is reported when we bind bases 141internal static MethodSymbol? FindValidCloneMethod(TypeSymbol containingType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
89internal static MethodSymbol? FindCopyConstructor(NamedTypeSymbol containingType, NamedTypeSymbol within, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
61internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed; 81public override AssemblySymbol ContainingAssembly => _module.ContainingAssembly;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
87internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
77public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (2)
274internal sealed override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 276var result = new UseSiteInfo<AssemblySymbol>(PrimaryDependency);
Symbols\Synthesized\SynthesizedLocal.cs (2)
195internal sealed override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) 197return ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
94var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
129internal override ReadOnlyBindingDiagnostic<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)
139internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 279internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() 283return new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_TupleInferredNamesNotAvailable, _name,
Symbols\Tuples\TupleTypeSymbol.cs (1)
497UseSiteInfo<AssemblySymbol> useSiteInfo = member.GetUseSiteInfo();
Symbols\TypeParameterSymbol.cs (8)
73internal virtual UseSiteInfo<AssemblySymbol> GetConstraintsUseSiteErrorInfo() 92internal ImmutableArray<TypeWithAnnotations> ConstraintTypesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 106private void AppendConstraintsUseSiteErrorInfo(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 269internal NamedTypeSymbol EffectiveBaseClass(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 294internal ImmutableArray<NamedTypeSymbol> EffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 318internal TypeSymbol DeducedBaseType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 344internal ImmutableArray<NamedTypeSymbol> AllEffectiveInterfacesWithDefinitionUseSiteDiagnostics(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 597internal 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; 611internal bool IsManagedType(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => GetManagedKind(ref useSiteInfo) == ManagedKind.Managed; 617var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 626internal abstract ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo); 632var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded; 848var useSiteInfo = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 1023var useSiteInfo2 = compilation is object ? new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, compilation.Assembly) : CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies; 1067ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1119private static Symbol FindMostSpecificImplementation(Symbol interfaceMember, NamedTypeSymbol implementingInterface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1163ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1275ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1475private static bool IsExplicitlyImplementedViaAccessors(bool checkPendingExplicitImplementations, Symbol interfaceMember, TypeSymbol currType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol implementingMember) 1512private static bool TryGetExplicitImplementationAssociatedPropertyOrEvent(bool checkPendingExplicitImplementations, MethodSymbol interfaceAccessor, TypeSymbol currType, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out Symbol associated)
Symbols\TypeSymbol.SymbolAndDiagnostics.cs (3)
21public static readonly SymbolAndDiagnostics Empty = new SymbolAndDiagnostics(null, ReadOnlyBindingDiagnostic<AssemblySymbol>.Empty); 24public readonly ReadOnlyBindingDiagnostic<AssemblySymbol> Diagnostics; 26public SymbolAndDiagnostics(Symbol symbol, ReadOnlyBindingDiagnostic<AssemblySymbol> diagnostics)
Symbols\TypeSymbolExtensions.cs (7)
21public CompoundUseSiteInfo<AssemblySymbol> UseSiteInfo; 27public static bool ImplementsInterface(this TypeSymbol subType, TypeSymbol superInterface, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 674public static bool IsAtLeastAsVisibleAs(this TypeSymbol type, Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 698private static bool IsTypeLessVisibleThan(TypeSymbol type, Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1003internal static bool IsAsRestrictive(this Symbol s1, Symbol sym2, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1653AssemblySymbol assembly = containingType.ContainingAssembly; 1972var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Symbols\TypeWithAnnotations.cs (1)
430public bool IsAtLeastAsVisibleAs(Symbol sym, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\UpdatedContainingSymbolLocal.cs (1)
95internal override ReadOnlyBindingDiagnostic<AssemblySymbol> GetConstantValueDiagnostics(BoundExpression boundInitValue) =>
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
CodeGen\CodeGenTupleTest.cs (2)
13919Assert.NotSame(comp2.Assembly, (AssemblySymbol)comp3.GetAssemblyOrModuleSymbol(comp2CompilationRef)); // We are interested in retargeting scenario 14084Assert.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)
1063var referencedAssembly = comp.GetReferencedAssemblySymbol(reference); 1145var referencedAssembly = comp.GetReferencedAssemblySymbol(reference); 4017var assembly = compilation.Assembly; 4053var assembly = compilation.Assembly; 4083var assembly = compilation.Assembly; 4114var assembly = compilation.Assembly; 4145var assembly = compilation.Assembly; 4176var 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)
4428var assembly = ((Symbols.PublicModel.NonSourceAssemblySymbol)attribute.ContainingAssembly).UnderlyingAssemblySymbol;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (26)
Attributes\AttributeTests.cs (3)
8681var assembly = compilation.Assembly; 8724var assembly = compilation.Assembly; 8771var assembly = compilation.Assembly;
Attributes\AttributeTests_Assembly.cs (2)
477var naturalRef = m.ContainingAssembly.Modules[1].GetReferencedAssemblySymbols()[1]; 2134private static IEnumerable<CSharpAttributeData> GetAssemblyDescriptionAttributes(AssemblySymbol assembly)
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)
820private void AssertNoIsUnmanagedAttributeExists(AssemblySymbol assembly)
Attributes\AttributeTests_NativeInteger.cs (1)
1292var 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)
2802var assembly = module.ContainingAssembly;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\DelegateTypeTests.cs (1)
15728var useSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Semantics\NativeIntegerTests.cs (9)
785var corLibA = comp.Assembly.CorLibrary; 799var corLibB = comp.Assembly.CorLibrary; 814static void verifyField(FieldSymbol field, string expectedSymbol, AssemblySymbol expectedAssembly) 866var corLibA = comp.Assembly.CorLibrary; 909var corLibB = comp.Assembly.CorLibrary; 927static void verifyField(FieldSymbol field, string expectedSymbol, AssemblySymbol expectedAssembly) 981var corLibA = comp.Assembly.CorLibrary; 1026var corLibB = comp.Assembly.CorLibrary; 1034static void verifyField(FieldSymbol field, string expectedSymbol, AssemblySymbol expectedAssembly)
Semantics\OperatorTests.cs (1)
7385var discardedUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.Discarded;
Semantics\StructConstructorTests.cs (2)
3222var corLibA = comp.Assembly.CorLibrary; 3240var corLibB = comp.Assembly.CorLibrary;
Semantics\StructsTests.cs (2)
386var c1AsmRef = c2.GetReferencedAssemblySymbol(new CSharpCompilationReference(c1)); 390var mscorlibAssembly = c2.GetReferencedAssemblySymbol(MscorlibRef);
Semantics\UseSiteErrorTests.cs (2)
2761var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(s3.ContainingAssembly); 2778var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(s3.ContainingAssembly);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (350)
Compilation\CompilationAPITests.cs (3)
499var assemblySmb = comp.GetReferencedAssemblySymbol(ref1); 1196var smb = comp.GetReferencedAssemblySymbol(compRef1); 2351var 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)
1439var asm2 = new AssemblySymbol[] { asm2Prime[0], asm2Prime[2], asm2Prime[1] }; 1479var asm_MTTestLib3 = new AssemblySymbol[] { asm_MTTestLib3Prime[0], asm_MTTestLib3Prime[2], asm_MTTestLib3Prime[1] }; 1496var asm3 = new AssemblySymbol[] { asm3Prime[0], asm3Prime[2], asm3Prime[1], asm3Prime[3] }; 1565var asm_MTTestLib4 = new AssemblySymbol[] { asm_MTTestLib4Prime[0], asm_MTTestLib4Prime[2], asm_MTTestLib4Prime[1], asm_MTTestLib4Prime[3] }; 1584var asm4 = new AssemblySymbol[] { asm4Prime[0], asm4Prime[2], asm4Prime[1], asm4Prime[3], asm4Prime[4] }; 1730AssemblySymbol missingAssembly; 1821var asm10 = new AssemblySymbol[] { asm10Prime[0], asm10Prime[2], asm10Prime[1], asm10Prime[3], asm10Prime[4] }; 2978var sourceAssembly = lib2.Assembly; 2992var addedModuleAssembly = addedModule.ContainingAssembly;
Symbols\CorLibrary\CorTypes.cs (1)
32var 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)
34633foreach (var assembly in m.ReferencedAssemblySymbols)
Symbols\ExtensionMethodTests.cs (5)
2454var mscorlib = type.GetMember<FieldSymbol>("F").Type.ContainingAssembly; 2463var systemCore = type.GetMember<FieldSymbol>("G").Type.ContainingAssembly; 2468var assembly = type.ContainingAssembly; 2492AssemblySymbol sourceAssembly = null; 2495var assembly = module.ContainingAssembly;
Symbols\GenericConstraintTests.cs (1)
3925AssemblySymbol asm = i2.ContainingAssembly;
Symbols\Metadata\MetadataMemberTests.cs (5)
154var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 189var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 241var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 301var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 346var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib);
Symbols\Metadata\MetadataTypeTests.cs (6)
30var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 70var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 120var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 170var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 220var mscorNS = compilation.GetReferencedAssemblySymbol(mscorlib); 287var systemCoreNS = compilation2.GetReferencedAssemblySymbol(compilation1Lib);
Symbols\Metadata\PE\BaseTypeResolution.cs (4)
27var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.References.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)
378var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.Events);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (1)
23var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.References.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.References.mscorlib); 40var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.References.mscorlib); 125var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.References.mscorlib); 170var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.References.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)
24var assembly = MetadataTestHelpers.GetSymbolForReference( 292var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.Properties);
Symbols\Metadata\PE\MissingTypeReferences.cs (5)
25var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.MDTestLib2); 39private void TestMissingTypeReferencesHelper1(AssemblySymbol assembly) 121private void TestMissingTypeReferencesHelper2(AssemblySymbol[] assemblies, bool reflectionOnly = false) 284var asm1 = assemblies[0]; 307var 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.References.mscorlib);
Symbols\Metadata\PE\TypeForwarders.cs (23)
41private void TestTypeForwarderHelper(AssemblySymbol[] assemblies) 96var corlibAssembly = compilation.GetReferencedAssemblySymbol(Net40.References.mscorlib); 98var systemCoreAssembly = compilation.GetReferencedAssemblySymbol(Net40.References.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); 1470var assembly = module.ContainingAssembly; 1522private static IEnumerable<string> GetNamesOfForwardedTypes(AssemblySymbol assembly) 1742var assembly = module.ContainingAssembly;
Symbols\Metadata\PE\TypeKindTests.cs (2)
23var assembly = MetadataTestHelpers.GetSymbolForReference(Net40.References.mscorlib); 28private void TestTypeKindHelper(AssemblySymbol assembly)
Symbols\MockAssemblySymbol.cs (8)
58internal override ImmutableArray<AssemblySymbol> GetNoPiaResolutionAssemblies() 60return default(ImmutableArray<AssemblySymbol>); 63internal override ImmutableArray<AssemblySymbol> GetLinkedReferencedAssemblies() 65return default(ImmutableArray<AssemblySymbol>); 77internal override void SetLinkedReferencedAssemblies(ImmutableArray<AssemblySymbol> assemblies) 82internal override void SetNoPiaResolutionAssemblies(ImmutableArray<AssemblySymbol> assemblies) 87internal override bool AreInternalsVisibleToThisAssembly(AssemblySymbol other) 123internal override NamedTypeSymbol TryLookupForwardedMetadataTypeWithCycleDetection(ref MetadataTypeName emittedName, ConsList<AssemblySymbol> visitedAssemblies)
Symbols\MockNamedTypeSymbol.cs (1)
274internal sealed override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => ManagedKind.Managed;
Symbols\MockNamespaceSymbol.cs (1)
82public 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)
366var localTypes1_1 = assemblies1[0]; 367var localTypes2_1 = assemblies1[1]; 368var pia1_1 = assemblies1[2]; 408var localTypes1_2 = assemblies2[0]; 409var localTypes2_2 = assemblies2[1]; 436var localTypes1_3 = assemblies3[0]; 437var localTypes2_3 = assemblies3[1]; 438var pia1_3 = assemblies3[2]; 495var localTypes1_5 = assemblies5[0]; 496var localTypes2_5 = assemblies5[1]; 530var localTypes1_6 = assemblies6[0]; 531var localTypes2_6 = assemblies6[1]; 560var localTypes1_7 = assemblies7[0]; 561var localTypes2_7 = assemblies7[1]; 591var localTypes1_8 = assemblies8[0]; 592var localTypes2_8 = assemblies8[1]; 593var pia4_8 = assemblies8[2]; 594var pia1_8 = assemblies8[3]; 622var library1_9 = assemblies9[0]; 623var localTypes1_9 = assemblies9[1]; 633var library1_10 = assemblies10[0]; 634var localTypes1_10 = assemblies10[1]; 667var localTypes1_1 = assemblies1[0]; 668var localTypes2_1 = assemblies1[1]; 669var pia1_1 = assemblies1[2]; 709var localTypes1_2 = assemblies2[0]; 710var localTypes2_2 = assemblies2[1]; 737var localTypes1_3 = assemblies3[0]; 738var localTypes2_3 = assemblies3[1]; 739var pia1_3 = assemblies3[2]; 796var localTypes1_5 = assemblies5[0]; 797var localTypes2_5 = assemblies5[1]; 831var localTypes1_6 = assemblies6[0]; 832var localTypes2_6 = assemblies6[1]; 861var localTypes1_7 = assemblies7[0]; 862var localTypes2_7 = assemblies7[1]; 892var localTypes1_8 = assemblies8[0]; 893var localTypes2_8 = assemblies8[1]; 894var pia4_8 = assemblies8[2]; 895var pia1_8 = assemblies8[3]; 923var library1_9 = assemblies9[0]; 924var localTypes1_9 = assemblies9[1]; 934var library1_10 = assemblies10[0]; 935var localTypes1_10 = assemblies10[1]; 971var localTypes1_1 = assemblies1[0]; 972var localTypes2_1 = assemblies1[1]; 973var pia1_1 = assemblies1[2]; 1013var localTypes1_2 = assemblies2[0]; 1014var localTypes2_2 = assemblies2[1]; 1041var localTypes1_3 = assemblies3[0]; 1042var localTypes2_3 = assemblies3[1]; 1043var pia1_3 = assemblies3[2]; 1100var localTypes1_5 = assemblies5[0]; 1101var localTypes2_5 = assemblies5[1]; 1135var localTypes1_6 = assemblies6[0]; 1136var localTypes2_6 = assemblies6[1]; 1165var localTypes1_7 = assemblies7[0]; 1166var localTypes2_7 = assemblies7[1]; 1196var localTypes1_8 = assemblies8[0]; 1197var localTypes2_8 = assemblies8[1]; 1198var pia4_8 = assemblies8[2]; 1199var pia1_8 = assemblies8[3]; 1227var library1_9 = assemblies9[0]; 1228var localTypes1_9 = assemblies9[1]; 1238var library1_10 = assemblies10[0]; 1239var localTypes1_10 = assemblies10[1]; 1346var asmLocalTypes3 = assemblies[0]; 1899var asmLocalTypes3 = assemblies[0]; 1949var asmLocalTypes3 = assemblies[0];
Symbols\Retargeting\RetargetCustomAttributes.cs (5)
25public AssemblySymbol c1MscorLibAssemblyRef, c2MscorlibAssemblyRef; 72var c1Assembly = compilation1.Assembly; 77var c1AsmRef = compilation2.GetReferencedAssemblySymbol(c1); 180var c1AsmRef = test.c2.Compilation.GetReferencedAssemblySymbol(test.c1); 189var c1AsmRef = test.c2.Compilation.GetReferencedAssemblySymbol(test.c1);
Symbols\Retargeting\RetargetCustomModifiers.cs (5)
35var c1Assembly = c1.Assembly; 39var mscorlibAssembly = c2.GetReferencedAssemblySymbol(newMsCorLib); 149var c1Assembly = c1.Assembly; 153var c1AsmRef = c2.GetReferencedAssemblySymbol(r1); 157var 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) 771public static bool GivesAccessTo(this AssemblySymbol first, AssemblySymbol second) 889CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = default; 895private static void AddDiagnosticInfos(ref HashSet<DiagnosticInfo> useSiteDiagnostics, CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 912CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = default; 929CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = default; 961public static void Verify(this ReadOnlyBindingDiagnostic<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);