@@ -1093,6 +1093,7 @@ fn parse_semi_structured_data_traversal() {
10931093 SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
10941094 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
10951095 path: JsonPath {
1096+ has_colon: true ,
10961097 path: vec![ JsonPathElem :: Dot {
10971098 key: "b" . to_owned( ) ,
10981099 quoted: false
@@ -1109,6 +1110,7 @@ fn parse_semi_structured_data_traversal() {
11091110 SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
11101111 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
11111112 path: JsonPath {
1113+ has_colon: true ,
11121114 path: vec![ JsonPathElem :: Dot {
11131115 key: "my long object key name" . to_owned( ) ,
11141116 quoted: true
@@ -1125,6 +1127,7 @@ fn parse_semi_structured_data_traversal() {
11251127 SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
11261128 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
11271129 path: JsonPath {
1130+ has_colon: false ,
11281131 path: vec![ JsonPathElem :: Bracket {
11291132 key: Expr :: BinaryOp {
11301133 left: Box :: new( Expr :: value( number( "2" ) ) ) ,
@@ -1147,6 +1150,7 @@ fn parse_semi_structured_data_traversal() {
11471150 SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
11481151 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
11491152 path: JsonPath {
1153+ has_colon: true ,
11501154 path: vec![ JsonPathElem :: Dot {
11511155 key: "select" . to_owned( ) ,
11521156 quoted: false
@@ -1156,6 +1160,7 @@ fn parse_semi_structured_data_traversal() {
11561160 SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
11571161 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
11581162 path: JsonPath {
1163+ has_colon: true ,
11591164 path: vec![ JsonPathElem :: Dot {
11601165 key: "from" . to_owned( ) ,
11611166 quoted: false
@@ -1174,6 +1179,7 @@ fn parse_semi_structured_data_traversal() {
11741179 vec![ SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
11751180 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
11761181 path: JsonPath {
1182+ has_colon: true ,
11771183 path: vec![
11781184 JsonPathElem :: Dot {
11791185 key: "foo" . to_owned( ) ,
@@ -1201,6 +1207,7 @@ fn parse_semi_structured_data_traversal() {
12011207 vec![ SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
12021208 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
12031209 path: JsonPath {
1210+ has_colon: true ,
12041211 path: vec![
12051212 JsonPathElem :: Dot {
12061213 key: "foo" . to_owned( ) ,
@@ -1227,6 +1234,7 @@ fn parse_semi_structured_data_traversal() {
12271234 vec![ SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
12281235 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
12291236 path: JsonPath {
1237+ has_colon: false ,
12301238 path: vec![
12311239 JsonPathElem :: Bracket {
12321240 key: Expr :: value( number( "0" ) ) ,
@@ -1251,10 +1259,12 @@ fn parse_semi_structured_data_traversal() {
12511259 Expr :: JsonAccess {
12521260 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
12531261 path: JsonPath {
1262+ has_colon: false ,
12541263 path: vec![ JsonPathElem :: Bracket {
12551264 key: Expr :: JsonAccess {
12561265 value: Box :: new( Expr :: Identifier ( Ident :: new( "b" ) ) ) ,
12571266 path: JsonPath {
1267+ has_colon: true ,
12581268 path: vec![ JsonPathElem :: Dot {
12591269 key: "c" . to_owned( ) ,
12601270 quoted: false
@@ -1286,6 +1296,7 @@ fn parse_semi_structured_data_traversal() {
12861296 expr: Box :: new( Expr :: JsonAccess {
12871297 value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
12881298 path: JsonPath {
1299+ has_colon: true ,
12891300 path: vec![ JsonPathElem :: Dot {
12901301 key: "b" . to_string( ) ,
12911302 quoted: false
@@ -1294,6 +1305,7 @@ fn parse_semi_structured_data_traversal() {
12941305 } )
12951306 } ) ,
12961307 path: JsonPath {
1308+ has_colon: false ,
12971309 path: vec![ JsonPathElem :: Bracket {
12981310 key: Expr :: value( number( "1" ) )
12991311 } ]
0 commit comments