示例#1
0
 /// <summary>
 /// Creates a copy of this bytecode object with two labels.
 /// </summary>
 /// <param name="l0">An object representing the label.</param>
 /// <param name="l1">An object representing the label.</param>
 /// <returns>A new bytecode object.</returns>
 public BytecodeObject WithLabels(
     out IExpression <DataLabel> l0,
     out IExpression <DataLabel> l1)
 {
     l0 = new LabelPlaceholder(this);
     l1 = new LabelPlaceholder(this);
     return(new BytecodeObject(type, locals, ops));
 }
示例#2
0
 /// <summary>
 /// Creates a copy of this bytecode object with seven labels.
 /// </summary>
 /// <param name="l0">An object representing the label.</param>
 /// <param name="l1">An object representing the label.</param>
 /// <param name="l2">An object representing the label.</param>
 /// <param name="l3">An object representing the label.</param>
 /// <param name="l4">An object representing the label.</param>
 /// <param name="l5">An object representing the label.</param>
 /// <param name="l6">An object representing the label.</param>
 /// <returns>A new bytecode object.</returns>
 public BytecodeObject WithLabels(
     out IExpression <DataLabel> l0,
     out IExpression <DataLabel> l1,
     out IExpression <DataLabel> l2,
     out IExpression <DataLabel> l3,
     out IExpression <DataLabel> l4,
     out IExpression <DataLabel> l5,
     out IExpression <DataLabel> l6)
 {
     l0 = new LabelPlaceholder(this);
     l1 = new LabelPlaceholder(this);
     l2 = new LabelPlaceholder(this);
     l3 = new LabelPlaceholder(this);
     l4 = new LabelPlaceholder(this);
     l5 = new LabelPlaceholder(this);
     l6 = new LabelPlaceholder(this);
     return(new BytecodeObject(type, locals, ops));
 }