aboutsummaryrefslogtreecommitdiffstats
path: root/typing.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-20 18:42:10 +0000
committerDavid Robillard <d@drobilla.net>2009-06-20 18:42:10 +0000
commit5423a36aee3156332183bc59c097a907e4d8c503 (patch)
tree78fbd2e405b19154ef7119969f2753205a6995c1 /typing.cpp
parenta34fdc61633467976971f4bd88c7c32d353fa8d0 (diff)
downloadresp-5423a36aee3156332183bc59c097a907e4d8c503.tar.gz
resp-5423a36aee3156332183bc59c097a907e4d8c503.tar.bz2
resp-5423a36aee3156332183bc59c097a907e4d8c503.zip
Shorten AST names to match code names.
git-svn-id: http://svn.drobilla.net/resp/tuplr@136 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'typing.cpp')
-rw-r--r--typing.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/typing.cpp b/typing.cpp
index 06b936e..189ddf4 100644
--- a/typing.cpp
+++ b/typing.cpp
@@ -50,7 +50,7 @@ ATuple::constrain(TEnv& tenv, Constraints& c) const
}
void
-AClosure::constrain(TEnv& tenv, Constraints& c) const
+AFn::constrain(TEnv& tenv, Constraints& c) const
{
const AType* genericType;
TEnv::GenericTypes::const_iterator gt = tenv.genericTypes.find(this);
@@ -75,7 +75,7 @@ AClosure::constrain(TEnv& tenv, Constraints& c) const
size_t e = 2;
for (; e < size(); ++e) {
AST* exp = at(e);
- ADefinition* def = exp->to<ADefinition*>();
+ ADef* def = exp->to<ADef*>();
if (def) {
ASymbol* sym = def->sym();
if (defined.find(sym) != defined.end())
@@ -124,8 +124,8 @@ ACall::constrain(TEnv& tenv, Constraints& c) const
for (size_t i = 1; i < size(); ++i)
at(i)->constrain(tenv, c);
- AST* callee = tenv.resolve(at(0));
- AClosure* closure = callee->to<AClosure*>();
+ AST* callee = tenv.resolve(at(0));
+ AFn* closure = callee->to<AFn*>();
if (closure) {
if (size() - 1 != closure->prot()->size())
throw Error(loc, "incorrect number of arguments");
@@ -148,7 +148,7 @@ ACall::constrain(TEnv& tenv, Constraints& c) const
}
void
-ADefinition::constrain(TEnv& tenv, Constraints& c) const
+ADef::constrain(TEnv& tenv, Constraints& c) const
{
THROW_IF(size() != 3, loc, "`def' requires exactly 2 arguments");
const ASymbol* sym = this->sym();