mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-17 19:07:05 +02:00
[svn r23] * Updated to DMD 1.021
This commit is contained in:
@@ -775,6 +775,43 @@ char *ScopeDsymbol::kind()
|
||||
}
|
||||
|
||||
|
||||
/*******************************************
|
||||
* Look for member of the form:
|
||||
* const(MemberInfo)[] getMembers(string);
|
||||
* Returns NULL if not found
|
||||
*/
|
||||
|
||||
#if V2
|
||||
FuncDeclaration *ScopeDsymbol::findGetMembers()
|
||||
{
|
||||
Dsymbol *s = search_function(this, Id::getmembers);
|
||||
FuncDeclaration *fdx = s ? s->isFuncDeclaration() : NULL;
|
||||
|
||||
#if 0 // Finish
|
||||
static TypeFunction *tfgetmembers;
|
||||
|
||||
if (!tfgetmembers)
|
||||
{
|
||||
Scope sc;
|
||||
Arguments *arguments = new Arguments;
|
||||
Arguments *arg = new Argument(STCin, Type::tchar->constOf()->arrayOf(), NULL, NULL);
|
||||
arguments->push(arg);
|
||||
|
||||
Type *tret = NULL;
|
||||
tfgetmembers = new TypeFunction(arguments, tret, 0, LINKd);
|
||||
tfgetmembers = (TypeFunction *)tfgetmembers->semantic(0, &sc);
|
||||
}
|
||||
if (fdx)
|
||||
fdx = fdx->overloadExactMatch(tfgetmembers);
|
||||
#endif
|
||||
if (fdx && fdx->isVirtual())
|
||||
fdx = NULL;
|
||||
|
||||
return fdx;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/****************************** WithScopeSymbol ******************************/
|
||||
|
||||
WithScopeSymbol::WithScopeSymbol(WithStatement *withstate)
|
||||
|
||||
Reference in New Issue
Block a user