Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of <see cref="SequencePoint" />, copying
 /// data from the provided <see cref="Cil.SequencePoint" />.
 /// </summary>
 /// <param name="sequencePoint">
 /// An instance of <see cref="Cil.SequencePoint" /> from which to copy
 /// property values.
 /// </param>
 public SequencePoint(Cil.SequencePoint sequencePoint)
     : this()
 {
     StartLine = sequencePoint.StartLine;
     StartColumn = sequencePoint.StartColumn;
     EndLine = sequencePoint.EndLine;
     EndColumn = sequencePoint.EndColumn;
 }
Exemplo n.º 2
0
 static internal string GetIdentifier(Cil.SequencePoint sequencePoint)
 {
     return GetIdentifier(sequencePoint.StartLine, sequencePoint.StartColumn, sequencePoint.EndLine,
                          sequencePoint.EndColumn);
 }
        internal static OpCode Map(Cil.OpCode cecilOpCode) {
            OpCode opCode;

            if (!_opCodes.TryGetValue(cecilOpCode.Code.ToString(), out opCode)) {
                opCode = OpCodes.Nop;
            }

            return opCode;
        }