20 references to ERR_FixedBufferNotFixed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8938Error(diagnostics, isFixedStatementExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedBufferNotFixed, node);
Errors\ErrorFacts.cs (1)
1324or ErrorCode.ERR_FixedBufferNotFixed
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\FixedSizeBufferTests.cs (4)
680Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "(new S()).G").WithLocation(6, 18), 686Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "G").WithLocation(4, 17) 707Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "default(S).G").WithLocation(5, 17), 713Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "F").WithLocation(4, 17)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\PrimaryConstructorTests.cs (8)
12915Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").WithLocation(12, 26), 12918Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(13, 26), 12921Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").WithLocation(14, 19), 12924Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(15, 19) 12949Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").WithLocation(12, 18), 12952Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(13, 18) 13003Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").WithLocation(12, 18), 13006Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(13, 18)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\NameOfTests.cs (1)
1541Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "MessageType").WithLocation(14, 19),
Semantics\UnsafeTests.cs (4)
12602Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(13, 26), 12608Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(15, 19)); 12636Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(15, 18)); 12659Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").WithLocation(13, 18));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\SymbolErrorTests.cs (1)
15772Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "this._e_res"));