{
    "Function": "addFacet",
    "File": "src/Libraries/LibDiamond.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "enforceHasContractCode"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function addFacet(DiamondStorage storage ds, address _facetAddress) internal {\n        enforceHasContractCode(_facetAddress, \"LibDiamondCut: New facet has no code\");\n        ds.facetFunctionSelectors[_facetAddress].facetAddressPosition = ds.facetAddresses.length;\n        ds.facetAddresses.push(_facetAddress);\n    }"
}