17 references to ERR_FixedNotNeeded
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
8954Error(diagnostics, isFixedStatementExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedBufferNotFixed, node);
Binder\Binder_Operators.cs (1)
3975Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node);
Errors\ErrorFacts.cs (1)
789or ErrorCode.ERR_FixedNotNeeded
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAsyncTests.cs (4)
1050Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&local").WithLocation(16, 33), 1059Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&structLocal.F").WithLocation(20, 33), 1073Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&local").WithLocation(16, 33), 1076Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&structLocal.F").WithLocation(20, 33));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\InlineArrayTests.cs (2)
18406Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&b[0]").WithLocation(14, 26), 18409Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&b").WithLocation(21, 36)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\GenericConstraintsTests.cs (1)
4345Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&ms.field").WithLocation(12, 27)
Semantics\NullableReferenceTypesTests.cs (1)
1612Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&(i!)").WithLocation(8, 25),
Semantics\SemanticErrorTests.cs (2)
8365Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&i").WithLocation(7, 23), 16512Diagnostic(ErrorCode.ERR_FixedNotNeeded, "data.buffer"),
Semantics\UnsafeTests.cs (4)
9858Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&q[1]"), 12599Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&s.Buf").WithLocation(12, 25), 12633Diagnostic(ErrorCode.ERR_FixedNotNeeded, "s.Buf").WithLocation(12, 25), 12686Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&s.Buf[0]").WithLocation(12, 25),