1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceAssemblySymbol.cs (1)
127
_compilation
= compilation;
65 references to _compilation
Microsoft.CodeAnalysis.CSharp (65)
Symbols\Source\SourceAssemblySymbol.cs (65)
168
return
_compilation
;
176
return
_compilation
.IsSubmission;
213
return
_compilation
.IsMemberMissing(member) ? null : base.GetSpecialTypeMember(member);
483
string keyFile =
_compilation
.Options.CryptoKeyFile;
515
string keyContainer =
_compilation
.Options.CryptoKeyContainer;
586
if (StrongNameKeys.DiagnosticOpt != null && !
_compilation
.Options.OutputKind.IsNetModule())
604
if (
_compilation
.Options.OutputKind.IsNetModule())
631
ReportDiagnosticsForSynthesizedAttributes(
_compilation
, diagnostics);
772
if (
_compilation
.Options.DelaySign.HasValue && (assemblyDelaySignAttributeSetting != ThreeState.Unknown) &&
778
if (
_compilation
.Options.PublicSign && assemblyDelaySignAttributeSetting == ThreeState.True)
781
nameof(
_compilation
.Options.PublicSign),
785
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyContainer))
791
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
795
Binder.ReportUseSiteDiagnosticForSynthesizedAttribute(
_compilation
,
801
else if (String.Compare(
_compilation
.Options.CryptoKeyContainer, assemblyKeyContainerAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0)
814
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
825
if (
_compilation
.Options.PublicSign &&
826
!
_compilation
.Options.OutputKind.IsNetModule() &&
832
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyFile))
838
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
842
Binder.ReportUseSiteDiagnosticForSynthesizedAttribute(
_compilation
,
848
else if (String.Compare(
_compilation
.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0)
851
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
862
if (
_compilation
.Options.PublicSign &&
863
!
_compilation
.Options.OutputKind.IsNetModule() &&
875
if (
_compilation
.Options.DelaySign.HasValue)
877
return
_compilation
.Options.DelaySign.Value;
881
if (
_compilation
.Options.PublicSign)
971
foreach (var pair in
_compilation
.GetBoundReferenceManager().ReferencedModuleIndexMap)
989
if (_modules.Length > 1 && !
_compilation
.Options.OutputKind.IsNetModule())
1365
if (
_compilation
.Options.OutputKind.IsNetModule())
1465
if (
_compilation
.Options.OutputKind.IsNetModule())
1816
if (
_compilation
.Options.AllowUnsafe)
1819
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Security_UnverifiableCodeAttribute) is MissingMetadataTypeSymbol) &&
1820
!(
_compilation
.GetWellKnownType(WellKnownType.System_Security_Permissions_SecurityPermissionAttribute) is MissingMetadataTypeSymbol))
1822
var securityActionType =
_compilation
.GetWellKnownType(WellKnownType.System_Security_Permissions_SecurityAction);
1825
var fieldRequestMinimum = (FieldSymbol)
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_Security_Permissions_SecurityAction__RequestMinimum);
1831
var boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1837
var attribute =
_compilation
.TrySynthesizeAttribute(
1943
CSharpCompilationOptions options =
_compilation
.Options;
1951
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
1967
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_CompilationRelaxationsAttribute) is MissingMetadataTypeSymbol))
1969
var int32Type =
_compilation
.GetSpecialType(SpecialType.System_Int32);
1975
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
1987
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_RuntimeCompatibilityAttribute) is MissingMetadataTypeSymbol))
1989
var boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1994
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
2012
AddSynthesizedAttribute(ref attributes,
_compilation
.SynthesizeDebuggableAttribute());
2015
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
2020
if (!string.IsNullOrEmpty(
_compilation
.Options.CryptoKeyContainer) &&
2023
var stringType =
_compilation
.GetSpecialType(SpecialType.System_String);
2026
var typedConstant = new TypedConstant(stringType, TypedConstantKind.Primitive,
_compilation
.Options.CryptoKeyContainer);
2027
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyNameAttribute__ctor, ImmutableArray.Create(typedConstant)));
2030
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyFile) &&
2033
var stringType =
_compilation
.GetSpecialType(SpecialType.System_String);
2036
var typedConstant = new TypedConstant(stringType, TypedConstantKind.Primitive,
_compilation
.Options.CryptoKeyFile);
2037
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyFileAttribute__ctor, ImmutableArray.Create(typedConstant)));
2183
VersionHelper.GenerateVersionFromPatternAndCurrentTime(
_compilation
.Options.CurrentLocalTime, AssemblyVersionAttributeSetting),
2401
if (!VersionHelper.TryParseAssemblyVersion(verString, allowWildcard: !
_compilation
.IsEmitDeterministic, version: out version))
2404
bool foundBadWildcard =
_compilation
.IsEmitDeterministic && verString?.Contains('*') == true;
2435
if (
_compilation
.Options.OutputKind.IsApplication())
2495
else if (attribute.IsSecurityAttribute(
_compilation
))
2497
attribute.DecodeSecurityAttribute<CommonAssemblyWellKnownAttributeData>(this,
_compilation
, ref arguments);
2660
internal override bool IsNetModule() => this.
_compilation
.Options.OutputKind.IsNetModule();
2866
else if (!
_compilation
.Options.OutputKind.IsNetModule())