{
    "Function": "_insert",
    "File": "src/contracts/libraries/StructuredLinkedList.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "nodeExists",
        "_createLink",
        "nodeExists",
        "_createLink"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _insert(List storage self, uint256 _node, uint256 _new, bool _direction) private returns (bool) {\n        if (!nodeExists(self, _new) && nodeExists(self, _node)) {\n            uint256 c = self.list[_node][_direction];\n            _createLink(self, _node, _new, _direction);\n            _createLink(self, _new, c, _direction);\n\n            self.size += 1; // NOT: SafeMath library should be used here to increment.\n\n            return true;\n        }\n\n        return false;\n    }"
}