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
25 references to UseUpdatedMemorySafetyRules
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Unsafe.cs (2)
115if (this.Compilation.SourceModule.UseUpdatedMemorySafetyRules) 127if (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)
1810if (ContainingModule.UseUpdatedMemorySafetyRules) 1830return 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\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)
399Assert.Equal(updatedRulesA, comp.SourceModule.UseUpdatedMemorySafetyRules); 409Assert.Equal(updatedRulesB, comp.SourceModule.UseUpdatedMemorySafetyRules); 613Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 645Assert.Equal(correctVersion, a.Modules.Single().UseUpdatedMemorySafetyRules); 667Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 707Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 747Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules);