view core/src/luan/impl/GetLocalVar.java @ 460:b48cfa14ba60

improve stack trace
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 06 May 2015 14:32:29 -0600
parents 3dcb0f9bee82
children 0742ac78fa69
line wrap: on
line source

package luan.impl;

import luan.LuanElement;


final class GetLocalVar extends CodeImpl implements Expr {
	private final int index;

	GetLocalVar(LuanElement se,int index) {
		super(se);
		this.index = index;
	}

	@Override public Object eval(LuanStateImpl luan) {
		return luan.stackGet(index);
	}
}