Merge branch 'upstream' into fix-non-str-attributes

This commit is contained in:
Evan Almloff committed 2022-12-23 15:53:39 -06:00
commit afd024bcb6
106 files changed
+1415 -2115

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ impl ToTokens for Component {
toks.append_all(quote! {
.children(
Ok({ #renderer })
Some({ #renderer })
)
});
}
+2 -2
View File
@@ -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
})
+3 -1
View File
@@ -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 {