/* * Copyright (c) 2020, Stephan Unverwerth * Copyright (c) 2021-2022, David Tuin * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace JS { struct ParserError { DeprecatedString message; Optional position; DeprecatedString to_deprecated_string() const; DeprecatedString source_location_hint(StringView source, char const spacer = ' ', char const indicator = '^') const; }; }