12 references to ReportUnsafeIfNotAllowed
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Conversions.cs (1)
3738
&&
ReportUnsafeIfNotAllowed
(syntax, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1))
Binder\Binder_Expressions.cs (4)
605
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1);
1475
bool hasErrors = constantValue is null &&
ReportUnsafeIfNotAllowed
(node, diagnostics, sizeOfTypeOpt: type, disallowedUnder: MemorySafetyRulesVersion.Version1);
3731
ReportUnsafeIfNotAllowed
(argument.Syntax, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1);
6979
hasError =
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1) || hasError;
Binder\Binder_Invocation.cs (3)
1352
gotError =
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1) || gotError;
2617
bool hasErrors =
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1) ||
2618
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version2);
Binder\Binder_Statements.cs (1)
191
fixedBinder.
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1);
Binder\Binder_Symbols.cs (2)
606
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1);
932
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version1);
Binder\Binder_Unsafe.cs (1)
175
ReportUnsafeIfNotAllowed
(node, diagnostics, disallowedUnder: MemorySafetyRulesVersion.Version2, customErrorCode: ErrorCode.ERR_UnsafeUninitializedStackAlloc);