5 references to InUnsafeRegion
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Await.cs (1)
205if (this.InUnsafeRegion && !this.Flags.Includes(BinderFlags.AllowAwaitInUnsafeContext))
Binder\Binder_Statements.cs (1)
270else if (InUnsafeRegion && Compilation.IsFeatureEnabled(MessageID.IDS_FeatureRefUnsafeInIteratorAsync))
Binder\Binder_Unsafe.cs (1)
59else if (!this.InUnsafeRegion)
Symbols\Source\SourceMemberFieldSymbol.cs (1)
592if (!binder.InUnsafeRegion)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2272Assert.True(binder.InUnsafeRegion, "must be in unsafe code");