/* * Copyright (c) 2022, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Web::WebIDL { struct ResolvedOverload { // Corresponds to "the special value “missing”" in the overload resolution algorithm. struct Missing { }; using Argument = Variant; int callable_id; Vector arguments; }; // https://webidl.spec.whatwg.org/#es-overloads JS::ThrowCompletionOr resolve_overload(JS::VM&, IDL::EffectiveOverloadSet&); }