feat: Support generic components in rsx!() macro
This commit is contained in:
1 parent
fe1279a1c5
commit
a55b56b403
3 files changed
+126
-34
No files matched your search
@@ -13,3 +13,29 @@ macro_rules! attr_after_element {
|
||||
)
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! component_path_cannot_have_arguments {
|
||||
($span:expr) => {
|
||||
proc_macro_error::abort!(
|
||||
$span,
|
||||
"expected a path without arguments";
|
||||
help = "try remove the path arguments"
|
||||
)
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! component_ident_cannot_use_paren {
|
||||
($span:expr, $com_name:ident) => {
|
||||
proc_macro_error::abort!(
|
||||
$span,
|
||||
"Invalid component syntax";
|
||||
help = "try replace {} (..) to {} {{..}}", $com_name, $com_name;
|
||||
)
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! invalid_component_path {
|
||||
($span:expr) => {
|
||||
proc_macro_error::abort!($span, "Invalid component path syntax")
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user