Refactor a bit the lookup, it should simplify template instantiation.

This commit is contained in:
Roberto Raggi
2010-05-06 14:01:38 +02:00
parent bc6828ff01
commit 05984e71fc
5 changed files with 110 additions and 63 deletions

View File

@@ -47,11 +47,11 @@ public:
typedef QList< QPair<const Identifier *, FullySpecifiedType> > Substitution;
public:
static FullySpecifiedType instantiate(const Name *className, Symbol *candidate, Control *control);
private:
GenTemplateInstance(Control *control, const Substitution &substitution);
FullySpecifiedType operator()(Symbol *symbol);
Control *control() const;
FullySpecifiedType gen(Symbol *symbol);
private:
Symbol *_symbol;