private void ExpandSingleForm(InstructionForm f, int argIdx) { foreach (InstructionArgType tp in f[argIdx].ArgType.ExpandsTo) { InstructionForm f2 = f.DeepCopy(); InstructionArg a = f2[argIdx]; a.ArgType = tp; f2[argIdx] = a; FinalForms.Add(f2); } }
private void ExpandSingleForm(InstructionForm f, int argIdx) { foreach (InstructionArgType tp in f[argIdx].ArgType.ExpandsTo) { InstructionForm f2 = f.DeepCopy(); InstructionArg a = f2[argIdx]; a.ArgType = tp; f2[argIdx] = a; FinalForms.Add(f2); } }