public void LoadFromStream(BinaryReader br, Module m, int ds, int dp) { bool flag = (ds != 0) || (dp != 0); for (int i = m.S1; i <= m.S2; i++) { this.Card++; SymbolRec rec = this[this.Card]; rec.LoadFromStream(br); if (flag) { if (m.IsInternalId(rec.Level)) { rec.Level += ds; } if (m.IsInternalId(rec.TypeId)) { rec.TypeId += ds; } if (rec.Kind == MemberKind.Label) { int val = (int) rec.Val; val += dp; rec.Val = val; } } if (rec.Kind == MemberKind.Label) { int num3 = (int) rec.Value; rec.CodeProgRec = this.scripter.code[num3]; } } }
public void LoadFromStream(BinaryReader br, Module m, int ds, int dp) { bool flag = (ds != 0) || (dp != 0); for (int i = m.P1; i <= m.P2; i++) { this.Card++; this.r = this[this.Card]; this.r.LoadFromStream(br); if ((this.r.op != this.OP_SEPARATOR) && flag) { if (m.IsInternalId(this.r.arg1)) { this.r.arg1 += ds; } if (m.IsInternalId(this.r.arg2)) { this.r.arg2 += ds; } if (m.IsInternalId(this.r.res)) { this.r.res += ds; } } } }