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());
            }
        }
示例#2
0
 public IModifiersList SetModifiersList(IModifiersList param)
 {
     return(_fieldDeclaration.SetModifiersList(param));
 }