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