1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceAssemblySymbol.cs (1)
126
_compilation
= compilation;
65 references to _compilation
Microsoft.CodeAnalysis.CSharp (65)
Symbols\Source\SourceAssemblySymbol.cs (65)
167
return
_compilation
;
175
return
_compilation
.IsSubmission;
212
return
_compilation
.IsMemberMissing(member) ? null : base.GetSpecialTypeMember(member);
482
string keyFile =
_compilation
.Options.CryptoKeyFile;
514
string keyContainer =
_compilation
.Options.CryptoKeyContainer;
585
if (StrongNameKeys.DiagnosticOpt != null && !
_compilation
.Options.OutputKind.IsNetModule())
603
if (
_compilation
.Options.OutputKind.IsNetModule())
630
ReportDiagnosticsForSynthesizedAttributes(
_compilation
, diagnostics);
771
if (
_compilation
.Options.DelaySign.HasValue && (assemblyDelaySignAttributeSetting != ThreeState.Unknown) &&
777
if (
_compilation
.Options.PublicSign && assemblyDelaySignAttributeSetting == ThreeState.True)
780
nameof(
_compilation
.Options.PublicSign),
784
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyContainer))
790
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
794
Binder.ReportUseSiteDiagnosticForSynthesizedAttribute(
_compilation
,
800
else if (String.Compare(
_compilation
.Options.CryptoKeyContainer, assemblyKeyContainerAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0)
813
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
824
if (
_compilation
.Options.PublicSign &&
825
!
_compilation
.Options.OutputKind.IsNetModule() &&
831
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyFile))
837
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
841
Binder.ReportUseSiteDiagnosticForSynthesizedAttribute(
_compilation
,
847
else if (String.Compare(
_compilation
.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0)
850
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
861
if (
_compilation
.Options.PublicSign &&
862
!
_compilation
.Options.OutputKind.IsNetModule() &&
874
if (
_compilation
.Options.DelaySign.HasValue)
876
return
_compilation
.Options.DelaySign.Value;
880
if (
_compilation
.Options.PublicSign)
970
foreach (var pair in
_compilation
.GetBoundReferenceManager().ReferencedModuleIndexMap)
988
if (_modules.Length > 1 && !
_compilation
.Options.OutputKind.IsNetModule())
1364
if (
_compilation
.Options.OutputKind.IsNetModule())
1464
if (
_compilation
.Options.OutputKind.IsNetModule())
1815
if (
_compilation
.Options.AllowUnsafe)
1818
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Security_UnverifiableCodeAttribute) is MissingMetadataTypeSymbol) &&
1819
!(
_compilation
.GetWellKnownType(WellKnownType.System_Security_Permissions_SecurityPermissionAttribute) is MissingMetadataTypeSymbol))
1821
var securityActionType =
_compilation
.GetWellKnownType(WellKnownType.System_Security_Permissions_SecurityAction);
1824
var fieldRequestMinimum = (FieldSymbol)
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_Security_Permissions_SecurityAction__RequestMinimum);
1830
var boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1836
var attribute =
_compilation
.TrySynthesizeAttribute(
1942
CSharpCompilationOptions options =
_compilation
.Options;
1950
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
1966
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_CompilationRelaxationsAttribute) is MissingMetadataTypeSymbol))
1968
var int32Type =
_compilation
.GetSpecialType(SpecialType.System_Int32);
1974
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
1986
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_RuntimeCompatibilityAttribute) is MissingMetadataTypeSymbol))
1988
var boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1993
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
2011
AddSynthesizedAttribute(ref attributes,
_compilation
.SynthesizeDebuggableAttribute());
2014
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
2019
if (!string.IsNullOrEmpty(
_compilation
.Options.CryptoKeyContainer) &&
2022
var stringType =
_compilation
.GetSpecialType(SpecialType.System_String);
2025
var typedConstant = new TypedConstant(stringType, TypedConstantKind.Primitive,
_compilation
.Options.CryptoKeyContainer);
2026
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyNameAttribute__ctor, ImmutableArray.Create(typedConstant)));
2029
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyFile) &&
2032
var stringType =
_compilation
.GetSpecialType(SpecialType.System_String);
2035
var typedConstant = new TypedConstant(stringType, TypedConstantKind.Primitive,
_compilation
.Options.CryptoKeyFile);
2036
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyFileAttribute__ctor, ImmutableArray.Create(typedConstant)));
2182
VersionHelper.GenerateVersionFromPatternAndCurrentTime(
_compilation
.Options.CurrentLocalTime, AssemblyVersionAttributeSetting),
2400
if (!VersionHelper.TryParseAssemblyVersion(verString, allowWildcard: !
_compilation
.IsEmitDeterministic, version: out version))
2403
bool foundBadWildcard =
_compilation
.IsEmitDeterministic && verString?.Contains('*') == true;
2434
if (
_compilation
.Options.OutputKind.IsApplication())
2494
else if (attribute.IsSecurityAttribute(
_compilation
))
2496
attribute.DecodeSecurityAttribute<CommonAssemblyWellKnownAttributeData>(this,
_compilation
, ref arguments);
2659
internal override bool IsNetModule() => this.
_compilation
.Options.OutputKind.IsNetModule();
2865
else if (!
_compilation
.Options.OutputKind.IsNetModule())