* catch translation exceptions

* bug fix

* fixes
This commit is contained in:
Matthew Jin 2022-05-02 16:07:13 -07:00 коммит произвёл GitHub
Родитель 71c4382f40
Коммит dcedc4e023
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -810,7 +810,9 @@ namespace Cilsil.Cil.Parsers
/// <param name="method">The method in which the variable is located.</param>
/// <returns>The string representation.</returns>
protected string LocalName(int index, MethodDefinition method) =>
method.DebugInformation.TryGetName(method.Body.Variables[index], out var name) ? name : $"%{index}";
method.DebugInformation.TryGetName(method.Body.Variables[index], out var name) &&
!name.Contains("CS$") ?
name : $"%{index}";
/// <summary>
/// Gets the argument name for the given index and method.