Documentation
    Preparing search index...

    Interface TwingCheckToStringNode

    Checks if casting an expression to toString() is allowed by the sandbox.

    For instance, when there is a simple Print statement, like {{ article }}, and if the sandbox is enabled, we need to check that the toString() method is allowed if 'article' is an object. The same goes for {{ article|upper }} or {{ random(article) }}.

    interface TwingCheckToStringNode {
        attributes: Attributes;
        children: { value: TwingBaseExpressionNode };
        column: number;
        line: number;
        tag: null | string;
        type: "check_to_string";
    }

    Hierarchy (View Summary)

    Index

    Properties

    attributes: Attributes
    children: { value: TwingBaseExpressionNode }
    column: number
    line: number
    tag: null | string
    type: "check_to_string"