use of lucee.transformer.bytecode.cast.Cast in project Lucee by lucee.
the class ArrayToList method execute.
@Override
public void execute(BIF bif, FunctionLibFunction flf) throws TemplateException {
Argument[] args = bif.getArguments();
Argument arg = args[0];
Expression value = arg.getValue();
if (value instanceof Cast) {
value = ((Cast) value).getExpr();
}
if (value instanceof Variable) {
((Variable) value).setAsCollection(Boolean.TRUE);
}
}
Aggregations