18 references to ERR_BadMemberFlag
Microsoft.CodeAnalysis.CSharp (18)
Errors\ErrorFacts.cs (1)
697
or ErrorCode.
ERR_BadMemberFlag
Parser\LanguageParser.cs (3)
10116
mods[i] = this.AddError(mod, ErrorCode.
ERR_BadMemberFlag
, mod.Text);
10351
mod = this.AddError(mod, ErrorCode.
ERR_BadMemberFlag
, mod.Text);
10493
modifier = this.AddError(modifier, ErrorCode.
ERR_BadMemberFlag
, modifier.Text);
Symbols\Source\ModifierUtils.cs (2)
99
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, errorLocation, ConvertSingleModifierToSyntaxText(oneError));
163
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, errorLocation, ConvertSingleModifierToSyntaxText(DeclarationModifiers.Sealed));
Symbols\Source\SourceEventSymbol.cs (2)
560
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.AbstractKeyword));
565
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourceMemberFieldSymbol.cs (3)
236
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, errorLocation, SyntaxFacts.GetText(SyntaxKind.RequiredKeyword));
262
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, errorLocation, ModifierUtils.ConvertSingleModifierToSyntaxText(modifier));
456
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, ErrorLocation, SyntaxFacts.GetText(SyntaxKind.ScopedKeyword));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
840
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.SealedKeyword));
862
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.AbstractKeyword));
867
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourcePropertySymbol.cs (1)
483
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.RequiredKeyword));
Symbols\Source\SourcePropertySymbolBase.cs (2)
1097
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.AbstractKeyword));
1102
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
165
diagnostics.Add(ErrorCode.
ERR_BadMemberFlag
, location, ModifierUtils.ConvertSingleModifierToSyntaxText(DeclarationModifiers.Sealed));