172173174175176177178
public Exp accept(Validator validator) { return this; } public Calc accept(ExpCompiler compiler) { return new ConstantCalc(getType(), o); }
373839404142434445
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) { Dimension dimension = ((DimensionExpr) call.getArg(0)).getDimension(); return new ConstantCalc( DimensionType.forDimension(dimension), dimension); }
363738394041424344
173174175176177178179