private static void AddKeywords([NotNull] IFieldDeclaration fieldDeclaration, [NotNull] params TokenNodeType[] keywords) { fieldDeclaration.SetModifiersList((IModifiersList)ElementType.MODIFIERS_LIST.Create()); foreach (var keyword in keywords) { fieldDeclaration.ModifiersList.AddModifier((ITokenNode)keyword.CreateLeafElement()); } }
public IModifiersList SetModifiersList(IModifiersList param) { return(_fieldDeclaration.SetModifiersList(param)); }