You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csharp/extractor/Semmle.Extraction.CIL/Entities/Instruction.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -409,7 +409,7 @@ public override IEnumerable<IExtractionProduct> Contents
409
409
}
410
410
else
411
411
{
412
-
thrownewInternalError("Unable to create payload type {0} for opcode {1}",PayloadType,OpCode);
412
+
thrownewInternalError($"Unable to create payload type {PayloadType} for opcode {OpCode}");
413
413
}
414
414
break;
415
415
casePayload.Arg8:
@@ -430,7 +430,7 @@ public override IEnumerable<IExtractionProduct> Contents
430
430
// Some of these are handled by JumpContents().
431
431
break;
432
432
default:
433
-
thrownewInternalError("Unhandled payload type {0}",PayloadType);
433
+
thrownewInternalError($"Unhandled payload type {PayloadType}");
434
434
}
435
435
}
436
436
}
@@ -479,7 +479,7 @@ public IEnumerable<IExtractionProduct> JumpContents(Dictionary<int, IInstruction
479
479
// TODO: Find a solution to this.
480
480
481
481
// For now, just log the error
482
-
cx.cx.Extractor.Message(newMessage{message="A CIL instruction jumps outside the current method",severity=Util.Logging.Severity.Warning});
482
+
cx.cx.ExtractionError("A CIL instruction jumps outside the current method","",Extraction.Entities.GeneratedLocation.Create(cx.cx),"",Util.Logging.Severity.Warning);
0 commit comments