7 references to ReportUnsafeIfNotAllowed
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Conversions.cs (1)
3104
ReportUnsafeIfNotAllowed
(syntax.Location, diagnostics, disallowedUnder: MemorySafetyRules.Legacy);
Binder\Binder_Expressions.cs (3)
5106
hasErrors =
ReportUnsafeIfNotAllowed
(errorLocation, diagnostics, disallowedUnder: MemorySafetyRules.Legacy);
7651
ReportUnsafeIfNotAllowed
(node.OperatorToken.GetLocation(), diagnostics, MemorySafetyRules.Updated);
9617
ReportUnsafeIfNotAllowed
(node.ArgumentList.OpenBracketToken.GetLocation(), diagnostics, MemorySafetyRules.Updated);
Binder\Binder_Operators.cs (1)
4091
ReportUnsafeIfNotAllowed
(node.OperatorToken.GetLocation(), diagnostics, MemorySafetyRules.Updated);
BoundTree\UnboundLambda.cs (1)
977
this.Binder.
ReportUnsafeIfNotAllowed
(this.ParameterLocation(i), diagnostics, disallowedUnder: MemorySafetyRules.Legacy);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
592
binder.
ReportUnsafeIfNotAllowed
(declarator.Location, diagnosticsForFirstDeclarator, disallowedUnder: MemorySafetyRules.Legacy);