7 references to ReportUnsafeIfNotAllowed
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Conversions.cs (1)
3103
ReportUnsafeIfNotAllowed
(syntax.Location, diagnostics, disallowedUnder: MemorySafetyRules.Legacy);
Binder\Binder_Expressions.cs (3)
5121
hasErrors =
ReportUnsafeIfNotAllowed
(errorLocation, diagnostics, disallowedUnder: MemorySafetyRules.Legacy);
7681
ReportUnsafeIfNotAllowed
(node.OperatorToken.GetLocation(), diagnostics, MemorySafetyRules.Updated);
10300
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)
625
binder.
ReportUnsafeIfNotAllowed
(declarator.Location, diagnosticsForFirstDeclarator, disallowedUnder: MemorySafetyRules.Legacy);