use crate::lang::Csharp;
use crate::tokens::{FormatInto, ItemStr};
use crate::Tokens;
pub struct BlockComment<T>(pub(super) T);
impl<T> FormatInto<Csharp> for BlockComment<T>
where
T: IntoIterator,
T::Item: Into<ItemStr>,
{
fn format_into(self, tokens: &mut Tokens<Csharp>) {
for line in self.0 {
tokens.push();
tokens.append(ItemStr::static_("///"));
tokens.space();
tokens.append(line.into());
}
}
}