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
27 references to UseUpdatedMemorySafetyRules
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Flags.cs (1)
112return !withoutUnsafe && modifiers.Any(SyntaxKind.UnsafeKeyword) && !this.Compilation.SourceModule.UseUpdatedMemorySafetyRules
Binder\Binder_Unsafe.cs (5)
47var useUpdatedMemorySafetyRules = this.Compilation.SourceModule.UseUpdatedMemorySafetyRules; 113Debug.Assert(this.Compilation.SourceModule.UseUpdatedMemorySafetyRules || callerUnsafeMode == CallerUnsafeMode.Implicit); 172Compilation.SourceModule.UseUpdatedMemorySafetyRules && 288if (this.Compilation.SourceModule.UseUpdatedMemorySafetyRules) 308if (this.Compilation.SourceModule.UseUpdatedMemorySafetyRules)
Symbols\CallerUnsafeMode.cs (1)
26/// The member is explicitly marked as <see langword="unsafe"/> under the updated memory safety rules (<see cref="ModuleSymbol.UseUpdatedMemorySafetyRules"/>).
Symbols\Metadata\PE\PEEventSymbol.cs (2)
568return ContainingModule.UseUpdatedMemorySafetyRules 581return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEFieldSymbol.cs (2)
763return ContainingModule.UseUpdatedMemorySafetyRules 776return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1828if (ContainingModule.UseUpdatedMemorySafetyRules) 1846return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
681return ContainingModule.UseUpdatedMemorySafetyRules 694return ContainingModule.UseUpdatedMemorySafetyRules
Symbols\Source\LocalFunctionSymbol.cs (1)
136if (ContainingModule.UseUpdatedMemorySafetyRules && IsExtern && !HasUnsafeModifier && !HasSafeModifier)
Symbols\Source\SourceEventSymbol.cs (2)
483if (ContainingModule.UseUpdatedMemorySafetyRules) 888if (ContainingModule.UseUpdatedMemorySafetyRules && IsExtern && !HasUnsafeModifier && !HasSafeModifier)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
392this.ContainingModule.UseUpdatedMemorySafetyRules) 965internal bool IntroducesUnsafeContext => HasUnsafeModifier && !ContainingModule.UseUpdatedMemorySafetyRules;
Symbols\Source\SourceMemberFieldSymbol.cs (1)
195if (ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
998if (ContainingModule.UseUpdatedMemorySafetyRules && AssociatedSymbol is null && IsExtern && !HasUnsafeModifier && !HasSafeModifier)
Symbols\Source\SourceMethodSymbol.cs (2)
116&& !ContainingModule.UseUpdatedMemorySafetyRules; 128if (ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
2124bool fieldsNeedSafeOrUnsafe = ContainingModule.UseUpdatedMemorySafetyRules && hasExplicitOrExtendedLayout;
Symbols\Source\SourcePropertySymbol.cs (1)
832if (ContainingModule.UseUpdatedMemorySafetyRules)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1054if (ContainingModule.UseUpdatedMemorySafetyRules && IsExtern && !HasUnsafeModifier && !HasSafeModifier)