4 overrides of UseUpdatedMemorySafetyRules
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
760internal override bool UseUpdatedMemorySafetyRules
Symbols\MissingModuleSymbol.cs (1)
203internal sealed override bool UseUpdatedMemorySafetyRules => false;
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
322internal override bool UseUpdatedMemorySafetyRules => _underlyingModule.UseUpdatedMemorySafetyRules;
Symbols\Source\SourceModuleSymbol.cs (1)
744internal override bool UseUpdatedMemorySafetyRules
26 references to UseUpdatedMemorySafetyRules
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Unsafe.cs (2)
253if (this.Compilation.SourceModule.UseUpdatedMemorySafetyRules) 265if (this.Compilation.SourceModule.UseUpdatedMemorySafetyRules)
Symbols\CallerUnsafeMode.cs (1)
10/// Member safety under updated memory safety rules (<see cref="ModuleSymbol.UseUpdatedMemorySafetyRules"/>).
Symbols\Metadata\PE\PEEventSymbol.cs (2)
567return ContainingModule.UseUpdatedMemorySafetyRules 582return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1819if (ContainingModule.UseUpdatedMemorySafetyRules) 1839return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
681return ContainingModule.UseUpdatedMemorySafetyRules 696return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Source\SourceEventSymbol.cs (3)
374if (ContainingModule.UseUpdatedMemorySafetyRules) MessageID.IDS_FeatureUnsafeEvolution.CheckFeatureAvailability(diagnostics, arguments.AttributeSyntaxOpt!); 477if (ContainingModule.UseUpdatedMemorySafetyRules) 493return ContainingModule.UseUpdatedMemorySafetyRules &&
Symbols\Source\SourceMemberContainerSymbol.cs (1)
381this.ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourceMethodSymbol.cs (2)
108if (ContainingModule.UseUpdatedMemorySafetyRules) 126return ContainingModule.UseUpdatedMemorySafetyRules &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
644if (ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourcePropertySymbol.cs (1)
834if (ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourcePropertySymbolBase.cs (2)
1387return ContainingModule.UseUpdatedMemorySafetyRules && 1651if (ContainingModule.UseUpdatedMemorySafetyRules) MessageID.IDS_FeatureUnsafeEvolution.CheckFeatureAvailability(diagnostics, arguments.AttributeSyntaxOpt);
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (7)
UnsafeEvolutionTests.cs (7)
401Assert.Equal(updatedRulesA, comp.SourceModule.UseUpdatedMemorySafetyRules); 411Assert.Equal(updatedRulesB, comp.SourceModule.UseUpdatedMemorySafetyRules); 618Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 650Assert.Equal(correctVersion, a.Modules.Single().UseUpdatedMemorySafetyRules); 672Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 712Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 752Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules);