Пример #1
0
 public static Error IncombinableModifier(SyntaxToken modiferToken, AccessModifierKind otherKind) => CreateError($"modifier '{AccessModifier.ParseKind(modiferToken.Kind)}' can't be combined with modifier '{otherKind}'", modiferToken);
Пример #2
0
 public static Error ModifierAlreadySeen(SyntaxToken modifierToken) => CreateError($"modifier '{AccessModifier.ParseKind(modifierToken.Kind)}' already seen", modifierToken);