1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceAssemblySymbol.cs (1)
128
_compilation
= compilation;
65 references to _compilation
Microsoft.CodeAnalysis.CSharp (65)
Symbols\Source\SourceAssemblySymbol.cs (65)
169
return
_compilation
;
177
return
_compilation
.IsSubmission;
208
return
_compilation
.IsMemberMissing(member) ? null : base.GetSpecialTypeMember(member);
478
string keyFile =
_compilation
.Options.CryptoKeyFile;
510
string keyContainer =
_compilation
.Options.CryptoKeyContainer;
581
if (StrongNameKeys.DiagnosticOpt != null && !
_compilation
.Options.OutputKind.IsNetModule())
599
if (
_compilation
.Options.OutputKind.IsNetModule())
626
ReportDiagnosticsForSynthesizedAttributes(
_compilation
, diagnostics);
767
if (
_compilation
.Options.DelaySign.HasValue && (assemblyDelaySignAttributeSetting != ThreeState.Unknown) &&
773
if (
_compilation
.Options.PublicSign && assemblyDelaySignAttributeSetting == ThreeState.True)
776
nameof(
_compilation
.Options.PublicSign),
780
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyContainer))
786
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
790
Binder.ReportUseSiteDiagnosticForSynthesizedAttribute(
_compilation
,
796
else if (String.Compare(
_compilation
.Options.CryptoKeyContainer, assemblyKeyContainerAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0)
809
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
820
if (
_compilation
.Options.PublicSign &&
821
!
_compilation
.Options.OutputKind.IsNetModule() &&
827
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyFile))
833
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
837
Binder.ReportUseSiteDiagnosticForSynthesizedAttribute(
_compilation
,
843
else if (String.Compare(
_compilation
.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0)
846
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
857
if (
_compilation
.Options.PublicSign &&
858
!
_compilation
.Options.OutputKind.IsNetModule() &&
870
if (
_compilation
.Options.DelaySign.HasValue)
872
return
_compilation
.Options.DelaySign.Value;
876
if (
_compilation
.Options.PublicSign)
964
foreach (var pair in
_compilation
.GetBoundReferenceManager().ReferencedModuleIndexMap)
982
if (_modules.Length > 1 && !
_compilation
.Options.OutputKind.IsNetModule())
1355
if (
_compilation
.Options.OutputKind.IsNetModule())
1455
if (
_compilation
.Options.OutputKind.IsNetModule())
1806
if (
_compilation
.Options.AllowUnsafe)
1809
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Security_UnverifiableCodeAttribute) is MissingMetadataTypeSymbol) &&
1810
!(
_compilation
.GetWellKnownType(WellKnownType.System_Security_Permissions_SecurityPermissionAttribute) is MissingMetadataTypeSymbol))
1812
var securityActionType =
_compilation
.GetWellKnownType(WellKnownType.System_Security_Permissions_SecurityAction);
1815
var fieldRequestMinimum = (FieldSymbol)
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_Security_Permissions_SecurityAction__RequestMinimum);
1821
var boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1827
var attribute =
_compilation
.TrySynthesizeAttribute(
1927
CSharpCompilationOptions options =
_compilation
.Options;
1935
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
1951
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_CompilationRelaxationsAttribute) is MissingMetadataTypeSymbol))
1953
var int32Type =
_compilation
.GetSpecialType(SpecialType.System_Int32);
1959
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
1971
if (!(
_compilation
.GetWellKnownType(WellKnownType.System_Runtime_CompilerServices_RuntimeCompatibilityAttribute) is MissingMetadataTypeSymbol))
1973
var boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1978
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(
1996
AddSynthesizedAttribute(ref attributes,
_compilation
.SynthesizeDebuggableAttribute());
1999
if (
_compilation
.Options.OutputKind == OutputKind.NetModule)
2004
if (!string.IsNullOrEmpty(
_compilation
.Options.CryptoKeyContainer) &&
2007
var stringType =
_compilation
.GetSpecialType(SpecialType.System_String);
2010
var typedConstant = new TypedConstant(stringType, TypedConstantKind.Primitive,
_compilation
.Options.CryptoKeyContainer);
2011
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyNameAttribute__ctor, ImmutableArray.Create(typedConstant)));
2014
if (!String.IsNullOrEmpty(
_compilation
.Options.CryptoKeyFile) &&
2017
var stringType =
_compilation
.GetSpecialType(SpecialType.System_String);
2020
var typedConstant = new TypedConstant(stringType, TypedConstantKind.Primitive,
_compilation
.Options.CryptoKeyFile);
2021
AddSynthesizedAttribute(ref attributes,
_compilation
.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyFileAttribute__ctor, ImmutableArray.Create(typedConstant)));
2157
VersionHelper.GenerateVersionFromPatternAndCurrentTime(
_compilation
.Options.CurrentLocalTime, AssemblyVersionAttributeSetting),
2375
if (!VersionHelper.TryParseAssemblyVersion(verString, allowWildcard: !
_compilation
.IsEmitDeterministic, version: out version))
2378
bool foundBadWildcard =
_compilation
.IsEmitDeterministic && verString?.Contains('*') == true;
2409
if (
_compilation
.Options.OutputKind.IsApplication())
2470
else if (attribute.IsSecurityAttribute(
_compilation
))
2472
attribute.DecodeSecurityAttribute<CommonAssemblyWellKnownAttributeData>(this,
_compilation
, ref arguments);
2616
internal override bool IsNetModule() => this.
_compilation
.Options.OutputKind.IsNetModule();
2818
else if (!
_compilation
.Options.OutputKind.IsNetModule())