summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/name.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-08 13:46:05 +0000
committerKarl Berry <karl@freefriends.org>2010-06-08 13:46:05 +0000
commita960e44eb527236f39aec81babc0474911a86078 (patch)
tree9950eca71791d90820a80a521a7cc252c0955db5 /Build/source/utils/asymptote/name.cc
parent6443467452320c296faa1f43f0606a9457bd4463 (diff)
asy 1.96
git-svn-id: svn://tug.org/texlive/trunk@18817 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/name.cc')
-rw-r--r--Build/source/utils/asymptote/name.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/name.cc b/Build/source/utils/asymptote/name.cc
index 0c822792e0c..ac3ad8e70df 100644
--- a/Build/source/utils/asymptote/name.cc
+++ b/Build/source/utils/asymptote/name.cc
@@ -96,6 +96,12 @@ types::ty *simpleName::varGetType(coenv &e)
return e.e.varGetType(id);
}
+trans::varEntry *simpleName::getCallee(coenv &e, signature *sig)
+{
+ varEntry *ve = e.e.lookupVarBySignature(id, sig);
+ return ve;
+}
+
types::ty *simpleName::typeTrans(coenv &e, bool tacit)
{
types::ty *t = e.e.lookupType(id);
@@ -226,6 +232,14 @@ types::ty *qualifiedName::varGetType(coenv &e)
return r ? r->e.varGetType(id) : 0;
}
+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.
+ return 0;
+}
+
trans::varEntry *qualifiedName::getVarEntry(coenv &e)
{
varEntry *qv = qualifier->getVarEntry(e);