10 references to ERR_NameofExtensionMember
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Invocation.cs (1)
2334diagnostics.Add(ErrorCode.ERR_NameofExtensionMember, boundArgument.Syntax);
Errors\ErrorFacts.cs (1)
2525or ErrorCode.ERR_NameofExtensionMember
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\ExtensionTests.cs (8)
29198Diagnostic(ErrorCode.ERR_NameofExtensionMember, "C.Property").WithLocation(1, 29)); 29256Diagnostic(ErrorCode.ERR_NameofExtensionMember, "c.Property").WithLocation(2, 29)); 29286Diagnostic(ErrorCode.ERR_NameofExtensionMember, "c.Property.Property").WithLocation(2, 29)); 29310Diagnostic(ErrorCode.ERR_NameofExtensionMember, "i.Property").WithLocation(2, 29)); 29339Diagnostic(ErrorCode.ERR_NameofExtensionMember, "C.Property").WithLocation(1, 29)); 29396Diagnostic(ErrorCode.ERR_NameofExtensionMember, "I<string>.Property").WithLocation(1, 29)); 47788Diagnostic(ErrorCode.ERR_NameofExtensionMember, "new object().P").WithLocation(13, 73)); 47849Diagnostic(ErrorCode.ERR_NameofExtensionMember, "object.P").WithLocation(7, 73));