|
@@ -24,7 +24,7 @@ use std::{collections::HashSet, vec};
|
|
use syn::{
|
|
use syn::{
|
|
parse::{Parse, ParseStream},
|
|
parse::{Parse, ParseStream},
|
|
spanned::Spanned,
|
|
spanned::Spanned,
|
|
- token, AngleBracketedGenericArguments, Expr, Ident, PathArguments, Result,
|
|
|
|
|
|
+ token, AngleBracketedGenericArguments, Expr, PathArguments, Result,
|
|
};
|
|
};
|
|
|
|
|
|
#[derive(PartialEq, Eq, Clone, Debug)]
|
|
#[derive(PartialEq, Eq, Clone, Debug)]
|
|
@@ -92,9 +92,6 @@ impl ToTokens for Component {
|
|
// Create props either from manual props or from the builder approach
|
|
// Create props either from manual props or from the builder approach
|
|
let props = self.create_props();
|
|
let props = self.create_props();
|
|
|
|
|
|
- // Make sure we stringify the component name
|
|
|
|
- let fn_name = self.fn_name().to_string();
|
|
|
|
-
|
|
|
|
// Make sure we emit any errors
|
|
// Make sure we emit any errors
|
|
let diagnostics = &self.diagnostics;
|
|
let diagnostics = &self.diagnostics;
|
|
|
|
|
|
@@ -109,7 +106,6 @@ impl ToTokens for Component {
|
|
#props
|
|
#props
|
|
}).into_vcomponent(
|
|
}).into_vcomponent(
|
|
#name #generics,
|
|
#name #generics,
|
|
- #fn_name
|
|
|
|
);
|
|
);
|
|
#diagnostics
|
|
#diagnostics
|
|
__comp
|
|
__comp
|
|
@@ -302,10 +298,6 @@ impl Component {
|
|
.collect()
|
|
.collect()
|
|
}
|
|
}
|
|
|
|
|
|
- fn fn_name(&self) -> Ident {
|
|
|
|
- self.name.segments.last().unwrap().ident.clone()
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
fn empty(name: syn::Path, generics: Option<AngleBracketedGenericArguments>) -> Self {
|
|
fn empty(name: syn::Path, generics: Option<AngleBracketedGenericArguments>) -> Self {
|
|
let mut diagnostics = Diagnostics::new();
|
|
let mut diagnostics = Diagnostics::new();
|
|
diagnostics.push(
|
|
diagnostics.push(
|