mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-29 15:01:30 +02:00
Merge dmd-1.073.
This commit is contained in:
17
dmd/class.c
17
dmd/class.c
@@ -898,6 +898,23 @@ Dsymbol *ClassDeclaration::search(Loc loc, Identifier *ident, int flags)
|
||||
return s;
|
||||
}
|
||||
|
||||
Dsymbol *ClassDeclaration::searchBase(Loc loc, Identifier *ident)
|
||||
{
|
||||
// Search bases classes in depth-first, left to right order
|
||||
|
||||
for (size_t i = 0; i < baseclasses->dim; i++)
|
||||
{
|
||||
BaseClass *b = (*baseclasses)[i];
|
||||
Dsymbol *cdb = b->type->isClassHandle();
|
||||
if (cdb->ident->equals(ident))
|
||||
return cdb;
|
||||
cdb = ((ClassDeclaration *)cdb)->searchBase(loc, ident);
|
||||
if (cdb)
|
||||
return cdb;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**********************************************************
|
||||
* fd is in the vtbl[] for this class.
|
||||
* Return 1 if function is hidden (not findable through search).
|
||||
|
||||
Reference in New Issue
Block a user