82 references to ERR_IllegalUnsafe
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (1)
176Error(diagnostics, ErrorCode.ERR_IllegalUnsafe, node.UnsafeKeyword);
Errors\ErrorFacts.cs (1)
801or ErrorCode.ERR_IllegalUnsafe
Symbols\Attributes\AttributeData.cs (1)
246((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_IllegalUnsafe, arguments.AttributeSyntaxOpt.Location);
Symbols\SymbolExtensions.cs (1)
293diagnostics.Add(ErrorCode.ERR_IllegalUnsafe, errorLocation);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_WellKnownAttributes.cs (4)
10461Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(4, 10), 10464Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(13, 2), 10467Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(16, 6), 10470Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").WithLocation(20, 6)
Semantics\OutVarTests.cs (3)
34658Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test1").WithLocation(10, 17), 34676Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test2").WithLocation(18, 17), 34694Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test3").WithLocation(24, 17),
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 (29)
Semantics\DynamicTests.cs (1)
1323Diagnostic(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\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) 3375Diagnostic(ErrorCode.ERR_IllegalUnsafe, "TestDelegate")); 11442Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 11571Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 11607Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 11724Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 11748Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(6, 14), 12733Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 12753Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 12772Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 12791Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 12842Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 13102Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 13439Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17), 13466Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17), 13569Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17)); 13584Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17)); 13606Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7)); 13634Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7), 13752Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7), 13895Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7), 13898Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(4, 14));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\GenericConstraintTests.cs (3)
5866Diagnostic(ErrorCode.ERR_IllegalUnsafe, "F").WithLocation(6, 14), 5869Diagnostic(ErrorCode.ERR_IllegalUnsafe, "G").WithLocation(10, 14)); 7045Diagnostic(ErrorCode.ERR_IllegalUnsafe, "R2").WithLocation(6, 14),
Symbols\PartialPropertiesTests.cs (3)
2049Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(1, 15), 2052Diagnostic(ErrorCode.ERR_IllegalUnsafe, "P2").WithLocation(4, 31), 2055Diagnostic(ErrorCode.ERR_IllegalUnsafe, "P1").WithLocation(9, 31));
Symbols\Source\BaseClassTests.cs (1)
2323Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Derived").WithLocation(10, 14),
Symbols\Source\ClsComplianceTests.cs (5)
589Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B1").WithLocation(10, 21), 739Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B").WithLocation(8, 25), 742Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E").WithLocation(14, 25), 843Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B").WithLocation(8, 21), 846Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E").WithLocation(14, 21));
Symbols\Source\UsingAliasTests.cs (2)
910Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(2, 7), 913Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").WithLocation(6, 17));
Symbols\SymbolErrorTests.cs (2)
3162Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Main").WithLocation(3, 31)); 16815Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E2").WithLocation(10, 14),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Parsing\FileModifierParsingTests.cs (2)
1566Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(3, 21) 1803Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(3, 21),
Parsing\RefStructs.cs (1)
97Diagnostic(ErrorCode.ERR_IllegalUnsafe, "S2")
Parsing\StatementAttributeParsingTests.cs (2)
1684Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Goo").WithLocation(4, 17), 1970Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(6, 12));
Parsing\UsingDirectiveParsingTests.cs (8)
4045Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 7), 4139Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 7), 4233Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 7), 4349Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 7), 4466Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 14)); 4546Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 14)); 4626Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 14)); 4788Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").WithLocation(1, 14));
Syntax\SyntaxFactoryTests.cs (2)
665Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(1, 14), 676Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").WithLocation(1, 14),