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