Skip to content

Create test case to prevent nested selectors #279

@Pike

Description

@Pike

We should audit the test coverage for

return ([selector, variants]) => {
let selector_is_valid =
selector instanceof FTL.StringLiteral
|| selector instanceof FTL.NumberLiteral
|| selector instanceof FTL.VariableReference
|| selector instanceof FTL.FunctionReference
|| (selector instanceof FTL.TermReference
&& selector.attribute);

Notably, I don't think we have a test to check for select expressions as selectors.

AFAICT, this also bleeds into our implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions