@@ -9449,12 +9449,13 @@ impl<'a> AstBuilder<'a> {
94499449 /// ## Parameters
94509450 /// * `span`: Node location in source code
94519451 /// * `value`: The text content.
9452+ /// * `raw`: The raw string as it appears in source code.
94529453 #[ inline]
9453- pub fn jsx_child_text < A > ( self , span : Span , value : A ) -> JSXChild < ' a >
9454+ pub fn jsx_child_text < A > ( self , span : Span , value : A , raw : Option < Atom < ' a > > ) -> JSXChild < ' a >
94549455 where
94559456 A : IntoIn < ' a , Atom < ' a > > ,
94569457 {
9457- JSXChild :: Text ( self . alloc_jsx_text ( span, value) )
9458+ JSXChild :: Text ( self . alloc_jsx_text ( span, value, raw ) )
94589459 }
94599460
94609461 /// Build a [`JSXChild::Element`].
@@ -9569,12 +9570,13 @@ impl<'a> AstBuilder<'a> {
95699570 /// ## Parameters
95709571 /// * `span`: Node location in source code
95719572 /// * `value`: The text content.
9573+ /// * `raw`: The raw string as it appears in source code.
95729574 #[ inline]
9573- pub fn jsx_text < A > ( self , span : Span , value : A ) -> JSXText < ' a >
9575+ pub fn jsx_text < A > ( self , span : Span , value : A , raw : Option < Atom < ' a > > ) -> JSXText < ' a >
95749576 where
95759577 A : IntoIn < ' a , Atom < ' a > > ,
95769578 {
9577- JSXText { span, value : value. into_in ( self . allocator ) }
9579+ JSXText { span, value : value. into_in ( self . allocator ) , raw }
95789580 }
95799581
95809582 /// Build a [`JSXText`], and store it in the memory arena.
@@ -9584,12 +9586,18 @@ impl<'a> AstBuilder<'a> {
95849586 /// ## Parameters
95859587 /// * `span`: Node location in source code
95869588 /// * `value`: The text content.
9589+ /// * `raw`: The raw string as it appears in source code.
95879590 #[ inline]
9588- pub fn alloc_jsx_text < A > ( self , span : Span , value : A ) -> Box < ' a , JSXText < ' a > >
9591+ pub fn alloc_jsx_text < A > (
9592+ self ,
9593+ span : Span ,
9594+ value : A ,
9595+ raw : Option < Atom < ' a > > ,
9596+ ) -> Box < ' a , JSXText < ' a > >
95899597 where
95909598 A : IntoIn < ' a , Atom < ' a > > ,
95919599 {
9592- Box :: new_in ( self . jsx_text ( span, value) , self . allocator )
9600+ Box :: new_in ( self . jsx_text ( span, value, raw ) , self . allocator )
95939601 }
95949602
95959603 /// Build a [`TSThisParameter`].
0 commit comments