4 references to InUnsafeRegion
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Await.cs (1)
221if (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)
247else if (!this.InUnsafeRegion)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2272Assert.True(binder.InUnsafeRegion, "must be in unsafe code");