summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Script.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-11-23 12:39:23 +0100
committerLinus Groh <mail@linusgroh.de>2022-11-23 16:05:59 +0000
commite6331031c4cab0c29dfe6b4ae52940100eb11ff2 (patch)
tree2a98e599b05bfb5bbc987f3d98cd39801c4a2421 /Userland/Libraries/LibJS/Script.h
parente0916dbb359d6181290daf1748fe5dce85015be1 (diff)
downloadserenity-e6331031c4cab0c29dfe6b4ae52940100eb11ff2.zip
LibJS: Make Parser::Error a standalone ParserError class
This allows us to forward declare it and reduce the number of things that need to include Parser.h.
Diffstat (limited to 'Userland/Libraries/LibJS/Script.h')
-rw-r--r--Userland/Libraries/LibJS/Script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Script.h b/Userland/Libraries/LibJS/Script.h
index 492f7577e1..3ee0619586 100644
--- a/Userland/Libraries/LibJS/Script.h
+++ b/Userland/Libraries/LibJS/Script.h
@@ -27,7 +27,7 @@ public:
};
virtual ~Script() override;
- static Result<NonnullGCPtr<Script>, Vector<Parser::Error>> parse(StringView source_text, Realm&, StringView filename = {}, HostDefined* = nullptr, size_t line_number_offset = 1);
+ static Result<NonnullGCPtr<Script>, Vector<ParserError>> parse(StringView source_text, Realm&, StringView filename = {}, HostDefined* = nullptr, size_t line_number_offset = 1);
Realm& realm() { return *m_realm; }
Program const& parse_node() const { return *m_parse_node; }