Deprecate ID::AsType(), add ID::IsType() and ID::GetType()

This commit is contained in:
Jon Siwek 2020-05-07 20:07:46 -07:00
parent f26904e031
commit 6e647416d5
10 changed files with 32 additions and 22 deletions

View file

@ -274,7 +274,7 @@ void Manager::StartType(IntrusivePtr<ID> id)
static bool IsEnumType(ID* id)
{
return id->AsType() ? id->AsType()->Tag() == TYPE_ENUM : false;
return id->IsType() ? id->Type()->Tag() == TYPE_ENUM : false;
}
void Manager::Identifier(IntrusivePtr<ID> id)