@eagleoutice/flowr - v2.10.1
    Preparing search index...

    Interface NamedFunctionArgument

    A reference with a name, e.g. a and b in the following function call:

    foo(a = 3, b = 2)
    
    • #isNamedArgument
    • PositionalFunctionArgument
    interface NamedFunctionArgument {
        cds?: ControlDependency[];
        name: string;
        nodeId: NodeId;
        type: ReferenceType;
        valueId: NodeId | undefined;
    }

    Hierarchy (View Summary)

    Hierarchy-Diagram

    UML class diagram of NamedFunctionArgument
    Index

    Properties

    If the reference is only effective, if, for example, an if-then-else condition is true, this references the root of the if. As a hacky intermediate solution (until we have pointer-analysis), an empty array may indicate a maybe which is due to pointer access (e.g., in a[x] <- 3).

    name: string

    Name the reference is identified by (e.g., the name of the variable), undefined if the reference is "artificial" (e.g., anonymous)

    nodeId: NodeId

    The id of the node which represents the reference in the NormalizedAst|normalized AST and the DataflowGraph|dataflow graph.

    Type of the reference to be resolved

    valueId: NodeId | undefined