This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TSGen | |
{ | |
public static function fromJSON(string $json, string $interfaceName): string | |
{ | |
try { | |
return self::generateInterface(json_decode($json, true, 512, JSON_THROW_ON_ERROR), $interfaceName); | |
} catch (JsonException $e) { | |
throw new InvalidArgumentException("Error parsing JSON: " . $e->getMessage()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "lend-forward.h" | |
#include "lend-type.h" // NOLINT(build/include_directory) | |
#include "lend-internal.h" // NOLINT(build/include_directory) | |
#include "lend-handle.h" // NOLINT(build/include_directory) | |
#include "lendconfig.h" // NOLINT(build/include_directory) | |
#include <cstdint> | |
namespace lend { | |
/** | |
* @class HeapObject |