15 references to ERR_FixedNotNeeded
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
7483Error(diagnostics, isFixedStatementExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedBufferNotFixed, node);
Binder\Binder_Operators.cs (1)
2517Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node);
Errors\ErrorFacts.cs (1)
728case ErrorCode.ERR_FixedNotNeeded:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAsyncTests.cs (4)
1046Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&local").WithLocation(16, 33), 1055Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&structLocal.F").WithLocation(20, 33), 1069Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&local").WithLocation(16, 33), 1072Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&structLocal.F").WithLocation(20, 33));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\GenericConstraintsTests.cs (1)
4162Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&ms.field").WithLocation(12, 27)
Semantics\NullableReferenceTypesTests.cs (1)
1600Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&(i!)").WithLocation(8, 25),
Semantics\SemanticErrorTests.cs (2)
8361Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&i").WithLocation(7, 23), 16397Diagnostic(ErrorCode.ERR_FixedNotNeeded, "data.buffer"),
Semantics\UnsafeTests.cs (4)
7020Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&q[1]"), 9717Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&s.Buf").WithLocation(12, 25), 9751Diagnostic(ErrorCode.ERR_FixedNotNeeded, "s.Buf").WithLocation(12, 25), 9804Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&s.Buf[0]").WithLocation(12, 25),