mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
903 B
35 lines
903 B
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
|
|
namespace ICSharpCode.Decompiler.IL |
|
{ |
|
class LdLoc(public readonly ILVariable Variable) : SimpleInstruction(OpCode.LdLoc) |
|
{ |
|
public override void WriteTo(ITextOutput output) |
|
{ |
|
output.WriteReference(Variable.ToString(), Variable, isLocal: true); |
|
} |
|
} |
|
|
|
class LdLoca(public readonly ILVariable Variable) : SimpleInstruction(OpCode.LdLoca) |
|
{ |
|
public override void WriteTo(ITextOutput output) |
|
{ |
|
output.Write("ref "); |
|
output.WriteReference(Variable.ToString(), Variable, isLocal: true); |
|
} |
|
} |
|
|
|
class StLoc(public readonly ILVariable Variable) : UnaryInstruction(OpCode.StLoc) |
|
{ |
|
public override void WriteTo(ITextOutput output) |
|
{ |
|
output.WriteReference(Variable.ToString(), Variable, isLocal: true); |
|
output.Write(" = "); |
|
Operand.WriteTo(output); |
|
} |
|
} |
|
}
|
|
|