diff options
Diffstat (limited to 'Build/source/utils/asymptote/name.cc')
-rw-r--r-- | Build/source/utils/asymptote/name.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/name.cc b/Build/source/utils/asymptote/name.cc index ac3ad8e70df..b3853b5a91c 100644 --- a/Build/source/utils/asymptote/name.cc +++ b/Build/source/utils/asymptote/name.cc @@ -87,7 +87,7 @@ void simpleName::varTrans(action act, coenv &e, types::ty *target) } else { em.error(getPos()); - em << "no matching variable of name \'" << *id << "\'"; + em << "no matching variable of name \'" << id << "\'"; } } @@ -111,7 +111,7 @@ types::ty *simpleName::typeTrans(coenv &e, bool tacit) else { if (!tacit) { em.error(getPos()); - em << "no type of name \'" << *id << "\'"; + em << "no type of name \'" << id << "\'"; } return primError(); } @@ -122,7 +122,7 @@ tyEntry *simpleName::tyEntryTrans(coenv &e) tyEntry *ent = e.e.lookupTyEntry(id); if (!ent) { em.error(getPos()); - em << "no type of name \'" << *id << "\'"; + em << "no type of name \'" << id << "\'"; return new tyEntry(primError(), 0, 0, position()); } return ent; @@ -142,7 +142,7 @@ frame *simpleName::tyFrameTrans(coenv &e) void simpleName::prettyprint(ostream &out, Int indent) { prettyindent(out, indent); - out << "simpleName '" << *id << "'\n"; + out << "simpleName '" << id << "'\n"; } @@ -202,7 +202,7 @@ void qualifiedName::varTransField(action act, coenv &e, } else { em.error(getPos()); - em << "no matching field of name \'" << *id << "\' in \'" << *r << "\'"; + em << "no matching field of name \'" << id << "\' in \'" << *r << "\'"; } } @@ -237,6 +237,7 @@ trans::varEntry *qualifiedName::getCallee(coenv &e, signature *sig) // getTypeAsCallee is an optimization attempt. We don't try optimizing the // rarer qualifiedName call case. // TODO: See if this is worth implementing. + //cout << "FAIL BY QUALIFIED NAME" << endl; return 0; } @@ -272,7 +273,7 @@ types::ty *qualifiedName::typeTrans(coenv &e, bool tacit) else { if (!tacit) { em.error(getPos()); - em << "no matching field or type of name \'" << *id << "\' in \'" + em << "no matching field or type of name \'" << id << "\' in \'" << *r << "\'"; } return primError(); @@ -290,7 +291,7 @@ tyEntry *qualifiedName::tyEntryTrans(coenv &e) tyEntry *ent = r->e.lookupTyEntry(id); if (!ent) { em.error(getPos()); - em << "no matching type of name \'" << *id << "\' in \'" + em << "no matching type of name \'" << id << "\' in \'" << *r << "\'"; return new tyEntry(primError(), 0, 0, position()); } @@ -317,7 +318,7 @@ frame *qualifiedName::tyFrameTrans(coenv &e) void qualifiedName::prettyprint(ostream &out, Int indent) { prettyindent(out, indent); - out << "qualifiedName '" << *id << "'\n"; + out << "qualifiedName '" << id << "'\n"; qualifier->prettyprint(out, indent+1); } |