4 references to reportIfContextual
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Source\SourceMemberContainerSymbol.cs (4)
498
if (
reportIfContextual
(SyntaxKind.RecordKeyword, MessageID.IDS_FeatureRecords, ErrorCode.WRN_RecordNamedDisallowed)
499
||
reportIfContextual
(SyntaxKind.RequiredKeyword, MessageID.IDS_FeatureRequiredMembers, ErrorCode.ERR_RequiredNameDisallowed)
500
||
reportIfContextual
(SyntaxKind.FileKeyword, MessageID.IDS_FeatureFileTypes, ErrorCode.ERR_FileTypeNameDisallowed)
501
||
reportIfContextual
(SyntaxKind.ScopedKeyword, MessageID.IDS_FeatureRefFields, ErrorCode.ERR_ScopedTypeNameDisallowed))