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)
750
internal override bool
UseUpdatedMemorySafetyRules
26 references to UseUpdatedMemorySafetyRules
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Conversions.cs (1)
3110
if (Compilation.SourceModule.
UseUpdatedMemorySafetyRules
&&
Binder\Binder_Flags.cs (1)
112
return !withoutUnsafe && modifiers.Any(SyntaxKind.UnsafeKeyword) && !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\PEFieldSymbol.cs (2)
763
return ContainingModule.
UseUpdatedMemorySafetyRules
778
return ContainingModule.
UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1828
if (ContainingModule.
UseUpdatedMemorySafetyRules
)
1848
return ContainingModule.
UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
681
return ContainingModule.
UseUpdatedMemorySafetyRules
696
return ContainingModule.
UseUpdatedMemorySafetyRules
Symbols\Source\LocalFunctionSymbol.cs (1)
136
if (ContainingModule.
UseUpdatedMemorySafetyRules
&& IsExtern && !HasUnsafeModifier && !HasSafeModifier)
Symbols\Source\SourceEventSymbol.cs (2)
484
if (ContainingModule.
UseUpdatedMemorySafetyRules
)
890
if (ContainingModule.
UseUpdatedMemorySafetyRules
&& IsExtern && !HasUnsafeModifier && !HasSafeModifier)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
392
this.ContainingModule.
UseUpdatedMemorySafetyRules
)
965
internal bool IntroducesUnsafeContext => HasUnsafeModifier && !ContainingModule.
UseUpdatedMemorySafetyRules
;
Symbols\Source\SourceMemberFieldSymbol.cs (1)
197
if (ContainingModule.
UseUpdatedMemorySafetyRules
)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
998
if (ContainingModule.
UseUpdatedMemorySafetyRules
&& AssociatedSymbol is null && IsExtern && !HasUnsafeModifier && !HasSafeModifier)
Symbols\Source\SourceMethodSymbol.cs (2)
115
&& !ContainingModule.
UseUpdatedMemorySafetyRules
;
129
if (ContainingModule.
UseUpdatedMemorySafetyRules
)
Symbols\Source\SourcePropertySymbol.cs (1)
834
if (ContainingModule.
UseUpdatedMemorySafetyRules
)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1053
if (ContainingModule.
UseUpdatedMemorySafetyRules
&& IsExtern && !HasUnsafeModifier && !HasSafeModifier)