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_Conversions.cs (1)
3111if (Compilation.SourceModule.UseUpdatedMemorySafetyRules &&
Binder\Binder_Flags.cs (1)
112return !withoutUnsafe && modifiers.Any(SyntaxKind.UnsafeKeyword) && (isFieldDeclaration || !this.Compilation.SourceModule.UseUpdatedMemorySafetyRules)
Binder\Binder_Unsafe.cs (4)
41if (!this.Compilation.SourceModule.UseUpdatedMemorySafetyRules) 105Debug.Assert(this.Compilation.SourceModule.UseUpdatedMemorySafetyRules); 264if (this.Compilation.SourceModule.UseUpdatedMemorySafetyRules) 284if (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)
568return ContainingModule.UseUpdatedMemorySafetyRules 583return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1820if (ContainingModule.UseUpdatedMemorySafetyRules) 1840return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
681return ContainingModule.UseUpdatedMemorySafetyRules 696return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Source\SourceEventSymbol.cs (1)
473if (ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
380this.ContainingModule.UseUpdatedMemorySafetyRules) 887internal bool IntroducesUnsafeContext => HasUnsafeModifier && !ContainingModule.UseUpdatedMemorySafetyRules;
Symbols\Source\SourceMethodSymbol.cs (2)
102internal bool IntroducesUnsafeContext => HasUnsafeModifier && !ContainingModule.UseUpdatedMemorySafetyRules; 114if (ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourcePropertySymbol.cs (1)
829if (ContainingModule.UseUpdatedMemorySafetyRules)
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (7)
UnsafeEvolutionTests.cs (7)
463Assert.Equal(updatedRulesA, comp.SourceModule.UseUpdatedMemorySafetyRules); 473Assert.Equal(updatedRulesB, comp.SourceModule.UseUpdatedMemorySafetyRules); 680Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 712Assert.Equal(correctVersion, a.Modules.Single().UseUpdatedMemorySafetyRules); 734Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 774Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules); 814Assert.False(method.ContainingModule.UseUpdatedMemorySafetyRules);