87 references to SourceAssemblySymbol
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder_Attributes.cs (2)
569var containingAssembly = fieldSymbol.ContainingAssembly as SourceAssemblySymbol;
Compilation\CSharpCompilation.cs (4)
104/// The <see cref="SourceAssemblySymbol"/> for this compilation. Do not access directly, use Assembly property 109private SourceAssemblySymbol? _lazyAssemblySymbol; 1371internal SourceAssemblySymbol SourceAssembly 3343var sourceAssembly = SourceAssembly;
Compiler\ClsComplianceChecker.cs (1)
93System.Diagnostics.Debug.Assert(symbol is SourceAssemblySymbol);
Compiler\MethodCompiler.cs (2)
344SourceAssemblySymbol assembly = (SourceAssemblySymbol)compilation.Assembly;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (5)
29SourceAssemblySymbol sourceAssembly, 30SourceAssemblySymbol otherAssembly, 40SourceAssemblySymbol sourceAssembly, 92private readonly SourceAssemblySymbol _sourceAssembly; 117SourceAssemblySymbol sourceAssembly,
Emitter\EditAndContinue\EmitHelpers.cs (3)
56var sourceAssembly = compilation.SourceAssembly; 59var previousSourceAssembly = ((CSharpCompilation)baseline.Compilation).SourceAssembly; 211var previousSourceAssembly = ((CSharpCompilation)previousGeneration.Compilation).SourceAssembly;
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
47SourceAssemblySymbol sourceAssembly,
Emitter\Model\PEAssemblyBuilder.cs (3)
23private readonly SourceAssemblySymbol _sourceAssembly; 68SourceAssemblySymbol sourceAssembly, 632SourceAssemblySymbol sourceAssembly,
Emitter\Model\PEModuleBuilder.cs (2)
633SourceAssemblySymbol sourceAssembly = SourceModule.ContainingSourceAssembly; 655internal static HashSet<NamedTypeSymbol> GetForwardedTypes(SourceAssemblySymbol sourceAssembly, ArrayBuilder<Cci.ExportedType>? builder)
Emitter\Model\SymbolAdapter.cs (2)
68(this.Kind == SymbolKind.Assembly && this is SourceAssemblySymbol) || 156if (((SourceAssemblySymbol)this).IsIndexOfOmittedAssemblyAttribute(i))
FlowAnalysis\DefiniteAssignment.cs (4)
126private readonly SourceAssemblySymbol? _sourceAssembly; 232private static SourceAssemblySymbol? GetSourceAssembly( 249return member.ContainingAssembly as SourceAssemblySymbol; 2645if (!(type.ContainingAssembly is SourceAssemblySymbol assembly))
FlowAnalysis\EmptyStructTypeCache.cs (2)
26private readonly SourceAssemblySymbol _sourceAssembly; 252private static bool IsAccessibleInAssembly(Symbol symbol, SourceAssemblySymbol assembly)
Symbols\AssemblySymbol.cs (2)
940Debug.Assert(this is SourceAssemblySymbol, 958Debug.Assert(!(this is SourceAssemblySymbol && assembly.IsMissing)); // Non-source assemblies can have missing references
Symbols\Attributes\AttributeData.cs (2)
674Debug.Assert(target is SourceAssemblySymbol || target.ContainingAssembly is SourceAssemblySymbol);
Symbols\Compilation_UsedAssemblies.cs (1)
164case SourceAssemblySymbol sourceAssembly:
Symbols\Metadata\PE\MetadataDecoder.cs (2)
388Debug.Assert(!(assembly is SourceAssemblySymbol) || !((SourceAssemblySymbol)assembly).SourceModule.MightContainNoPiaLocalTypes());
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
131internal PEModuleSymbol(SourceAssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal)
Symbols\MissingModuleSymbol.cs (1)
163internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly)
Symbols\ModuleSymbol.cs (1)
273internal 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)
144if (candidateAssembly is SourceAssemblySymbol) 306var assemblySymbol = new SourceAssemblySymbol(compilation, this.SimpleAssemblyName, moduleName, this.ReferencedModules); 437var assemblySymbol = new SourceAssemblySymbol(compilation, SimpleAssemblyName, compilation.MakeSourceModuleName(), netModules: modules); 539SourceAssemblySymbol sourceAssembly, 644SourceAssemblySymbol sourceAssemblyDebugOnly) 721SourceAssemblySymbol sourceAssemblyDebugOnly) 761SourceAssemblySymbol sourceAssembly, 1160asm = 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)
715var assembly = (SourceAssemblySymbol)ContainingAssembly;
Symbols\Source\SourceModuleSymbol.cs (7)
31private readonly SourceAssemblySymbol _assemblySymbol; 53SourceAssemblySymbol assemblySymbol, 447internal SourceAssemblySymbol ContainingSourceAssembly 510var mergedAttributes = ((SourceAssemblySymbol)this.ContainingAssembly).GetAttributeDeclarations(); 657CommonAssemblyWellKnownAttributeData<NamedTypeSymbol> decodedData = ((SourceAssemblySymbol)this.ContainingAssembly).GetSourceDecodedWellKnownAttributeData(); 666CommonAssemblyWellKnownAttributeData<NamedTypeSymbol> decodedData = ((SourceAssemblySymbol)this.ContainingAssembly).GetSourceDecodedWellKnownAttributeData(); 720var attributesDeclarations = ((SourceAssemblySymbol)ContainingAssembly).GetAttributeDeclarations();
Symbols\Symbol.cs (1)
204Debug.Assert(!(this is SourceAssemblySymbol), "SourceAssemblySymbol must override DeclaringCompilation");
Symbols\Symbol_Attributes.cs (1)
447this is SourceAssemblySymbol &&
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests.cs (1)
326/// Looking up C explicitly after calling GetAttributes will cause <see cref="SourceAssemblySymbol.GetForwardedTypes"/> to use the cached attributes, rather that do partial binding
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Compilation\ReferenceManagerTests.cs (4)
1338var a1 = c1.SourceAssembly; 1342var a2 = c2.SourceAssembly; 1454var assembly1 = withCircularReference1.SourceAssembly; 1457var assembly2 = withCircularReference2.SourceAssembly;
DocumentationComments\DocumentationCommentIDTests.cs (1)
62var symbol = comp.SourceAssembly;
Symbols\SymbolDistinguisherTests.cs (12)
38var sourceAssembly = comp.SourceAssembly; 80var sourceAssembly = comp.SourceAssembly; 101var sourceAssembly = comp.SourceAssembly; 120var sourceAssembly = comp.SourceAssembly; 142var sourceAssembly = comp.SourceAssembly; 161var sourceAssembly = comp.SourceAssembly; 185var sourceAssembly = comp.SourceAssembly; 211var sourceAssembly = comp.SourceAssembly; 236var sourceAssembly = comp.SourceAssembly; 261var sourceAssembly = comp.SourceAssembly; 283var sourceAssembly = comp.SourceAssembly; 300var sourceAssembly = comp.SourceAssembly;