summaryrefslogtreecommitdiff
path: root/src/exports.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-02-01 10:28:41 -0500
committerAdrian Thurston <thurston@complang.org>2014-02-01 10:28:41 -0500
commit56331d8670d8c16bdf429f50eed6bd08e03ee41d (patch)
tree10f6bea17de9822c0ecacb033e6c44ce2d9ac3b1 /src/exports.cc
parentab372bdf298961864975228fa3f93f464b145539 (diff)
downloadcolm-56331d8670d8c16bdf429f50eed6bd08e03ee41d.tar.gz
use the verb 'resolve' for types
Diffstat (limited to 'src/exports.cc')
-rw-r--r--src/exports.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/exports.cc b/src/exports.cc
index 92813f5e..62e0d2a3 100644
--- a/src/exports.cc
+++ b/src/exports.cc
@@ -123,7 +123,7 @@ void Compiler::generateExports()
for ( ObjFieldList::Iter ofi = *objFieldList; ofi.lte(); ofi++ ) {
ObjectField *field = ofi->value;
if ( field->useOffset && field->typeRef != 0 ) {
- UniqueType *ut = field->typeRef->lookupType( this );
+ UniqueType *ut = field->typeRef->resolveType( this );
if ( ut != 0 && ut->typeId == TYPE_TREE ) {
out << " " << ut->langEl->refName << " " << field->name << "();\n";
@@ -131,7 +131,7 @@ void Compiler::generateExports()
}
if ( field->isRhsGet ) {
- UniqueType *ut = field->typeRef->lookupType( this );
+ UniqueType *ut = field->typeRef->resolveType( this );
if ( ut != 0 && ut->typeId == TYPE_TREE ) {
out << " " << ut->langEl->refName << " " << field->name << "();\n";
@@ -179,7 +179,7 @@ void Compiler::generateExports()
for ( ObjFieldList::Iter of = *globalObjectDef->objFieldList; of.lte(); of++ ) {
ObjectField *field = of->value;
if ( field->isExport ) {
- UniqueType *ut = field->typeRef->lookupType(this);
+ UniqueType *ut = field->typeRef->resolveType(this);
if ( ut != 0 && ut->typeId == TYPE_TREE ) {
out << ut->langEl->refName << " " << field->name << "( colm_program *prg );\n";
}
@@ -220,7 +220,7 @@ void Compiler::generateExportsImpl()
for ( ObjFieldList::Iter ofi = *objFieldList; ofi.lte(); ofi++ ) {
ObjectField *field = ofi->value;
if ( field->useOffset && field->typeRef != 0 ) {
- UniqueType *ut = field->typeRef->lookupType( this );
+ UniqueType *ut = field->typeRef->resolveType( this );
if ( ut != 0 && ut->typeId == TYPE_TREE ) {
out << ut->langEl->refName << " " << lel->declName << "::" << field->name <<
@@ -230,7 +230,7 @@ void Compiler::generateExportsImpl()
}
if ( field->isRhsGet ) {
- UniqueType *ut = field->typeRef->lookupType( this );
+ UniqueType *ut = field->typeRef->resolveType( this );
if ( ut != 0 && ut->typeId == TYPE_TREE ) {
out << ut->langEl->refName << " " << lel->declName << "::" << field->name <<
@@ -277,7 +277,7 @@ void Compiler::generateExportsImpl()
for ( ObjFieldList::Iter of = *globalObjectDef->objFieldList; of.lte(); of++ ) {
ObjectField *field = of->value;
if ( field->isExport ) {
- UniqueType *ut = field->typeRef->lookupType(this);
+ UniqueType *ut = field->typeRef->resolveType(this);
if ( ut != 0 && ut->typeId == TYPE_TREE ) {
out <<
ut->langEl->refName << " " << field->name << "( colm_program *prg )\n"