Remove lower case components that use the paran syntax (#551)
* chore: remove lowercase components * chore: add docs are lowercase components * docs: also add docs around lowercase components in current scope
This commit is contained in:
1 parent
d4d5d2733e
commit
38e8745db9
5 files changed
+56
-46
No files matched your search
@@ -74,17 +74,14 @@ impl Parse for BodyNode {
|
||||
//
|
||||
// example
|
||||
// Div {}
|
||||
// Div ()
|
||||
// ::Div {}
|
||||
// crate::Div {}
|
||||
// component()
|
||||
// component {} <-- already handled by elements
|
||||
// ::component {}
|
||||
// ::component ()
|
||||
// crate::component{}
|
||||
// crate::component()
|
||||
// Input::<InputProps<'_, i32> {}
|
||||
// crate::Input::<InputProps<'_, i32> {}
|
||||
if body_stream.peek(token::Brace) || body_stream.peek(token::Paren) {
|
||||
if body_stream.peek(token::Brace) {
|
||||
Component::validate_component_path(&path)?;
|
||||
|
||||
return Ok(BodyNode::Component(stream.parse()?));
|
||||
|
||||
Reference in new issue
Block a user