Deprecate Scope::ScopeID(), replace with GetID()

This commit is contained in:
Jon Siwek 2020-05-27 16:36:14 -07:00
parent 8b6de5852c
commit b0c95e30d0
3 changed files with 9 additions and 5 deletions

View file

@ -35,8 +35,12 @@ public:
IntrusivePtr<ID> Remove(std::string_view name);
[[deprecated("Remove in v4.1. Use GetID().")]]
ID* ScopeID() const { return scope_id.get(); }
const IntrusivePtr<ID>& GetID() const
{ return scope_id; }
const std::unique_ptr<std::vector<IntrusivePtr<Attr>>>& Attrs() const
{ return attrs; }