Data contained in this node type.

interface Data {
    __lara_flow__function_node: {
        cfgEntryNode: undefined | string;
        functionName: string;
        version: "1";
    };
    id: string;
    parent?: string;
}

Hierarchy (view full)

Properties

__lara_flow__function_node: {
    cfgEntryNode: undefined | string;
    functionName: string;
    version: "1";
}

Type declaration

  • cfgEntryNode: undefined | string

    The initial node of the function's CFG. This is the entry point of the function.

  • functionName: string

    The name of the function. This name must be unique in the graph, so it should be mangled if the use case permits overloading.

    The field BaseNode.Data.parent is not used so as to give the developer more flexibility in the decision of what constitutes a parent-child relationship. If desired that the ControlFlowNode is a direct child of its FunctionNode, one may iterate over the graph's ControlFlowNodes and set BaseNode.Data.parent to the value of this field.

  • version: "1"
id: string

The unique identifier of this node.

parent?: string

The parent node of this node, if any.