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