LibCore: Add a way to check if a property is readonly

This commit is contained in:
AnotherTest 2021-01-03 02:56:41 +03:30 committed by Andreas Kling
commit 2b38b2f83b
Notes: sideshowbarker 2024-07-19 00:11:09 +09:00

View file

@ -48,6 +48,7 @@ public:
JsonValue get() const { return m_getter(); }
const String& name() const { return m_name; }
bool is_readonly() const { return !m_setter; }
private:
String m_name;