From 14c90e9da4ecffaa26871b4c8fc140e440e3ba71 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 12 Aug 2016 04:02:05 +0100 Subject: [PATCH] rename --- cubescript.hh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cubescript.hh b/cubescript.hh index 62a76808..61858f2c 100644 --- a/cubescript.hh +++ b/cubescript.hh @@ -456,13 +456,21 @@ struct OSTD_EXPORT StackedValue: TaggedValue { pop(); } - bool alias(Ident *id) { + bool set_id(Ident *id) { p_id = id; return p_id && p_id->is_alias(); } - bool alias(ostd::ConstCharRange name) { - return alias(p_cs.new_ident(name)); + bool set_id(ostd::ConstCharRange name) { + return set_id(p_cs.new_ident(name)); + } + + Ident *get_id() const { + return p_id; + } + + bool has_id() const { + return p_id != nullptr; } bool push() { @@ -483,14 +491,6 @@ struct OSTD_EXPORT StackedValue: TaggedValue { return true; } - Ident *get_id() const { - return p_id; - } - - bool has_id() const { - return p_id != nullptr; - } - private: CsState &p_cs; Ident *p_id;