* If tracing, wrap an instruction in a trace instruction
*/
protected Expression makeTracer(int startOffset, Expression exp, int construct, int objectNameCode) {
if (env.getConfiguration().getTraceListener() != null) {
TraceExpression trace = new TraceExpression(exp);
long lc = t.getLineAndColumn(startOffset);
trace.setLineNumber((int)(lc>>32));
trace.setColumnNumber((int)(lc&0x7fffffff));
trace.setSystemId(env.getSystemId());
trace.setNamespaceResolver(env.getNamespaceResolver());
trace.setConstructType(construct);
trace.setObjectNameCode(objectNameCode);
return trace;
} else {
return exp;
}
}