master
Daniel Kolesa 2016-08-12 04:02:05 +01:00
parent cd68185f40
commit 14c90e9da4
1 changed files with 11 additions and 11 deletions

View File

@ -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;