3 references to IntroducesUnsafeContext
Microsoft.CodeAnalysis.CSharp (3)
Binder\ExecutableCodeBinder.cs (1)
134if ((iterator as SourceMethodSymbol)?.IntroducesUnsafeContext == true
Binder\RefSafetyAnalysis.cs (2)
45if (symbol is SourceMemberMethodSymbol { IntroducesUnsafeContext: true }) 377var inUnsafeRegion = !Binder.IsIteratorBodyWithSafeContext(_compilation, isIteratorBody: localFunction.IsIterator) && (_inUnsafeRegion || localFunction.IntroducesUnsafeContext);