summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Lexer.h
diff options
context:
space:
mode:
authorEvan Smal <evan.smal@hotmail.com>2023-01-26 08:40:21 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-26 20:25:25 +0000
commit3226ce3d8354b918d0c6803fd4c24a612852660b (patch)
tree12c57d90d840552b35c9fcc6bb998530f66a5a92 /Userland/Libraries/LibJS/Lexer.h
parentcfa6b4d81547b7c109186e2db973344499e7f80a (diff)
downloadserenity-3226ce3d8354b918d0c6803fd4c24a612852660b.zip
LibJS: Remove some usage of DeprecatedString usage from Lexer
This changes the filename member from DeprecatedString to String. Parser has also been updated to meet the updated Lexer interface.
Diffstat (limited to 'Userland/Libraries/LibJS/Lexer.h')
-rw-r--r--Userland/Libraries/LibJS/Lexer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Lexer.h b/Userland/Libraries/LibJS/Lexer.h
index 889c78a5ff..dfce81c795 100644
--- a/Userland/Libraries/LibJS/Lexer.h
+++ b/Userland/Libraries/LibJS/Lexer.h
@@ -10,6 +10,7 @@
#include <AK/DeprecatedString.h>
#include <AK/HashMap.h>
+#include <AK/String.h>
#include <AK/StringView.h>
namespace JS {
@@ -21,7 +22,7 @@ public:
Token next();
DeprecatedString const& source() const { return m_source; };
- DeprecatedString const& filename() const { return m_filename; };
+ String const& filename() const { return m_filename; };
void disallow_html_comments() { m_allow_html_comments = false; };
@@ -63,7 +64,7 @@ private:
char m_current_char { 0 };
bool m_eof { false };
- DeprecatedString m_filename;
+ String m_filename;
size_t m_line_number { 1 };
size_t m_line_column { 0 };