public static string FieldDeclaration(FieldDeclarationSyntax declaration) { var parsedAttributes = ParseAttributes(declaration.AttributeLists); var output = parsedAttributes.Item1; var nameToUse = parsedAttributes.Item2; return(declaration.ConvertTo( output + SyntaxNode(declaration.Declaration) + (declaration.IsInsideEnum() ? "" : Semicolon(declaration.SemicolonToken)) )); }