@@ -1057,8 +1057,8 @@ impl<'a> AstBuilder<'a> {
10571057 /// ## Parameters
10581058 /// * `span`: Node location in source code
10591059 /// * `opening_element`: Opening tag of the element.
1060- /// * `closing_element`: Closing tag of the element. Will be [`None`] for self-closing tags.
1061- /// * `children`: Children of the element. This can be text, other elements, or expressions.
1060+ /// * `closing_element`: Closing tag of the element.
1061+ /// * `children`: Children of the element.
10621062 #[ inline]
10631063 pub fn expression_jsx_element < T1 , T2 > (
10641064 self ,
@@ -8623,8 +8623,8 @@ impl<'a> AstBuilder<'a> {
86238623 /// ## Parameters
86248624 /// * `span`: Node location in source code
86258625 /// * `opening_element`: Opening tag of the element.
8626- /// * `closing_element`: Closing tag of the element. Will be [`None`] for self-closing tags.
8627- /// * `children`: Children of the element. This can be text, other elements, or expressions.
8626+ /// * `closing_element`: Closing tag of the element.
8627+ /// * `children`: Children of the element.
86288628 #[ inline]
86298629 pub fn jsx_element < T1 , T2 > (
86308630 self ,
@@ -8653,8 +8653,8 @@ impl<'a> AstBuilder<'a> {
86538653 /// ## Parameters
86548654 /// * `span`: Node location in source code
86558655 /// * `opening_element`: Opening tag of the element.
8656- /// * `closing_element`: Closing tag of the element. Will be [`None`] for self-closing tags.
8657- /// * `children`: Children of the element. This can be text, other elements, or expressions.
8656+ /// * `closing_element`: Closing tag of the element.
8657+ /// * `children`: Children of the element.
86588658 #[ inline]
86598659 pub fn alloc_jsx_element < T1 , T2 > (
86608660 self ,
@@ -8680,15 +8680,13 @@ impl<'a> AstBuilder<'a> {
86808680 ///
86818681 /// ## Parameters
86828682 /// * `span`: Node location in source code
8683- /// * `self_closing`: Is this tag self-closing?
86848683 /// * `name`: The possibly-namespaced tag name, e.g. `Foo` in `<Foo />`.
86858684 /// * `attributes`: List of JSX attributes. In React-like applications, these become props.
86868685 /// * `type_arguments`: Type parameters for generic JSX elements.
86878686 #[ inline]
86888687 pub fn jsx_opening_element < T1 > (
86898688 self ,
86908689 span : Span ,
8691- self_closing : bool ,
86928690 name : JSXElementName < ' a > ,
86938691 attributes : Vec < ' a , JSXAttributeItem < ' a > > ,
86948692 type_arguments : T1 ,
@@ -8698,7 +8696,6 @@ impl<'a> AstBuilder<'a> {
86988696 {
86998697 JSXOpeningElement {
87008698 span,
8701- self_closing,
87028699 name,
87038700 attributes,
87048701 type_arguments : type_arguments. into_in ( self . allocator ) ,
@@ -8712,15 +8709,13 @@ impl<'a> AstBuilder<'a> {
87128709 ///
87138710 /// ## Parameters
87148711 /// * `span`: Node location in source code
8715- /// * `self_closing`: Is this tag self-closing?
87168712 /// * `name`: The possibly-namespaced tag name, e.g. `Foo` in `<Foo />`.
87178713 /// * `attributes`: List of JSX attributes. In React-like applications, these become props.
87188714 /// * `type_arguments`: Type parameters for generic JSX elements.
87198715 #[ inline]
87208716 pub fn alloc_jsx_opening_element < T1 > (
87218717 self ,
87228718 span : Span ,
8723- self_closing : bool ,
87248719 name : JSXElementName < ' a > ,
87258720 attributes : Vec < ' a , JSXAttributeItem < ' a > > ,
87268721 type_arguments : T1 ,
@@ -8729,7 +8724,7 @@ impl<'a> AstBuilder<'a> {
87298724 T1 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
87308725 {
87318726 Box :: new_in (
8732- self . jsx_opening_element ( span, self_closing , name, attributes, type_arguments) ,
8727+ self . jsx_opening_element ( span, name, attributes, type_arguments) ,
87338728 self . allocator ,
87348729 )
87358730 }
@@ -9350,8 +9345,8 @@ impl<'a> AstBuilder<'a> {
93509345 /// ## Parameters
93519346 /// * `span`: Node location in source code
93529347 /// * `opening_element`: Opening tag of the element.
9353- /// * `closing_element`: Closing tag of the element. Will be [`None`] for self-closing tags.
9354- /// * `children`: Children of the element. This can be text, other elements, or expressions.
9348+ /// * `closing_element`: Closing tag of the element.
9349+ /// * `children`: Children of the element.
93559350 #[ inline]
93569351 pub fn jsx_attribute_value_element < T1 , T2 > (
93579352 self ,
@@ -9452,8 +9447,8 @@ impl<'a> AstBuilder<'a> {
94529447 /// ## Parameters
94539448 /// * `span`: Node location in source code
94549449 /// * `opening_element`: Opening tag of the element.
9455- /// * `closing_element`: Closing tag of the element. Will be [`None`] for self-closing tags.
9456- /// * `children`: Children of the element. This can be text, other elements, or expressions.
9450+ /// * `closing_element`: Closing tag of the element.
9451+ /// * `children`: Children of the element.
94579452 #[ inline]
94589453 pub fn jsx_child_element < T1 , T2 > (
94599454 self ,
0 commit comments