summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/name.cc
diff options
context:
space:
mode:
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);