(
content: string,
offset: number,
asParam = false,
)
| 504 | const [, LHS, RHS] = inMatch |
| 505 | |
| 506 | const createAliasExpression = ( |
| 507 | content: string, |
| 508 | offset: number, |
| 509 | asParam = false, |
| 510 | ) => { |
| 511 | const start = loc.start.offset + offset |
| 512 | const end = start + content.length |
| 513 | return createExp( |
| 514 | content, |
| 515 | false, |
| 516 | getLoc(start, end), |
| 517 | ConstantTypes.NOT_CONSTANT, |
| 518 | asParam ? ExpParseMode.Params : ExpParseMode.Normal, |
| 519 | ) |
| 520 | } |
| 521 | |
| 522 | const result: ForParseResult = { |
| 523 | source: createAliasExpression(RHS.trim(), exp.indexOf(RHS, LHS.length)), |
no test coverage detected