diff options
Diffstat (limited to 'Userland/Libraries/LibJS/SourceTextModule.h')
-rw-r--r-- | Userland/Libraries/LibJS/SourceTextModule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/SourceTextModule.h b/Userland/Libraries/LibJS/SourceTextModule.h index ac3cba673f..c318e721f5 100644 --- a/Userland/Libraries/LibJS/SourceTextModule.h +++ b/Userland/Libraries/LibJS/SourceTextModule.h @@ -19,6 +19,8 @@ public: static Result<NonnullRefPtr<SourceTextModule>, Vector<Parser::Error>> parse(StringView source_text, Realm&, StringView filename = {}); virtual ~SourceTextModule(); + Program const& parse_node() const { return *m_ecmascript_code; } + private: explicit SourceTextModule(Realm&, NonnullRefPtr<Program>); |