Lines Matching refs:getPrimaryContext
982 if (getPrimaryContext() != this)
983 return getPrimaryContext()->Encloses(DC);
986 if (DC->getPrimaryContext() == this)
991 DeclContext *DeclContext::getPrimaryContext() {
1259 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr;
1300 ND->getDeclContext()->getPrimaryContext()->
1308 ND->getDeclContext()->getPrimaryContext()->
1346 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC");
1411 const DeclContext *PrimaryContext = getPrimaryContext();
1473 DeclContext *PrimaryContext = getPrimaryContext();
1547 return Ctx->getPrimaryContext();
1580 DeclContext *PrimaryDC = this->getPrimaryContext();
1581 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext();
1589 assert(this == getPrimaryContext() && "expected a primary DC");
1593 getParent()->getPrimaryContext()
1626 getParent()->getPrimaryContext()->
1701 assert(getPrimaryContext() == this &&
1743 Parent = Parent->getPrimaryContext();