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