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