7 std::string ScopeID::toString()
const {
8 std::ostringstream oss;
13 std::ostream& ScopeID::print(std::ostream& os)
const {
22 void ScopeID::dump()
const { print(std::cerr) << std::endl; }
24 bool ScopeID::
canView(ScopeID
const* other)
const {
25 assert(other !=
nullptr &&
"Can't view the null scope");
27 if(
this->parent_ == other->parent_) {
28 return this->pos_ >= other->pos_;