71 references to ERR_IllegalUnsafe
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (1)
175Error(diagnostics, ErrorCode.ERR_IllegalUnsafe, node.UnsafeKeyword);
Errors\ErrorFacts.cs (1)
740case ErrorCode.ERR_IllegalUnsafe:
Symbols\Attributes\AttributeData.cs (1)
268((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_IllegalUnsafe, arguments.AttributeSyntaxOpt.Location);
Symbols\SymbolExtensions.cs (1)
300diagnostics.Add(ErrorCode.ERR_IllegalUnsafe, errorLocation);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests_WellKnownAttributes.cs (4)
10363Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(4, 10), 10366Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(13, 2), 10369Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(16, 6), 10372Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(20, 6)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (11)
IOperation\IOperationTests_IParameterReferenceExpression.cs (3)
490Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(4, 23) 525Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 24) 740Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 24)
IOperation\IOperationTests_IVariableDeclaration.cs (8)
1436Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(8, 9) 1492Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(8, 9) 1536Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(8, 9), 1591Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(8, 9), 1636Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(8, 9), 1684Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(8, 9), 1748Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(8, 9), 1818Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(7, 9),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (32)
Semantics\DynamicTests.cs (1)
1302Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(5, 24),
Semantics\GlobalUsingDirectiveTests.cs (2)
5025Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 14), 5028Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Goo").WithLocation(4, 14));
Semantics\LocalFunctionTests.cs (1)
1449Diagnostic(ErrorCode.ERR_IllegalUnsafe, "local").WithLocation(8, 23)
Semantics\OutVarTests.cs (3)
34599Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test1").WithLocation(10, 17), 34617Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test2").WithLocation(18, 17), 34635Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test3").WithLocation(24, 17),
Semantics\RecordStructTests.cs (1)
709Diagnostic(ErrorCode.ERR_IllegalUnsafe, "S8").WithLocation(9, 22),
Semantics\UnsafeTests.cs (24)
188Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C")); 207Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Goo")); 243Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(6, 19) 1043Diagnostic(ErrorCode.ERR_IllegalUnsafe, "TestDelegate")); 8590Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 8719Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 8755Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 8872Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 8896Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 9851Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 9871Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 9890Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 9909Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 9960Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 10220Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 10554Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17), 10581Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17), 10678Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17)); 10693Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17)); 10715Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 10744Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7) 10806Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7), 10933Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7), 10936Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(4, 14)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\GenericConstraintTests.cs (3)
5839Diagnostic(ErrorCode.ERR_IllegalUnsafe, "F").WithLocation(6, 14), 5842Diagnostic(ErrorCode.ERR_IllegalUnsafe, "G").WithLocation(10, 14)); 7018Diagnostic(ErrorCode.ERR_IllegalUnsafe, "R2").WithLocation(6, 14),
Symbols\Source\BaseClassTests.cs (1)
2322Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Derived").WithLocation(10, 14),
Symbols\Source\ClsComplianceTests.cs (5)
590Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B1").WithLocation(10, 21), 740Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B").WithLocation(8, 25), 743Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E").WithLocation(14, 25), 844Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B").WithLocation(8, 21), 847Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E").WithLocation(14, 21));
Symbols\Source\UsingAliasTests.cs (2)
891Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7), 894Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17));
Symbols\SymbolErrorTests.cs (2)
3147Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Main").WithLocation(3, 31)); 16670Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E2").WithLocation(10, 14),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\FileModifierParsingTests.cs (2)
1565Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(3, 21) 1802Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(3, 21),
Parsing\RefStructs.cs (1)
97Diagnostic(ErrorCode.ERR_IllegalUnsafe, "S2")
Parsing\StatementAttributeParsingTests.cs (2)
1683Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Goo").WithLocation(4, 17), 1969Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(6, 12));
Syntax\SyntaxFactoryTests.cs (2)
651Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(1, 14), 662Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(1, 14),