@@ -193,7 +193,11 @@ Program {
193193 " expression" : Variable {
194194 " curly" : false ,
195195 " kind" : " variable" ,
196- " name" : " juice" ,
196+ " name" : Variable {
197+ " curly" : false ,
198+ " kind" : " variable" ,
199+ " name" : " juice" ,
200+ },
197201 },
198202 " kind" : " encapsedpart" ,
199203 " syntax" : " simple" ,
@@ -244,12 +248,16 @@ Program {
244248 EncapsedPart {
245249 " curly" : true ,
246250 " expression" : Variable {
247- " curly" : true ,
251+ " curly" : false ,
248252 " kind" : " variable" ,
249253 " name" : Variable {
250- " curly" : false ,
254+ " curly" : true ,
251255 " kind" : " variable" ,
252- " name" : " juice" ,
256+ " name" : Variable {
257+ " curly" : false ,
258+ " kind" : " variable" ,
259+ " name" : " juice" ,
260+ },
253261 },
254262 },
255263 " kind" : " encapsedpart" ,
@@ -300,13 +308,17 @@ Program {
300308 },
301309 EncapsedPart {
302310 " curly" : true ,
303- " expression" : Call {
304- " arguments" : Array [],
305- " kind" : " call" ,
306- " what" : ClassReference {
307- " kind" : " classreference" ,
308- " name" : " call" ,
309- " resolution" : " uqn" ,
311+ " expression" : Variable {
312+ " curly" : false ,
313+ " kind" : " variable" ,
314+ " name" : Call {
315+ " arguments" : Array [],
316+ " kind" : " call" ,
317+ " what" : ClassReference {
318+ " kind" : " classreference" ,
319+ " name" : " call" ,
320+ " resolution" : " uqn" ,
321+ },
310322 },
311323 },
312324 " kind" : " encapsedpart" ,
@@ -604,9 +616,9 @@ Program {
604616 EncapsedPart {
605617 " curly" : true ,
606618 " expression" : Variable {
607- " curly" : " juice " ,
619+ " curly" : false ,
608620 " kind" : " variable" ,
609- " name" : " variable " ,
621+ " name" : " juice " ,
610622 },
611623 " kind" : " encapsedpart" ,
612624 " syntax" : " simple" ,
@@ -1447,6 +1459,60 @@ Program {
14471459}
14481460` ;
14491461
1462+ exports [` encapsed propertylookup 1` ] = `
1463+ Program {
1464+ " children" : Array [
1465+ ExpressionStatement {
1466+ " expression" : PropertyLookup {
1467+ " kind" : " propertylookup" ,
1468+ " offset" : EncapsedPart {
1469+ " curly" : false ,
1470+ " expression" : Encapsed {
1471+ " kind" : " encapsed" ,
1472+ " raw" : " \\ " set {$type }\\" " ,
1473+ " type" : " string" ,
1474+ " value" : Array [
1475+ EncapsedPart {
1476+ " curly" : false ,
1477+ " expression" : String {
1478+ " isDoubleQuote" : false ,
1479+ " kind" : " string" ,
1480+ " raw" : " set" ,
1481+ " unicode" : false ,
1482+ " value" : " set" ,
1483+ },
1484+ " kind" : " encapsedpart" ,
1485+ " syntax" : null ,
1486+ },
1487+ EncapsedPart {
1488+ " curly" : false ,
1489+ " expression" : Variable {
1490+ " curly" : false ,
1491+ " kind" : " variable" ,
1492+ " name" : " type" ,
1493+ },
1494+ " kind" : " encapsedpart" ,
1495+ " syntax" : " complex" ,
1496+ },
1497+ ],
1498+ },
1499+ " kind" : " encapsedpart" ,
1500+ " syntax" : " complex" ,
1501+ },
1502+ " what" : Variable {
1503+ " curly" : false ,
1504+ " kind" : " variable" ,
1505+ " name" : " this" ,
1506+ },
1507+ },
1508+ " kind" : " expressionstatement" ,
1509+ },
1510+ ],
1511+ " errors" : Array [],
1512+ " kind" : " program" ,
1513+ }
1514+ ` ;
1515+
14501516exports [` encapsed propertylookup and offsetlookup (complex syntax) 1` ] = `
14511517Program {
14521518 " children" : Array [
@@ -1547,7 +1613,7 @@ Program {
15471613 " expression" : PropertyLookup {
15481614 " kind" : " propertylookup" ,
15491615 " offset" : EncapsedPart {
1550- " curly" : null ,
1616+ " curly" : false ,
15511617 " expression" : OffsetLookup {
15521618 " kind" : " offsetlookup" ,
15531619 " offset" : Number {
@@ -1561,7 +1627,7 @@ Program {
15611627 },
15621628 },
15631629 " kind" : " encapsedpart" ,
1564- " syntax" : true ,
1630+ " syntax" : " complex " ,
15651631 },
15661632 " what" : Variable {
15671633 " curly" : false ,
@@ -2854,9 +2920,9 @@ Program {
28542920 EncapsedPart {
28552921 " curly" : true ,
28562922 " expression" : Variable {
2857- " curly" : " var " ,
2923+ " curly" : false ,
28582924 " kind" : " variable" ,
2859- " name" : " variable " ,
2925+ " name" : " var " ,
28602926 },
28612927 " kind" : " encapsedpart" ,
28622928 " syntax" : " simple" ,
0 commit comments