Merge branch 'upstream' into fix-non-str-attributes
This commit is contained in:
commit
afd024bcb6
106 files changed
+1415
-2115
No files matched your search
@@ -171,7 +171,7 @@ impl ToTokens for Component {
|
||||
|
||||
toks.append_all(quote! {
|
||||
.children(
|
||||
Ok({ #renderer })
|
||||
Some({ #renderer })
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ use syn::{
|
||||
};
|
||||
|
||||
/// Fundametnally, every CallBody is a template
|
||||
#[derive(Default)]
|
||||
#[derive(Default, Debug)]
|
||||
pub struct CallBody {
|
||||
pub roots: Vec<BodyNode>,
|
||||
|
||||
@@ -70,7 +70,7 @@ impl ToTokens for CallBody {
|
||||
|
||||
if self.inline_cx {
|
||||
out_tokens.append_all(quote! {
|
||||
Ok({
|
||||
Some({
|
||||
let __cx = cx;
|
||||
#body
|
||||
})
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// use crate::{raw_expr::RawExprNode, text::TextNode};
|
||||
|
||||
use super::*;
|
||||
|
||||
use proc_macro2::{Span, TokenStream as TokenStream2};
|
||||
@@ -29,7 +31,7 @@ pub enum BodyNode {
|
||||
|
||||
impl BodyNode {
|
||||
pub fn is_litstr(&self) -> bool {
|
||||
matches!(self, BodyNode::Text(_))
|
||||
matches!(self, BodyNode::Text { .. })
|
||||
}
|
||||
|
||||
pub fn span(&self) -> Span {
|
||||
|
||||
Reference in new issue
Block a user