Process function declarations.

This commit is contained in:
Roberto Raggi
2010-11-25 14:55:43 +01:00
parent 4f9be97600
commit e2419153a5
11 changed files with 170 additions and 74 deletions

View File

@@ -39,16 +39,6 @@ Argument::Argument(Function *scope)
{
}
QString Argument::name() const
{
return _name;
}
void Argument::setName(const QString &name)
{
_name = name;
}
const Type *Argument::type() const
{
return _type;
@@ -64,9 +54,9 @@ Block::Block(Scope *enclosingScope)
{
}
void Block::addMember(const QString &name, Symbol *symbol)
void Block::add(Symbol *symbol)
{
_members.insert(name, symbol);
_members.insert(symbol->name(), symbol);
}
const Type *Block::type() const
@@ -86,16 +76,6 @@ Variable::Variable(Scope *scope)
{
}
QString Variable::name() const
{
return _name;
}
void Variable::setName(const QString &name)
{
_name = name;
}
const Type *Variable::type() const
{
return _type;