/* * Copyright (c) 2022, Ali Mohammad Pur * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace JS::Bytecode { struct CodeGenerationError { ASTNode const* failing_node { nullptr }; StringView reason_literal; ErrorOr to_string() const; }; template using CodeGenerationErrorOr = ErrorOr; }