10 references to ReportUnsafeIfNotAllowed
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Conversions.cs (1)
1472if ((selectedMethod.HasUnsafeParameter() || selectedMethod.ReturnType.IsUnsafe()) && ReportUnsafeIfNotAllowed(syntax, diagnostics))
Binder\Binder_Expressions.cs (4)
547ReportUnsafeIfNotAllowed(node, diagnostics); 1397bool hasErrors = constantValue is null && ReportUnsafeIfNotAllowed(node, diagnostics, type); 3226ReportUnsafeIfNotAllowed(argument.Syntax, diagnostics); 5719hasError = ReportUnsafeIfNotAllowed(node, diagnostics) || hasError;
Binder\Binder_Invocation.cs (2)
1106gotError = ReportUnsafeIfNotAllowed(node, diagnostics) || gotError; 2060bool hasErrors = ReportUnsafeIfNotAllowed(node, diagnostics);
Binder\Binder_Statements.cs (1)
192fixedBinder.ReportUnsafeIfNotAllowed(node, diagnostics);
Binder\Binder_Symbols.cs (2)
592ReportUnsafeIfNotAllowed(node, diagnostics); 918ReportUnsafeIfNotAllowed(node, diagnostics);