@eagleoutice/flowr - v2.10.1
    Preparing search index...
    interface ParentContextInfo {
        index: number;
        nesting: number;
        role: RoleInParent;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown

    Hierarchy-Diagram

    UML class diagram of ParentContextInfo
    Index

    Properties

    Properties

    index: number

    0-based index of the child in the parent (code semantics, e.g., for an if-then-else, the condition will be 0, the then-case will be 1, ...)

    The index is adaptive, that means that if the name of an argument exists, it will have index 0, and the value will have index 1. But if the argument is unnamed, its value will get the index 0 instead.

    nesting: number

    The nesting of the node in the AST

    The root node has a nesting of 0, contexts listed in $nestForElement will increase the nesting