2 instantiations of SourceAssemblySymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ReferenceManager.cs (2)
305var assemblySymbol = new SourceAssemblySymbol(compilation, this.SimpleAssemblyName, moduleName, this.ReferencedModules); 436var assemblySymbol = new SourceAssemblySymbol(compilation, SimpleAssemblyName, compilation.MakeSourceModuleName(), netModules: modules);
71 references to SourceAssemblySymbol
Microsoft.CodeAnalysis.CSharp (71)
Binder\Binder_Attributes.cs (2)
577var containingAssembly = fieldSymbol.ContainingAssembly as SourceAssemblySymbol;
Compilation\CSharpCompilation.cs (4)
105/// The <see cref="SourceAssemblySymbol"/> for this compilation. Do not access directly, use Assembly property 110private SourceAssemblySymbol? _lazyAssemblySymbol; 1454internal SourceAssemblySymbol SourceAssembly 3539var sourceAssembly = SourceAssembly;
Compiler\ClsComplianceChecker.cs (1)
93System.Diagnostics.Debug.Assert(symbol is SourceAssemblySymbol);
Compiler\MethodCompiler.cs (2)
351SourceAssemblySymbol assembly = (SourceAssemblySymbol)compilation.Assembly;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (5)
27SourceAssemblySymbol sourceAssembly, 28SourceAssemblySymbol otherAssembly, 43SourceAssemblySymbol sourceAssembly, 107private readonly SourceAssemblySymbol _sourceAssembly; 132SourceAssemblySymbol sourceAssembly,
Emitter\EditAndContinue\EmitHelpers.cs (2)
56var sourceAssembly = compilation.SourceAssembly; 59var previousSourceAssembly = ((CSharpCompilation)baseline.Compilation).SourceAssembly;
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
48SourceAssemblySymbol sourceAssembly,
Emitter\Model\PEAssemblyBuilder.cs (3)
24private readonly SourceAssemblySymbol _sourceAssembly; 72SourceAssemblySymbol sourceAssembly, 758SourceAssemblySymbol sourceAssembly,
Emitter\Model\PEModuleBuilder.cs (3)
681SourceAssemblySymbol sourceAssembly = SourceModule.ContainingSourceAssembly; 703internal static HashSet<NamedTypeSymbol> GetForwardedTypes(SourceAssemblySymbol sourceAssembly, ArrayBuilder<Cci.ExportedType>? builder, EmitContext? context) 719var sourceAssembly = SourceModule.ContainingSourceAssembly;
Emitter\Model\SymbolAdapter.cs (2)
69(this.Kind == SymbolKind.Assembly && this is SourceAssemblySymbol) || 162if (((SourceAssemblySymbol)this).IsIndexOfOmittedAssemblyAttribute(i))
FlowAnalysis\DefiniteAssignment.cs (4)
127private readonly SourceAssemblySymbol? _sourceAssembly; 233private static SourceAssemblySymbol? GetSourceAssembly( 250return member.ContainingAssembly as SourceAssemblySymbol; 2604if (!(type.ContainingAssembly is SourceAssemblySymbol assembly))
FlowAnalysis\EmptyStructTypeCache.cs (2)
27private readonly SourceAssemblySymbol _sourceAssembly; 253private static bool IsAccessibleInAssembly(Symbol symbol, SourceAssemblySymbol assembly)
Symbols\AssemblySymbol.cs (2)
966Debug.Assert(this is SourceAssemblySymbol, 984Debug.Assert(!(this is SourceAssemblySymbol && assembly.IsMissing)); // Non-source assemblies can have missing references
Symbols\Attributes\AttributeData.cs (2)
672Debug.Assert(target is SourceAssemblySymbol || target.ContainingAssembly is SourceAssemblySymbol);
Symbols\Compilation_UsedAssemblies.cs (1)
163case SourceAssemblySymbol sourceAssembly:
Symbols\Metadata\PE\MetadataDecoder.cs (2)
388Debug.Assert(!(assembly is SourceAssemblySymbol) || !((SourceAssemblySymbol)assembly).SourceModule.MightContainNoPiaLocalTypes());
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
141internal PEModuleSymbol(SourceAssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal)
Symbols\MetadataOrSourceOrRetargetingAssemblySymbol.cs (2)
84(this is SourceAssemblySymbol { DeclaringCompilation.PreviousSubmission: { } } ? 1 : 0)); 116if (current is SourceAssemblySymbol { DeclaringCompilation.PreviousSubmission.Assembly: { } previous } &&
Symbols\MissingModuleSymbol.cs (1)
164internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly)
Symbols\ModuleSymbol.cs (1)
275internal abstract void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly = null);
Symbols\NonMissingModuleSymbol.cs (1)
154internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly = null)
Symbols\PublicModel\NonSourceAssemblySymbol.cs (1)
18Debug.Assert(!(underlying is Symbols.SourceAssemblySymbol));
Symbols\PublicModel\SourceAssemblySymbol.cs (2)
13private readonly Symbols.SourceAssemblySymbol _underlying; 15public SourceAssemblySymbol(Symbols.SourceAssemblySymbol underlying)
Symbols\ReferenceManager.cs (8)
143if (candidateAssembly is SourceAssemblySymbol) 305var assemblySymbol = new SourceAssemblySymbol(compilation, this.SimpleAssemblyName, moduleName, this.ReferencedModules); 436var assemblySymbol = new SourceAssemblySymbol(compilation, SimpleAssemblyName, compilation.MakeSourceModuleName(), netModules: modules); 538SourceAssemblySymbol sourceAssembly, 643SourceAssemblySymbol sourceAssemblyDebugOnly) 720SourceAssemblySymbol sourceAssemblyDebugOnly) 760SourceAssemblySymbol sourceAssembly, 1159asm = candidateAssembly as SourceAssemblySymbol;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (4)
46private readonly SourceAssemblySymbol _underlyingAssembly; 102public RetargetingAssemblySymbol(SourceAssemblySymbol underlyingAssembly, bool isLinked) 131/// The underlying <see cref="SourceAssemblySymbol"/>. 133public SourceAssemblySymbol UnderlyingAssembly
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
188internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
761var assembly = (SourceAssemblySymbol)ContainingAssembly;
Symbols\Source\SourceModuleSymbol.cs (7)
32private readonly SourceAssemblySymbol _assemblySymbol; 54SourceAssemblySymbol assemblySymbol, 476internal SourceAssemblySymbol ContainingSourceAssembly 539var mergedAttributes = ((SourceAssemblySymbol)this.ContainingAssembly).GetAttributeDeclarations(); 702CommonAssemblyWellKnownAttributeData<NamedTypeSymbol> decodedData = ((SourceAssemblySymbol)this.ContainingAssembly).GetSourceDecodedWellKnownAttributeData(); 711CommonAssemblyWellKnownAttributeData<NamedTypeSymbol> decodedData = ((SourceAssemblySymbol)this.ContainingAssembly).GetSourceDecodedWellKnownAttributeData(); 775var attributesDeclarations = ((SourceAssemblySymbol)ContainingAssembly).GetAttributeDeclarations();
Symbols\Symbol.cs (1)
202Debug.Assert(!(this is SourceAssemblySymbol), "SourceAssemblySymbol must override DeclaringCompilation");
Symbols\Symbol_Attributes.cs (1)
452this is SourceAssemblySymbol &&