diff options
Diffstat (limited to 'graphics/asymptote/varinit.cc')
-rw-r--r-- | graphics/asymptote/varinit.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/asymptote/varinit.cc b/graphics/asymptote/varinit.cc index 347b5960c7..140564689a 100644 --- a/graphics/asymptote/varinit.cc +++ b/graphics/asymptote/varinit.cc @@ -21,7 +21,7 @@ using namespace trans; void definit::prettyprint(ostream &out, Int indent) { - prettyname(out, "definit",indent); + prettyname(out, "definit",indent, getPos()); } void definit::transToType(coenv &e, types::ty *target) @@ -30,7 +30,7 @@ void definit::transToType(coenv &e, types::ty *target) access *a=e.e.lookupInitializer(target); if (a) - a->encode(CALL, getPos(), e.c); + a->encode(action::CALL, getPos(), e.c); else { em.error(getPos()); em << "no default initializer for type '" << *target << "'"; @@ -40,7 +40,7 @@ void definit::transToType(coenv &e, types::ty *target) void arrayinit::prettyprint(ostream &out, Int indent) { - prettyname(out, "arrayinit",indent); + prettyname(out, "arrayinit",indent, getPos()); for (mem::list<varinit *>::iterator p = inits.begin(); p != inits.end(); ++p) (*p)->prettyprint(out, indent+2); |