(sexpr)
| 578 | } |
| 579 | |
| 580 | function transformLiteralToPath(sexpr) { |
| 581 | if (!sexpr.path.parts) { |
| 582 | let literal = sexpr.path; |
| 583 | // Casting to string here to make false and 0 literal values play nicely with the rest |
| 584 | // of the system. |
| 585 | sexpr.path = { |
| 586 | type: 'PathExpression', |
| 587 | data: false, |
| 588 | depth: 0, |
| 589 | parts: [literal.original + ''], |
| 590 | original: literal.original + '', |
| 591 | loc: literal.loc |
| 592 | }; |
| 593 | } |
| 594 | } |