public static void get_Item(IMethod method, AbcCode code) { var type = method.DeclaringType.GetTypeArgument(0); code.LoadThis(); code.GetLocal(1); code.GetArrayElem(type, true); code.ReturnValue(); }
public IEnumerable <IInstruction> GetArrayElem(IType elemType) { //stack [arr, index] EnsureType(elemType); var code = new AbcCode(_abc); code.GetArrayElem(elemType, false); return(code); }