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