@@ -72,8 +72,8 @@ pub enum AnyNode {
7272 ExprCompare ( ast:: ExprCompare ) ,
7373 ExprCall ( ast:: ExprCall ) ,
7474 ExprFString ( ast:: ExprFString ) ,
75- ExprStringLiteral ( ast:: ExprStringLiteral ) ,
76- ExprBytesLiteral ( ast:: ExprBytesLiteral ) ,
75+ ExprStringLiteral ( ast:: ExprString ) ,
76+ ExprBytesLiteral ( ast:: ExprBytes ) ,
7777 ExprNumberLiteral ( ast:: ExprNumberLiteral ) ,
7878 ExprBooleanLiteral ( ast:: ExprBooleanLiteral ) ,
7979 ExprNoneLiteral ( ast:: ExprNoneLiteral ) ,
@@ -238,8 +238,8 @@ impl AnyNode {
238238 AnyNode :: ExprCompare ( node) => Some ( Expr :: Compare ( node) ) ,
239239 AnyNode :: ExprCall ( node) => Some ( Expr :: Call ( node) ) ,
240240 AnyNode :: ExprFString ( node) => Some ( Expr :: FString ( node) ) ,
241- AnyNode :: ExprStringLiteral ( node) => Some ( Expr :: StringLiteral ( node) ) ,
242- AnyNode :: ExprBytesLiteral ( node) => Some ( Expr :: BytesLiteral ( node) ) ,
241+ AnyNode :: ExprStringLiteral ( node) => Some ( Expr :: String ( node) ) ,
242+ AnyNode :: ExprBytesLiteral ( node) => Some ( Expr :: Bytes ( node) ) ,
243243 AnyNode :: ExprNumberLiteral ( node) => Some ( Expr :: NumberLiteral ( node) ) ,
244244 AnyNode :: ExprBooleanLiteral ( node) => Some ( Expr :: BooleanLiteral ( node) ) ,
245245 AnyNode :: ExprNoneLiteral ( node) => Some ( Expr :: NoneLiteral ( node) ) ,
@@ -2788,7 +2788,7 @@ impl AstNode for ast::ExprFString {
27882788
27892789 for f_string_part in value {
27902790 match f_string_part {
2791- ast:: FStringPart :: Literal ( string_literal) => {
2791+ ast:: FStringPart :: String ( string_literal) => {
27922792 visitor. visit_string_literal ( string_literal) ;
27932793 }
27942794 ast:: FStringPart :: FString ( f_string) => {
@@ -2798,7 +2798,7 @@ impl AstNode for ast::ExprFString {
27982798 }
27992799 }
28002800}
2801- impl AstNode for ast:: ExprStringLiteral {
2801+ impl AstNode for ast:: ExprString {
28022802 fn cast ( kind : AnyNode ) -> Option < Self >
28032803 where
28042804 Self : Sized ,
@@ -2830,14 +2830,14 @@ impl AstNode for ast::ExprStringLiteral {
28302830 where
28312831 V : PreorderVisitor < ' a > + ?Sized ,
28322832 {
2833- let ast:: ExprStringLiteral { value, range : _ } = self ;
2833+ let ast:: ExprString { value, range : _ } = self ;
28342834
28352835 for string_literal in value {
28362836 visitor. visit_string_literal ( string_literal) ;
28372837 }
28382838 }
28392839}
2840- impl AstNode for ast:: ExprBytesLiteral {
2840+ impl AstNode for ast:: ExprBytes {
28412841 fn cast ( kind : AnyNode ) -> Option < Self >
28422842 where
28432843 Self : Sized ,
@@ -2869,7 +2869,7 @@ impl AstNode for ast::ExprBytesLiteral {
28692869 where
28702870 V : PreorderVisitor < ' a > + ?Sized ,
28712871 {
2872- let ast:: ExprBytesLiteral { value, range : _ } = self ;
2872+ let ast:: ExprBytes { value, range : _ } = self ;
28732873
28742874 for bytes_literal in value {
28752875 visitor. visit_bytes_literal ( bytes_literal) ;
@@ -4557,8 +4557,8 @@ impl From<Expr> for AnyNode {
45574557 Expr :: Compare ( node) => AnyNode :: ExprCompare ( node) ,
45584558 Expr :: Call ( node) => AnyNode :: ExprCall ( node) ,
45594559 Expr :: FString ( node) => AnyNode :: ExprFString ( node) ,
4560- Expr :: StringLiteral ( node) => AnyNode :: ExprStringLiteral ( node) ,
4561- Expr :: BytesLiteral ( node) => AnyNode :: ExprBytesLiteral ( node) ,
4560+ Expr :: String ( node) => AnyNode :: ExprStringLiteral ( node) ,
4561+ Expr :: Bytes ( node) => AnyNode :: ExprBytesLiteral ( node) ,
45624562 Expr :: NumberLiteral ( node) => AnyNode :: ExprNumberLiteral ( node) ,
45634563 Expr :: BooleanLiteral ( node) => AnyNode :: ExprBooleanLiteral ( node) ,
45644564 Expr :: NoneLiteral ( node) => AnyNode :: ExprNoneLiteral ( node) ,
@@ -4910,14 +4910,14 @@ impl From<ast::ExprFString> for AnyNode {
49104910 }
49114911}
49124912
4913- impl From < ast:: ExprStringLiteral > for AnyNode {
4914- fn from ( node : ast:: ExprStringLiteral ) -> Self {
4913+ impl From < ast:: ExprString > for AnyNode {
4914+ fn from ( node : ast:: ExprString ) -> Self {
49154915 AnyNode :: ExprStringLiteral ( node)
49164916 }
49174917}
49184918
4919- impl From < ast:: ExprBytesLiteral > for AnyNode {
4920- fn from ( node : ast:: ExprBytesLiteral ) -> Self {
4919+ impl From < ast:: ExprBytes > for AnyNode {
4920+ fn from ( node : ast:: ExprBytes ) -> Self {
49214921 AnyNode :: ExprBytesLiteral ( node)
49224922 }
49234923}
@@ -5299,8 +5299,8 @@ pub enum AnyNodeRef<'a> {
52995299 FStringLiteralElement ( & ' a ast:: FStringLiteralElement ) ,
53005300 FStringFormatSpec ( & ' a ast:: FStringFormatSpec ) ,
53015301 ExprFString ( & ' a ast:: ExprFString ) ,
5302- ExprStringLiteral ( & ' a ast:: ExprStringLiteral ) ,
5303- ExprBytesLiteral ( & ' a ast:: ExprBytesLiteral ) ,
5302+ ExprStringLiteral ( & ' a ast:: ExprString ) ,
5303+ ExprBytesLiteral ( & ' a ast:: ExprBytes ) ,
53045304 ExprNumberLiteral ( & ' a ast:: ExprNumberLiteral ) ,
53055305 ExprBooleanLiteral ( & ' a ast:: ExprBooleanLiteral ) ,
53065306 ExprNoneLiteral ( & ' a ast:: ExprNoneLiteral ) ,
@@ -6492,14 +6492,14 @@ impl<'a> From<&'a ast::ExprFString> for AnyNodeRef<'a> {
64926492 }
64936493}
64946494
6495- impl < ' a > From < & ' a ast:: ExprStringLiteral > for AnyNodeRef < ' a > {
6496- fn from ( node : & ' a ast:: ExprStringLiteral ) -> Self {
6495+ impl < ' a > From < & ' a ast:: ExprString > for AnyNodeRef < ' a > {
6496+ fn from ( node : & ' a ast:: ExprString ) -> Self {
64976497 AnyNodeRef :: ExprStringLiteral ( node)
64986498 }
64996499}
65006500
6501- impl < ' a > From < & ' a ast:: ExprBytesLiteral > for AnyNodeRef < ' a > {
6502- fn from ( node : & ' a ast:: ExprBytesLiteral ) -> Self {
6501+ impl < ' a > From < & ' a ast:: ExprBytes > for AnyNodeRef < ' a > {
6502+ fn from ( node : & ' a ast:: ExprBytes ) -> Self {
65036503 AnyNodeRef :: ExprBytesLiteral ( node)
65046504 }
65056505}
@@ -6742,8 +6742,8 @@ impl<'a> From<&'a Expr> for AnyNodeRef<'a> {
67426742 Expr :: Compare ( node) => AnyNodeRef :: ExprCompare ( node) ,
67436743 Expr :: Call ( node) => AnyNodeRef :: ExprCall ( node) ,
67446744 Expr :: FString ( node) => AnyNodeRef :: ExprFString ( node) ,
6745- Expr :: StringLiteral ( node) => AnyNodeRef :: ExprStringLiteral ( node) ,
6746- Expr :: BytesLiteral ( node) => AnyNodeRef :: ExprBytesLiteral ( node) ,
6745+ Expr :: String ( node) => AnyNodeRef :: ExprStringLiteral ( node) ,
6746+ Expr :: Bytes ( node) => AnyNodeRef :: ExprBytesLiteral ( node) ,
67476747 Expr :: NumberLiteral ( node) => AnyNodeRef :: ExprNumberLiteral ( node) ,
67486748 Expr :: BooleanLiteral ( node) => AnyNodeRef :: ExprBooleanLiteral ( node) ,
67496749 Expr :: NoneLiteral ( node) => AnyNodeRef :: ExprNoneLiteral ( node) ,
0 commit comments