1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:47:45 +00:00

LibJS: Rename RegExpLiteral m_content to m_pattern

This is what we call it elsewhere, let's be consistent.
This commit is contained in:
Linus Groh 2021-05-10 11:56:08 +01:00
parent d1a72dc6eb
commit c93c2dc72c
3 changed files with 12 additions and 10 deletions

View file

@ -658,21 +658,21 @@ public:
class RegExpLiteral final : public Literal {
public:
explicit RegExpLiteral(SourceRange source_range, String content, String flags)
explicit RegExpLiteral(SourceRange source_range, String pattern, String flags)
: Literal(move(source_range))
, m_content(content)
, m_flags(flags)
, m_pattern(move(pattern))
, m_flags(move(flags))
{
}
virtual Value execute(Interpreter&, GlobalObject&) const override;
virtual void dump(int indent) const override;
const String& content() const { return m_content; }
const String& pattern() const { return m_pattern; }
const String& flags() const { return m_flags; }
private:
String m_content;
String m_pattern;
String m_flags;
};