mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Add examples to JSXElementName (#515)
This commit is contained in:
parent
4d71784b94
commit
ed9f67d263
1 changed files with 3 additions and 0 deletions
|
|
@ -71,8 +71,11 @@ pub struct JSXClosingFragment {
|
|||
#[derive(Debug, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize), serde(untagged))]
|
||||
pub enum JSXElementName<'a> {
|
||||
/// <Apple />
|
||||
Identifier(JSXIdentifier),
|
||||
/// <Apple:Orange />
|
||||
NamespacedName(Box<'a, JSXNamespacedName>),
|
||||
/// <Apple.Orange />
|
||||
MemberExpression(Box<'a, JSXMemberExpression<'a>>),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue