refactor: simplify and organize the errors

This commit is contained in:
Ilya Maximov committed 2022-03-19 20:37:25 +01:00
1 parent b8573bc4dd
commit 1f065acb4c
4 files changed
+23 -35

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
macro_rules! missing_trailing_comma {
($span:expr) => {
proc_macro_error::emit_error!($span, "missing trailing comma")
};
}
macro_rules! attr_after_element {
($span:expr) => {
proc_macro_error::emit_error!(
$span,
"expected element";
help = "move the attribute above all the children and text elements"
)
};
}