10 references to ERR_SubexpressionNotInNameof
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Invocation.cs (1)
2428var code = top ? ErrorCode.ERR_ExpressionHasNoName : ErrorCode.ERR_SubexpressionNotInNameof;
Errors\ErrorFacts.cs (1)
1709or ErrorCode.ERR_SubexpressionNotInNameof
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
FieldKeywordTests.cs (4)
10618Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "new S()").WithLocation(7, 20), 10621Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "new S()").WithLocation(11, 20)); 10664Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "(P1 = new())").WithLocation(11, 20), 10670Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "(P2 = new())").WithLocation(23, 20),
Semantics\ExtensionTests.cs (1)
47785Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "new object()").WithLocation(13, 73),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\NameOfTests.cs (2)
302Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "a[4]").WithLocation(49, 20) 2364Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "Method<C>()").WithLocation(4, 18)
Semantics\NullableReferenceTypesTests.cs (1)
1693Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "C!").WithLocation(12, 24),